list_add corruption. prev->next should be next (ffff8880a1866c78), but was ffffffff8a1eacc0. (prev=ffff888050ff21e0). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:26! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 14184 Comm: syz-executor.3 Not tainted 5.6.0-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 00 f8 51 88 e8 94 f9 c7 fd 0f 0b 48 89 f1 48 c7 c7 80 f7 51 88 4c 89 e6 e8 80 f9 c7 fd <0f> 0b 48 89 ee 48 c7 c7 20 f9 51 88 e8 6f f9 c7 fd 0f 0b 4c 89 ea RSP: 0018:ffffc9001764fc00 EFLAGS: 00010282 RAX: 0000000000000075 RBX: ffff8880551da000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff815c9f11 RDI: fffff52002ec9f72 RBP: ffff8880551da1e0 R08: 0000000000000075 R09: ffffed1015ce66a1 R10: ffffed1015ce66a0 R11: ffff8880ae733507 R12: ffff8880a1866c78 R13: ffff888050ff21e0 R14: ffff8880551da1e0 R15: ffff8880a1866c78 FS: 00007f23807a1700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004d86d0 CR3: 0000000095600000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add include/linux/list.h:67 [inline] list_add_tail include/linux/list.h:100 [inline] _cma_attach_to_dev+0x147/0x2e0 drivers/infiniband/core/cma.c:471 cma_listen_on_dev+0x254/0x650 drivers/infiniband/core/cma.c:2493 cma_listen_on_all drivers/infiniband/core/cma.c:2514 [inline] rdma_listen+0x739/0x910 drivers/infiniband/core/cma.c:3629 ucma_listen+0x14d/0x1c0 drivers/infiniband/core/ucma.c:1092 ucma_write+0x285/0x350 drivers/infiniband/core/ucma.c:1684 __vfs_write+0x76/0x100 fs/read_write.c:494 vfs_write+0x268/0x5d0 fs/read_write.c:558 ksys_write+0x1ee/0x250 fs/read_write.c:611 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45c849 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:00007f23807a0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f23807a16d4 RCX: 000000000045c849 RDX: 0000000000000010 RSI: 0000000020000140 RDI: 0000000000000003 RBP: 000000000076bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000cc0 R14: 00000000004cee4e R15: 000000000076bfac Modules linked in: ---[ end trace efbc3edc01314d29 ]--- 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 00 f8 51 88 e8 94 f9 c7 fd 0f 0b 48 89 f1 48 c7 c7 80 f7 51 88 4c 89 e6 e8 80 f9 c7 fd <0f> 0b 48 89 ee 48 c7 c7 20 f9 51 88 e8 6f f9 c7 fd 0f 0b 4c 89 ea RSP: 0018:ffffc9001764fc00 EFLAGS: 00010282 RAX: 0000000000000075 RBX: ffff8880551da000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff815c9f11 RDI: fffff52002ec9f72 RBP: ffff8880551da1e0 R08: 0000000000000075 R09: ffffed1015ce66a1 R10: ffffed1015ce66a0 R11: ffff8880ae733507 R12: ffff8880a1866c78 R13: ffff888050ff21e0 R14: ffff8880551da1e0 R15: ffff8880a1866c78 FS: 00007f23807a1700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa4a36c7000 CR3: 0000000095600000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400