syzbot


BUG: corrupted list in rdma_listen

Status: auto-closed as invalid on 2020/08/06 14:55
Reported-by: syzbot+51d34e20f76043859e9c@syzkaller.appspotmail.com
First crash: 1510d, last: 1476d
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 1495d 1533d 0/1 auto-closed as invalid on 2020/07/18 15:58
upstream BUG: corrupted list in rdma_listen rdma C 202 1616d 2196d 15/26 fixed on 2020/05/10 10:41
upstream BUG: corrupted list in rdma_listen (2) rdma C inconclusive 5 805d 871d 22/26 fixed on 2023/02/24 13:50
linux-4.14 BUG: corrupted list in rdma_listen (2) C error 21 602d 1363d 0/1 upstream: reported C repro on 2020/07/30 18:22

Sample crash report:
list_add corruption. prev->next should be next (ffffffff894a9900), but was 0000000000000000. (prev=ffff888094bb96e0).
HTB: quantum of class FFFF0900 is small. Consider r2q change.
HTB: quantum of class FFFF0900 is small. Consider r2q change.
------------[ cut here ]------------
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
kernel BUG at lib/list_debug.c:26!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5393 Comm: syz-executor.2 Not tainted 4.19.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add_valid.cold+0x3a/0x3c lib/list_debug.c:26
Code: 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 c0 fe aa 87 e8 14 6f fc fd 0f 0b 48 89 f1 48 c7 c7 40 fe aa 87 4c 89 e6 e8 00 6f fc fd <0f> 0b 48 89 ee 48 c7 c7 e0 ff aa 87 e8 ef 6e fc fd 0f 0b 4c 89 ea
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=5391 comm=syz-executor.5
RSP: 0018:ffff88821057fb60 EFLAGS: 00010282
RAX: 0000000000000075 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8152d3a1 RDI: ffffed10420aff5e
RBP: ffff888052727660 R08: 0000000000000075 R09: ffffed1015cc5079
R10: ffffed1015cc5078 R11: ffff8880ae6283c7 R12: ffffffff894a9900
R13: ffff888052727660 R14: 0000000000000000 R15: ffff888052727830
FS:  00007f36d4f5b700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000b70004 CR3: 00000000a4be0000 CR4: 00000000001406f0
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:2380 [inline]
 rdma_listen+0x609/0x880 drivers/infiniband/core/cma.c:3408
 ucma_listen+0x14d/0x1c0 drivers/infiniband/core/ucma.c:1100
 ucma_write+0x285/0x350 drivers/infiniband/core/ucma.c:1689
 __vfs_write+0xf7/0x760 fs/read_write.c:485
 vfs_write+0x206/0x550 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c889
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f36d4f5ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f36d4f5b6d4 RCX: 000000000045c889
RDX: 0000000000000010 RSI: 00000000200001c0 RDI: 0000000000000007
RBP: 000000000076bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000cc0 R14: 00000000004cee8e R15: 000000000076bfac
Modules linked in:
---[ end trace 8b9378aefd185340 ]---
SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=5376 comm=syz-executor.0
RIP: 0010:__list_add_valid.cold+0x3a/0x3c lib/list_debug.c:26
Code: 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 c0 fe aa 87 e8 14 6f fc fd 0f 0b 48 89 f1 48 c7 c7 40 fe aa 87 4c 89 e6 e8 00 6f fc fd <0f> 0b 48 89 ee 48 c7 c7 e0 ff aa 87 e8 ef 6e fc fd 0f 0b 4c 89 ea
RSP: 0018:ffff88821057fb60 EFLAGS: 00010282
RAX: 0000000000000075 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8152d3a1 RDI: ffffed10420aff5e
RBP: ffff888052727660 R08: 0000000000000075 R09: ffffed1015cc5079
R10: ffffed1015cc5078 R11: ffff8880ae6283c7 R12: ffffffff894a9900
R13: ffff888052727660 R14: 0000000000000000 R15: ffff888052727830
FS:  00007f36d4f5b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f5eb97d557 CR3: 00000000a4be0000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/08 14:54 linux-4.19.y dda0e2920330 db9bcd4b .config console log report ci2-linux-4-19
2020/03/19 09:49 linux-4.19.y 93556fb211fa 2c31c529 .config console log report ci2-linux-4-19
2020/03/05 11:30 linux-4.19.y a083db76118d b655d91b .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.