syzbot


WARNING in gid_table_release_one

Status: upstream: reported on 2024/08/17 05:33
Reported-by: syzbot+8d288f2a3f6a9326c687@syzkaller.appspotmail.com
First crash: 32d, last: 32d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in gid_table_release_one (2) rdma 1 20d 16d 1/28 upstream: reported on 2024/09/02 03:46
upstream WARNING in gid_table_release_one rdma 12 83d 90d 0/28 auto-obsoleted due to no activity on 2024/08/06 20:20

Sample crash report:
infiniband syz1: Couldn't set up InfiniBand P_Key/GID cache
rdma_rxe: rxe_register_device failed with error -19
------------[ cut here ]------------
GID entry ref leak for dev syz1 index 0 ref=1
WARNING: CPU: 0 PID: 6705 at drivers/infiniband/core/cache.c:809 release_gid_table drivers/infiniband/core/cache.c:806 [inline]
WARNING: CPU: 0 PID: 6705 at drivers/infiniband/core/cache.c:809 gid_table_release_one+0x2b5/0x420 drivers/infiniband/core/cache.c:886
Modules linked in:
CPU: 0 PID: 6705 Comm: syz.4.573 Not tainted 6.1.105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:release_gid_table drivers/infiniband/core/cache.c:806 [inline]
RIP: 0010:gid_table_release_one+0x2b5/0x420 drivers/infiniband/core/cache.c:886
Code: 91 0c 0b fa 4c 89 e0 48 c1 e8 03 42 0f b6 04 28 84 c0 75 3a 41 8b 0c 24 48 c7 c7 20 63 e9 8b 48 89 de 44 89 fa e8 3b 81 7b f9 <0f> 0b e9 31 ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 3e ff ff
RSP: 0018:ffffc9000488f0e0 EFLAGS: 00010246
RAX: 0a80339179cef800 RBX: ffff888052265938 RCX: 0000000000040000
RDX: ffffc90004aa9000 RSI: 000000000001d517 RDI: 000000000001d518
RBP: dffffc0000000000 R08: ffffffff8152940e R09: fffff52000911d7d
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888023fe6100
R13: dffffc0000000000 R14: ffff88807d341cd8 R15: 0000000000000000
FS:  00007ffb79d266c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa0d5ea7f98 CR3: 0000000067b25000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ib_device_release+0xcc/0x1b0 drivers/infiniband/core/device.c:498
 device_release+0x91/0x1c0
 kobject_cleanup lib/kobject.c:681 [inline]
 kobject_release lib/kobject.c:712 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x224/0x460 lib/kobject.c:729
 rxe_net_add+0x92/0xd0 drivers/infiniband/sw/rxe/rxe_net.c:524
 rxe_newlink+0x6b/0xe0 drivers/infiniband/sw/rxe/rxe.c:197
 nldev_newlink+0x5a6/0x620 drivers/infiniband/core/nldev.c:1719
 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
 rdma_nl_rcv+0x6c4/0x9c0 drivers/infiniband/core/netlink.c:259
 netlink_unicast_kernel net/netlink/af_netlink.c:1326 [inline]
 netlink_unicast+0x7d8/0x970 net/netlink/af_netlink.c:1352
 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1874
 sock_sendmsg_nosec net/socket.c:718 [inline]
 __sock_sendmsg net/socket.c:730 [inline]
 ____sys_sendmsg+0x5a5/0x8f0 net/socket.c:2514
 ___sys_sendmsg net/socket.c:2568 [inline]
 __sys_sendmsg+0x2a9/0x390 net/socket.c:2597
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7ffb78f79e79
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffb79d26038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ffb79116058 RCX: 00007ffb78f79e79
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000005
RBP: 00007ffb78fe7916 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ffb79116058 R15: 00007ffcd969b728
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/17 05:33 linux-6.1.y 117ac406ba90 dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in gid_table_release_one
* Struck through repros no longer work on HEAD.