smbdirect: ib_dev[syz1]: added: RNIC max_fast_reg_page_list_len=256 device_cap_flags=0x200000 kernel_cap_flags=0x10 page_size_cap=0x1000 smbdirect: ib_dev[syz1]: num_ports=1 max_qp_rd_atom=128 max_qp_init_rd_atom=128 max_sgl_rd=0 max_sge_rd=1 max_cqe=3276800 max_qp_wr=32768 max_send_sge=6 max_recv_sge=6 smbdirect: ib_dev[syz1]PORT[1]: iwarp=1 ib=0 roce=0 v1=0 v2=0 core_cap_flags=0x400008 smc: removing ib device rxe0 smbdirect: ib_dev[rxe0] removed ------------[ cut here ]------------ !xa_empty(&pool->xa) WARNING: drivers/infiniband/sw/rxe/rxe_pool.c:116 at rxe_pool_cleanup+0x48/0x60 drivers/infiniband/sw/rxe/rxe_pool.c:116, CPU#0: syz.0.0/5348 Modules linked in: CPU: 0 UID: 0 PID: 5348 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:rxe_pool_cleanup+0x48/0x60 drivers/infiniband/sw/rxe/rxe_pool.c:116 Code: 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 30 97 2b f9 48 83 3b 00 75 0c e8 75 91 b2 f8 5b c3 cc cc cc cc cc e8 69 91 b2 f8 90 <0f> 0b 90 5b c3 cc cc cc cc cc 66 66 66 66 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc90000ec7000 EFLAGS: 00010246 RAX: ffffffff89168f37 RBX: ffff88801423d458 RCX: 0000000000100000 RDX: ffffc9000ef62000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffff88801423d138 R08: ffff88801423c7e3 R09: 1ffff110028478fc R10: dffffc0000000000 R11: ffffffff8914bbe0 R12: ffff88801423d138 R13: 1ffff110028479f7 R14: ffffffff8914bbe0 R15: dffffc0000000000 FS: 00007fcd6493a6c0(0000) GS:ffff88808a9fe000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f0840ce450 CR3: 000000000fcc4000 CR4: 0000000000352ef0 Call Trace: rxe_dealloc+0x27/0xc0 drivers/infiniband/sw/rxe/rxe.c:26 ib_dealloc_device+0x54/0x200 drivers/infiniband/core/device.c:691 __ib_unregister_device+0x38f/0x400 drivers/infiniband/core/device.c:1589 ib_unregister_device_and_put+0xb8/0xf0 drivers/infiniband/core/device.c:1636 nldev_dellink+0x3a4/0x440 drivers/infiniband/core/nldev.c:1905 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+0x6ef/0xa40 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800 __sock_sendmsg net/socket.c:818 [inline] ____sys_sendmsg+0x54e/0x850 net/socket.c:2715 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2769 __sys_sendmsg net/socket.c:2801 [inline] __do_sys_sendmsg net/socket.c:2806 [inline] __se_sys_sendmsg net/socket.c:2804 [inline] __x64_sys_sendmsg+0x1b1/0x290 net/socket.c:2804 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcd6399fb19 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:00007fcd64939fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fcd63c25fa0 RCX: 00007fcd6399fb19 RDX: 0000000000000000 RSI: 0000200000000200 RDI: 0000000000000009 RBP: 00007fcd63a37b70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fcd63c26038 R14: 00007fcd63c25fa0 R15: 00007fff6ef5fdd8