syzbot


BUG: corrupted list in cma_cancel_operation

Status: closed as invalid on 2018/09/05 12:51
Subsystems: rdma
[Documentation on labels]
First crash: 2627d, last: 2568d

Sample crash report:
list_del corruption. prev->next should be ffff880103bab9d8, but was ffff880103baa5d8
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:53!
invalid opcode: 0000 [#1] SMP PTI
CPU: 1 PID: 17756 Comm: syz-executor5 Not tainted 4.18.0-rc8+ #34
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid+0x37c/0x440 lib/list_debug.c:51
Code: 48 c7 81 80 0c 00 00 00 00 00 00 c7 81 20 03 00 00 00 00 00 00 48 c7 c7 9e 4a 4f 89 31 c0 48 8b 75 c0 4c 89 e2 e8 24 8b 38 fd <0f> 0b 66 90 eb fe 44 89 f7 e8 96 b9 b7 fd e9 88 fd ff ff 48 85 db 
RSP: 0018:ffff880133f3f9b8 EFLAGS: 00010282
RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: aaaaaaaaaaaab000 RDI: ffffea000cbef440
RBP: ffff880133f3fa10 R08: 0000000000480020 R09: 0000000000000002
R10: 0000000000000000 R11: ffffffff85031d70 R12: ffff880103baa5d8
R13: ffffffff89acc400 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000ec2940(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000114 CR3: 0000000103d94000 CR4: 00000000001406e0
DR0: 0000000020000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 __list_del_entry include/linux/list.h:117 [inline]
 list_del include/linux/list.h:125 [inline]
 cma_cancel_listens drivers/infiniband/core/cma.c:1580 [inline]
 cma_cancel_operation+0x66e/0xde0 drivers/infiniband/core/cma.c:1608
 rdma_destroy_id+0x18e/0x1810 drivers/infiniband/core/cma.c:1672
 ucma_close+0x2ad/0x470 drivers/infiniband/core/ucma.c:1759
 __fput+0x458/0xa30 fs/file_table.c:209
 ____fput+0x37/0x40 fs/file_table.c:243
 task_work_run+0x22e/0x2b0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:192 [inline]
 exit_to_usermode_loop arch/x86/entry/common.c:166 [inline]
 prepare_exit_to_usermode+0x339/0x410 arch/x86/entry/common.c:197
 syscall_return_slowpath+0xdb/0x700 arch/x86/entry/common.c:268
 do_syscall_64+0x1ab/0x220 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x410c41
Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 34 19 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 
RSP: 002b:0000000000a3fdc0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000410c41
RDX: 0000000000000000 RSI: 0000000000731188 RDI: 0000000000000004
RBP: 0000000000000000 R08: ffffffffffffffff R09: ffffffffffffffff
R10: 0000000000a3fcf0 R11: 0000000000000293 R12: 0000000000000003
R13: 000000000005af95 R14: 000000000000013f R15: badc0ffeebadface
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace ced0e727f7f6599a ]---
RIP: 0010:__list_del_entry_valid+0x37c/0x440 lib/list_debug.c:51
Code: 48 c7 81 80 0c 00 00 00 00 00 00 c7 81 20 03 00 00 00 00 00 00 48 c7 c7 9e 4a 4f 89 31 c0 48 8b 75 c0 4c 89 e2 e8 24 8b 38 fd <0f> 0b 66 90 eb fe 44 89 f7 e8 96 b9 b7 fd e9 88 fd ff ff 48 85 db 
RSP: 0018:ffff880133f3f9b8 EFLAGS: 00010282
RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: aaaaaaaaaaaab000 RDI: ffffea000cbef440
RBP: ffff880133f3fa10 R08: 0000000000480020 R09: 0000000000000002
R10: 0000000000000000 R11: ffffffff85031d70 R12: ffff880103baa5d8
R13: ffffffff89acc400 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000ec2940(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000114 CR3: 0000000103d94000 CR4: 00000000001406e0
DR0: 0000000020000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/17 08:29 https://github.com/google/kmsan.git master 0cc51dc9a291 9ccc1d45 .config console log report ci-upstream-kmsan-gce
2018/07/19 10:08 https://github.com/google/kmsan.git master 80ecacc456c1 49f35839 .config console log report ci-upstream-kmsan-gce
2018/06/27 13:46 https://github.com/google/kmsan.git master 123906095e30 43e60f7e .config console log report ci-upstream-kmsan-gce
2018/06/19 23:50 https://github.com/google/kmsan.git master 123906095e30 095ef806 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.