infiniband syz1: Couldn't set up InfiniBand P_Key/GID cache ------------[ cut here ]------------ GID entry ref leak for dev syz1 index 0 ref=1 WARNING: CPU: 0 PID: 12607 at drivers/infiniband/core/cache.c:809 release_gid_table drivers/infiniband/core/cache.c:806 [inline] WARNING: CPU: 0 PID: 12607 at drivers/infiniband/core/cache.c:809 gid_table_release_one+0x33f/0x4d0 drivers/infiniband/core/cache.c:886 Modules linked in: CPU: 0 UID: 0 PID: 12607 Comm: syz-executor.0 Not tainted 6.10.0-rc4-next-20240621-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:release_gid_table drivers/infiniband/core/cache.c:806 [inline] RIP: 0010:gid_table_release_one+0x33f/0x4d0 drivers/infiniband/core/cache.c:886 Code: 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 75 3e 41 8b 0c 24 48 c7 c7 60 bc a7 8c 48 89 de 44 89 fa e8 02 8b ce f8 90 <0f> 0b 90 90 e9 d3 fe ff ff 44 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc90004a86fe8 EFLAGS: 00010246 RAX: 7fcf43de85c5e800 RBX: ffff888015bdafe0 RCX: 0000000000040000 RDX: ffffc90015644000 RSI: 000000000001db46 RDI: 000000000001db47 RBP: ffff88802916fad8 R08: ffffffff815547a2 R09: 1ffffffff25fc8f8 R10: dffffc0000000000 R11: fffffbfff25fc8f9 R12: ffff8880249e0500 R13: ffff88802916fa00 R14: 1ffff1100522df5b R15: 0000000000000000 FS: 00007f0367cc86c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 0000000050826000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ib_device_release+0xd0/0x1b0 drivers/infiniband/core/device.c:498 device_release+0x99/0x1c0 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x22f/0x480 lib/kobject.c:737 rxe_net_add+0x93/0xd0 drivers/infiniband/sw/rxe/rxe_net.c:543 rxe_newlink+0xde/0x1a0 drivers/infiniband/sw/rxe/rxe.c:197 nldev_newlink+0x5d0/0x640 drivers/infiniband/core/nldev.c:1778 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] rdma_nl_rcv+0x6dd/0x9e0 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f0/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0366e7d0a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0367cc80c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f0366fb3f80 RCX: 00007f0366e7d0a9 RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000006 RBP: 00007f0366eec074 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f0366fb3f80 R15: 00007ffe3f2cc2d8