smc: removing ib device syz1 ------------[ cut here ]------------ GID entry ref leak for dev syz1 index 2 ref=4 WARNING: drivers/infiniband/core/cache.c:806 at release_gid_table drivers/infiniband/core/cache.c:806 [inline], CPU#0: syz.3.1828/13698 WARNING: drivers/infiniband/core/cache.c:806 at gid_table_release_one+0x1ad/0x450 drivers/infiniband/core/cache.c:886, CPU#0: syz.3.1828/13698 Modules linked in: CPU: 0 UID: 0 PID: 13698 Comm: syz.3.1828 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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 2a 69 4f f9 48 8d 3d d3 89 26 08 48 8b 34 24 89 e9 44 89 f2 <67> 48 0f b9 3a e8 10 69 4f f9 48 89 d8 41 83 c6 01 48 c1 e8 03 42 RSP: 0018:ffffc90007acf148 EFLAGS: 00010246 RAX: 0000000000080000 RBX: ffff888023c9a800 RCX: 0000000000000004 RDX: 0000000000000002 RSI: ffff8880687b5ba0 RDI: ffffffff90958ba0 RBP: 0000000000000004 R08: 0000000000000000 R09: ffffed100ce11fe0 R10: ffff88806708ff03 R11: ffff88802296aff0 R12: ffffed100479351b R13: ffff8880524d4000 R14: 0000000000000002 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880976fc000(0063) knlGS:00000000f53e5b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000ffdd9f80 CR3: 0000000073486000 CR4: 0000000000352ef0 DR0: 0000000000000003 DR1: 00000000000001f8 DR2: 000000000000008e DR3: 000000000000057a DR6: 00000000ffff0ff0 DR7: 0000000000000400 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:0xf7f12579 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:00000000f53e555c EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00000000800002c0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 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 2a 69 4f f9 call 0xf94f6944 1a: 48 8d 3d d3 89 26 08 lea 0x82689d3(%rip),%rdi # 0x82689f4 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 10 69 4f f9 call 0xf94f6944 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