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/5345 Modules linked in: CPU: 0 UID: 0 PID: 5345 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 80 d2 2b f9 48 83 3b 00 75 0c e8 b5 30 b3 f8 5b e9 0f d3 f3 02 cc e8 a9 30 b3 f8 90 <0f> 0b 90 5b e9 ff d2 f3 02 cc 66 66 66 66 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc9000dbc7000 EFLAGS: 00010246 RAX: ffffffff8915f657 RBX: ffff8880140f5458 RCX: 0000000000100000 RDX: ffffc9000ef32000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffff8880140f5138 R08: ffff8880140f47e3 R09: 1ffff1100281e8fc R10: dffffc0000000000 R11: ffffffff89142300 R12: ffff8880140f5138 R13: 1ffff1100281e9f7 R14: ffffffff89142300 R15: dffffc0000000000 FS: 00007fc4539d26c0(0000) GS:ffff88808aa04000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055ef9556d258 CR3: 0000000045b15000 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:0x7fc452b9f559 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:00007fc4539d1fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc452e25fa0 RCX: 00007fc452b9f559 RDX: 0000000000000000 RSI: 00002000000002c0 RDI: 0000000000000003 RBP: 00007fc452c36b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc452e26038 R14: 00007fc452e25fa0 R15: 00007fff3be87488