syzbot
general protection fault in cma_process_remove
Status:
upstream: reported on 2026/10/30 20:22
Reported-by: syzbot+1340bd35332c78918aba@syzkaller.appspotmail.com
First crash: 13d, last: 13d
Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc00000000e1: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000708-0x000000000000070f]
CPU: 1 PID: 13336 Comm: syz.8.2659 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:rdma_cap_ib_sa include/rdma/ib_verbs.h:3223 [inline]
RIP: 0010:cma_cancel_route drivers/infiniband/core/cma.c:1881 [inline]
RIP: 0010:cma_cancel_operation drivers/infiniband/core/cma.c:1936 [inline]
RIP: 0010:cma_send_device_removal_put drivers/infiniband/core/cma.c:5250 [inline]
RIP: 0010:cma_process_remove+0x6ab/0xc40 drivers/infiniband/core/cma.c:5266
Code: 4d 8d 74 24 98 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 9f 03 00 00 45 8b 36 48 81 c3 08 07 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 06 29 48 fa 48 8b 03 49 69 ce 98
RSP: 0018:ffffc90005966fa0 EFLAGS: 00010206
RAX: 00000000000000e1 RBX: 0000000000000708 RCX: 0000000000000005
RDX: ffffffff878ba162 RSI: ffffffff8eb56500 RDI: 0000000000000003
RBP: ffffc900059670e0 R08: ffff88802856da00 R09: 0000000000000003
R10: 0000000000000008 R11: 0000000000000002 R12: ffff888055d08238
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888055d08000
FS: 00007f3c9d04d6c0(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f545f3556c8 CR3: 000000004490b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 00000000dec0c4ad
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
cma_remove_one+0x1a0/0x390 drivers/infiniband/core/cma.c:5374
remove_client_context+0xb3/0x1e0 drivers/infiniband/core/device.c:786
disable_device+0x134/0x330 drivers/infiniband/core/device.c:1292
__ib_unregister_device+0x6f/0x170 drivers/infiniband/core/device.c:1490
ib_unregister_device_and_put+0xb4/0xf0 drivers/infiniband/core/device.c:1554
nldev_dellink+0x277/0x310 drivers/infiniband/core/nldev.c:1794
rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:-1 [inline]
rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
rdma_nl_rcv+0x6e7/0xa20 drivers/infiniband/core/netlink.c:259
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x7ad/0x920 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x8ad/0xbd0 net/netlink/af_netlink.c:1877
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
____sys_sendmsg+0x5ed/0x9a0 net/socket.c:2519
___sys_sendmsg+0x2a2/0x360 net/socket.c:2573
__sys_sendmsg net/socket.c:2602 [inline]
__do_sys_sendmsg net/socket.c:2611 [inline]
__se_sys_sendmsg+0x1c3/0x2b0 net/socket.c:2609
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f3c9c19f559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3c9d04d028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f3c9c426180 RCX: 00007f3c9c19f559
RDX: 0000000000000000 RSI: 00002000000002c0 RDI: 0000000000000003
RBP: 00007f3c9c236b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3c9c426218 R14: 00007f3c9c426180 R15: 00007ffc6d99bf88
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rdma_cap_ib_sa include/rdma/ib_verbs.h:3223 [inline]
RIP: 0010:cma_cancel_route drivers/infiniband/core/cma.c:1881 [inline]
RIP: 0010:cma_cancel_operation drivers/infiniband/core/cma.c:1936 [inline]
RIP: 0010:cma_send_device_removal_put drivers/infiniband/core/cma.c:5250 [inline]
RIP: 0010:cma_process_remove+0x6ab/0xc40 drivers/infiniband/core/cma.c:5266
Code: 4d 8d 74 24 98 4c 89 f0 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 9f 03 00 00 45 8b 36 48 81 c3 08 07 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 06 29 48 fa 48 8b 03 49 69 ce 98
RSP: 0018:ffffc90005966fa0 EFLAGS: 00010206
RAX: 00000000000000e1 RBX: 0000000000000708 RCX: 0000000000000005
RDX: ffffffff878ba162 RSI: ffffffff8eb56500 RDI: 0000000000000003
RBP: ffffc900059670e0 R08: ffff88802856da00 R09: 0000000000000003
R10: 0000000000000008 R11: 0000000000000002 R12: ffff888055d08238
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888055d08000
FS: 00007f3c9d04d6c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f82d98d4a10 CR3: 000000004490b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 00000000dec0c4ad
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 4d 8d 74 24 98 lea -0x68(%r12),%r14
5: 4c 89 f0 mov %r14,%rax
8: 48 c1 e8 03 shr $0x3,%rax
c: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax
11: 84 c0 test %al,%al
13: 0f 85 9f 03 00 00 jne 0x3b8
19: 45 8b 36 mov (%r14),%r14d
1c: 48 81 c3 08 07 00 00 add $0x708,%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 06 29 48 fa call 0xfa48293f
39: 48 8b 03 mov (%rbx),%rax
3c: 49 rex.WB
3d: 69 .byte 0x69
3e: ce (bad)
3f: 98 cwtl
* Struck through repros no longer work on HEAD.