syzbot


BUG: corrupted list in rdma_listen

Status: fixed on 2020/05/10 10:41
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+8458d13b13562abf6b77@syzkaller.appspotmail.com
Fix commit: 7c11910783a1 RDMA/ucma: Put a lock around every call to the rdma_cm layer
First crash: 2420d, last: 1816d
Discussions (11)
Title Replies (including bot) Last reply
[PATCH 4.19 00/54] 4.19.115-rc1 review 70 (70) 2020/05/27 20:33
[PATCH AUTOSEL 5.4 001/108] net: wan: wanxl: use allow to pass CROSS_COMPILE_M68k for rebuilding firmware 111 (111) 2020/04/17 17:18
[PATCH AUTOSEL 5.6 001/149] net: hns3: drop the WQ_MEM_RECLAIM flag when allocating WQ 152 (152) 2020/04/17 17:06
[PATCH 5.6 00/38] 5.6.4-rc1 review 44 (44) 2020/04/14 10:36
[PATCH 5.5 00/44] 5.5.17-rc1 review 48 (48) 2020/04/14 10:36
[PATCH 5.4 00/41] 5.4.32-rc1 review 45 (45) 2020/04/14 10:36
[PATCH AUTOSEL 5.5 001/121] net: wan: wanxl: use allow to pass CROSS_COMPILE_M68k for rebuilding firmware 122 (122) 2020/04/12 01:16
[PATCH AUTOSEL 4.19 01/66] net: wan: wanxl: use allow to pass CROSS_COMPILE_M68k for rebuilding firmware 67 (67) 2020/04/12 01:16
Reminder: 11 open syzbot bugs in RDMA subsystem 1 (1) 2019/07/24 01:48
Reminder: 11 open syzbot bugs in RDMA subsystem 1 (1) 2019/06/25 05:48
BUG: corrupted list in rdma_listen 0 (2) 2018/05/06 04:09
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: corrupted list in rdma_listen 4 1694d 1733d 0/1 auto-closed as invalid on 2020/07/18 15:58
upstream BUG: corrupted list in rdma_listen (2) rdma C inconclusive 5 1004d 1070d 22/28 fixed on 2023/02/24 13:50
linux-4.19 BUG: corrupted list in rdma_listen 3 1675d 1709d 0/1 auto-closed as invalid on 2020/08/06 14:55
linux-4.14 BUG: corrupted list in rdma_listen (2) C error 21 801d 1562d 0/1 upstream: reported C repro on 2020/07/30 18:22

Sample crash report:
list_add corruption. prev->next should be next (ffffffff8af0e970), but was 0000000000000000. (prev=ffff8801c7a721d8).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:28!
invalid opcode: 0000 [#1] SMP PTI
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 6153 Comm: syz-executor751 Not tainted 4.17.0+ #9
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add_valid+0x43c/0x450 lib/list_debug.c:26
RSP: 0018:ffff8801bccdfa60 EFLAGS: 00010282
RAX: 0000000000000075 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: aaaaaaaaaaaab000 RDI: ffffea0000000000
RBP: ffff8801bccdfac8 R08: 0000000001080020 R09: 0000000000000002
R10: 0000000000000000 R11: ffffffff86575950 R12: ffffffff8af0e970
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8801b13d88d8
FS:  00000000024d7880(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cb090 CR3: 000000019ccee000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_add include/linux/list.h:60 [inline]
 list_add_tail include/linux/list.h:93 [inline]
 cma_listen_on_all drivers/infiniband/core/cma.c:2301 [inline]
 rdma_listen+0x65f/0x10f0 drivers/infiniband/core/cma.c:3327
 ucma_listen+0x4e9/0x630 drivers/infiniband/core/ucma.c:1096
 ucma_write+0x57e/0x5f0 drivers/infiniband/core/ucma.c:1676
 __vfs_write+0x1aa/0x9f0 fs/read_write.c:485
 vfs_write+0x467/0x8c0 fs/read_write.c:549
 ksys_write fs/read_write.c:598 [inline]
 __do_sys_write fs/read_write.c:610 [inline]
 __se_sys_write fs/read_write.c:607 [inline]
 __x64_sys_write+0x1bf/0x3e0 fs/read_write.c:607
 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x440969
RSP: 002b:00007ffe68bd7738 EFLAGS: 00000207 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440969
RDX: 0000000000000010 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000207 R12: 0000000000009e2d
R13: 0000000000401e60 R14: 0000000000000000 R15: 0000000000000000
Code: 80 0c 00 00 00 00 00 00 41 c7 87 20 03 00 00 00 00 00 00 48 c7 c7 47 b1 9c 8a 31 c0 4c 89 e6 4c 89 ea 48 8b 4d c0 e8 54 a3 3e fd <0f> 0b 66 90 eb fe 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 55 
RIP: __list_add_valid+0x43c/0x450 lib/list_debug.c:26 RSP: ffff8801bccdfa60
---[ end trace 78493249e1315d39 ]---

Crashes (202):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/06/23 16:03 https://github.com/google/kmsan.git master 123906095e30 2064fc5c .config console log report syz C ci-upstream-kmsan-gce
2018/05/27 10:50 https://github.com/google/kmsan.git master 1b9cd4eccac9 f48c20b8 .config console log report syz C ci-upstream-kmsan-gce
2018/05/06 04:08 https://github.com/google/kmsan.git master d2d741e5d189 78b251cb .config console log report syz C ci-upstream-kmsan-gce
2019/11/19 22:19 upstream af42d3466bdc 5bc70212 .config console log report ci-upstream-kasan-gce-root
2019/11/08 16:52 upstream 847120f859cc 1e35461e .config console log report ci-upstream-kasan-gce-root
2019/08/30 12:38 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce
2019/08/30 01:50 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce
2019/08/27 14:38 upstream a55aa89aab90 d21c5d9d .config console log report ci-upstream-kasan-gce
2019/08/27 13:29 upstream a55aa89aab90 d21c5d9d .config console log report ci-upstream-kasan-gce
2019/08/17 07:54 upstream 2d63ba3e41db 8fd428a1 .config console log report ci-upstream-kasan-gce
2019/03/04 02:05 upstream 1c163f4c7b3f 1c0e457a .config console log report ci-upstream-kasan-gce
2019/03/03 09:10 upstream c027c7cf1577 1c0e457a .config console log report ci-upstream-kasan-gce
2019/02/23 09:52 upstream cb268d806972 18107ce0 .config console log report ci-upstream-kasan-gce
2019/02/05 07:08 upstream 8834f5600cf3 d672172c .config console log report ci-upstream-kasan-gce-smack-root
2019/01/21 15:20 upstream 49a57857aeea badbbeee .config console log report ci-upstream-kasan-gce
2018/12/13 21:51 upstream f5d582777bcb f3d9d594 .config console log report ci-upstream-kasan-gce
2018/12/13 19:01 upstream f5d582777bcb f3d9d594 .config console log report ci-upstream-kasan-gce
2018/12/07 20:32 upstream b72f711a4efa 1eb6a7e4 .config console log report ci-upstream-kasan-gce-root
2018/12/02 16:55 upstream 4b78317679c4 e0d8c853 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/02 00:34 upstream d8f190ee836a 5a581673 .config console log report ci-upstream-kasan-gce
2018/11/28 16:38 upstream ef78e5ec9214 4b6d14f2 .config console log report ci-upstream-kasan-gce-smack-root
2018/11/27 21:02 upstream ef78e5ec9214 4b6d14f2 .config console log report ci-upstream-kasan-gce
2018/10/16 03:50 upstream f0a7d1883d9f 8cd30605 .config console log report ci-upstream-kasan-gce
2018/08/18 22:55 upstream a18d783fedfe de20bcbb .config console log report ci-upstream-kasan-gce
2018/08/12 15:13 upstream ec0c96714e7d 7a88b141 .config console log report ci-upstream-kasan-gce
2018/08/11 15:01 upstream f313b43be461 7a88b141 .config console log report ci-upstream-kasan-gce
2018/03/25 23:37 upstream bcfc1f455466 e033c1f1 .config console log report ci-upstream-kasan-gce-root
2019/08/30 00:48 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce-386
2019/08/29 23:20 upstream 6525771f58cb fd37b39e .config console log report ci-upstream-kasan-gce-386
2019/08/27 05:57 upstream a55aa89aab90 d21c5d9d .config console log report ci-upstream-kasan-gce-386
2018/10/06 14:39 upstream 091a1eaa0e30 8b311eaf .config console log report ci-upstream-kasan-gce-386
2018/09/02 10:25 upstream 360bd62dc494 a4718693 .config console log report ci-upstream-kasan-gce-386
2018/09/01 03:20 upstream 420f51f4ab6b a4718693 .config console log report ci-upstream-kasan-gce-386
2018/08/12 10:10 upstream ec0c96714e7d 7a88b141 .config console log report ci-upstream-kasan-gce-386
2019/03/11 04:08 linux-next cf08baa29613 12365b99 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/05 00:08 https://github.com/google/kmsan.git master 28f0ca98eadf a4718693 .config console log report ci-upstream-kmsan-gce
2018/09/04 22:11 https://github.com/google/kmsan.git master 28f0ca98eadf a4718693 .config console log report ci-upstream-kmsan-gce
2018/09/04 17:54 https://github.com/google/kmsan.git master 28f0ca98eadf a4718693 .config console log report ci-upstream-kmsan-gce
2018/09/03 11:35 https://github.com/google/kmsan.git master 28f0ca98eadf a4718693 .config console log report ci-upstream-kmsan-gce
2018/09/02 17:25 https://github.com/google/kmsan.git master 28f0ca98eadf a4718693 .config console log report ci-upstream-kmsan-gce
2018/09/01 09:04 https://github.com/google/kmsan.git master 28f0ca98eadf a4718693 .config console log report ci-upstream-kmsan-gce
2018/08/31 19:16 linux-next a880148cb2af a4718693 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/29 18:18 https://github.com/google/kmsan.git master 2dca2cbde67a 4937cb2b .config console log report ci-upstream-kmsan-gce
2018/08/29 14:51 https://github.com/google/kmsan.git master 2dca2cbde67a 53ff8784 .config console log report ci-upstream-kmsan-gce
2018/08/29 02:27 https://github.com/google/kmsan.git master 2dca2cbde67a b771b17e .config console log report ci-upstream-kmsan-gce
2018/08/28 14:45 https://github.com/google/kmsan.git master 72cde92031e1 7ef1de9e .config console log report ci-upstream-kmsan-gce
2018/08/24 09:32 https://github.com/google/kmsan.git master 0cc51dc9a291 95b5c82b .config console log report ci-upstream-kmsan-gce
2018/08/22 00:30 https://github.com/google/kmsan.git master 0cc51dc9a291 95b5c82b .config console log report ci-upstream-kmsan-gce
2018/08/15 08:06 https://github.com/google/kmsan.git master 0cc51dc9a291 0e6dcb88 .config console log report ci-upstream-kmsan-gce
2018/08/12 03:01 https://github.com/google/kmsan.git master 0cc51dc9a291 7a88b141 .config console log report ci-upstream-kmsan-gce
2018/08/10 09:17 https://github.com/google/kmsan.git master 0cc51dc9a291 1fb62d58 .config console log report ci-upstream-kmsan-gce
2018/08/10 06:22 https://github.com/google/kmsan.git master 0cc51dc9a291 1fb62d58 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.