syzbot


kernel BUG in ib_device_get_by_index

Status: closed as invalid on 2026/02/28 05:07
Subsystems: rdma
[Documentation on labels]
Reported-by: syzbot+53cf317e7803e4ef2f33@syzkaller.appspotmail.com
First crash: 6d11h, last: 6d01h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [rdma?] kernel BUG in ib_device_get_by_index 1 (2) 2026/02/28 05:07

Sample crash report:
------------[ cut here ]------------
kernel BUG at ./include/rdma/ib_verbs.h:4611!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 5945 Comm: syz.0.12 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:ib_device_try_get include/rdma/ib_verbs.h:4611 [inline]
RIP: 0010:ib_device_get_by_index+0x2ae/0x2b0 drivers/infiniband/core/device.c:331
Code: f9 e9 76 fe ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 9d fe ff ff 4c 89 f7 e8 6d 6c 88 f9 e9 90 fe ff ff e8 23 46 1e f9 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa
RSP: 0018:ffffc900043e6fe0 EFLAGS: 00010287
RAX: ffffffff88a79c3d RBX: ffff8880277bc000 RCX: 0000000000080000
RDX: ffffc9000d882000 RSI: 0000000000000110 RDI: 0000000000000111
RBP: ffffc900043e7090 R08: ffff88801e7ebc80 R09: 0000000000000002
R10: 0000000000000406 R11: 0000000000000002 R12: 1ffff9200087ce00
R13: dffffc0000000000 R14: ffff8880277bd104 R15: dffffc0000000000
FS:  00007f2f67eba6c0(0000) GS:ffff888125009000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000001000 CR3: 0000000076cc8000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 nldev_set_doit+0x23a/0x4c0 drivers/infiniband/core/nldev.c:1134
 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+0x6d7/0xa10 drivers/infiniband/core/netlink.c:259
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894
 sock_sendmsg_nosec+0x18f/0x1d0 net/socket.c:737
 __sock_sendmsg net/socket.c:752 [inline]
 ____sys_sendmsg+0x589/0x8c0 net/socket.c:2610
 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2664
 __sys_sendmsg net/socket.c:2696 [inline]
 __do_sys_sendmsg net/socket.c:2701 [inline]
 __se_sys_sendmsg net/socket.c:2699 [inline]
 __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2699
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2f66f9c629
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:00007f2f67eba028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f2f67216090 RCX: 00007f2f66f9c629
RDX: 0000000000040810 RSI: 0000200000000140 RDI: 0000000000000004
RBP: 00007f2f67032b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2f67216128 R14: 00007f2f67216090 R15: 00007fff55890bd8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ib_device_try_get include/rdma/ib_verbs.h:4611 [inline]
RIP: 0010:ib_device_get_by_index+0x2ae/0x2b0 drivers/infiniband/core/device.c:331
Code: f9 e9 76 fe ff ff 44 89 f1 80 e1 07 80 c1 03 38 c1 0f 8c 9d fe ff ff 4c 89 f7 e8 6d 6c 88 f9 e9 90 fe ff ff e8 23 46 1e f9 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa
RSP: 0018:ffffc900043e6fe0 EFLAGS: 00010287
RAX: ffffffff88a79c3d RBX: ffff8880277bc000 RCX: 0000000000080000
RDX: ffffc9000d882000 RSI: 0000000000000110 RDI: 0000000000000111
RBP: ffffc900043e7090 R08: ffff88801e7ebc80 R09: 0000000000000002
R10: 0000000000000406 R11: 0000000000000002 R12: 1ffff9200087ce00
R13: dffffc0000000000 R14: ffff8880277bd104 R15: dffffc0000000000
FS:  00007f2f67eba6c0(0000) GS:ffff888125109000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f37a17e82f8 CR3: 0000000076cc8000 CR4: 00000000003526f0

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/02/24 13:41 linux-next 779cae956c83 96b1aa46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce kernel BUG in ib_device_get_by_index
2026/02/24 09:52 linux-next 779cae956c83 41d2fa6a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ib_device_get_by_index
2026/02/24 09:51 linux-next 779cae956c83 41d2fa6a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ib_device_get_by_index
2026/02/24 09:03 linux-next 779cae956c83 41d2fa6a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ib_device_get_by_index
2026/02/24 08:36 linux-next 779cae956c83 41d2fa6a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ib_device_get_by_index
2026/02/24 08:35 linux-next 779cae956c83 41d2fa6a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ib_device_get_by_index
2026/02/24 04:26 linux-next 779cae956c83 41d2fa6a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ib_device_get_by_index
2026/02/24 04:26 linux-next 779cae956c83 41d2fa6a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ib_device_get_by_index
* Struck through repros no longer work on HEAD.