------------[ cut here ]------------ GID entry ref leak for dev syz1 index 2 ref=1 WARNING: drivers/infiniband/core/cache.c:806 at release_gid_table drivers/infiniband/core/cache.c:806 [inline], CPU#2: syz.2.1640/12120 WARNING: drivers/infiniband/core/cache.c:806 at gid_table_release_one+0x1ad/0x450 drivers/infiniband/core/cache.c:886, CPU#2: syz.2.1640/12120 Modules linked in: CPU: 2 UID: 0 PID: 12120 Comm: syz.2.1640 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:release_gid_table drivers/infiniband/core/cache.c:806 [inline] RIP: 0010:gid_table_release_one+0x1b6/0x450 drivers/infiniband/core/cache.c:886 Code: 4c 24 38 48 c1 e8 03 4d 01 fc 48 89 44 24 08 eb 54 48 89 34 24 e8 1a 52 4f f9 48 8d 3d c3 83 26 08 48 8b 34 24 89 e9 44 89 f2 <67> 48 0f b9 3a e8 00 52 4f f9 48 89 d8 41 83 c6 01 48 c1 e8 03 42 RSP: 0018:ffffc900034ff148 EFLAGS: 00010246 RAX: 0000000000080000 RBX: ffff8880131c7200 RCX: 0000000000000001 RDX: 0000000000000002 RSI: ffff88804ccf8fc0 RDI: ffffffff90958aa0 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffed1009899c60 R10: ffff88804c4ce303 R11: ffff888047c40b30 R12: ffffed1002638e5b R13: ffff88806ee8c000 R14: 0000000000000002 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880978fc000(0063) knlGS:00000000f548db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f54b5da4 CR3: 000000006f6ff000 CR4: 0000000000352ef0 Call Trace: ib_device_release+0xef/0x1e0 drivers/infiniband/core/device.c:509 device_release+0xa4/0x240 drivers/base/core.c:2565 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1ef/0x6f0 lib/kobject.c:737 put_device+0x1f/0x30 drivers/base/core.c:3797 nldev_dellink+0x21f/0x320 drivers/infiniband/core/nldev.c:1827 rdma_nl_rcv_msg+0x38a/0x6e0 drivers/infiniband/core/netlink.c:195 rdma_nl_rcv_skb.constprop.0.isra.0+0x2d0/0x430 drivers/infiniband/core/netlink.c:239 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa5d/0xc30 net/socket.c:2592 ___sys_sendmsg+0x134/0x1d0 net/socket.c:2646 __sys_sendmsg+0x16d/0x220 net/socket.c:2678 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe8/0x680 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf709d579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f548d55c EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00000000800002c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 4c 24 38 rex.WR and $0x38,%al 3: 48 c1 e8 03 shr $0x3,%rax 7: 4d 01 fc add %r15,%r12 a: 48 89 44 24 08 mov %rax,0x8(%rsp) f: eb 54 jmp 0x65 11: 48 89 34 24 mov %rsi,(%rsp) 15: e8 1a 52 4f f9 call 0xf94f5234 1a: 48 8d 3d c3 83 26 08 lea 0x82683c3(%rip),%rdi # 0x82683e4 21: 48 8b 34 24 mov (%rsp),%rsi 25: 89 e9 mov %ebp,%ecx 27: 44 89 f2 mov %r14d,%edx * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e8 00 52 4f f9 call 0xf94f5234 34: 48 89 d8 mov %rbx,%rax 37: 41 83 c6 01 add $0x1,%r14d 3b: 48 c1 e8 03 shr $0x3,%rax 3f: 42 rex.X