smc: removing ib device syz2 ------------[ cut here ]------------ !xa_empty(&pool->xa) WARNING: drivers/infiniband/sw/rxe/rxe_pool.c:116 at rxe_pool_cleanup+0x46/0x60 drivers/infiniband/sw/rxe/rxe_pool.c:116, CPU#2: kworker/u32:3/59 Modules linked in: CPU: 2 UID: 0 PID: 59 Comm: kworker/u32:3 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 04/01/2014 Workqueue: ib-unreg-wq ib_unregister_work RIP: 0010:rxe_pool_cleanup+0x46/0x60 drivers/infiniband/sw/rxe/rxe_pool.c:116 Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 29 48 83 bb 80 00 00 00 00 75 0b e8 86 1f 51 f9 5b e9 40 ee d9 02 e8 7b 1f 51 f9 90 <0f> 0b 90 e8 72 1f 51 f9 5b c3 cc cc cc cc e8 c7 b5 bc f9 eb d0 0f RSP: 0000:ffffc900007afb98 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880245553b8 RCX: ffffffff8891bb64 RDX: ffff88802110c980 RSI: ffffffff88b70da5 RDI: ffff888024555438 RBP: ffffffff88b57030 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000002 R11: 0000000000000000 R12: ffff8880245546b0 R13: ffff888024553fe0 R14: ffff888024553fe0 R15: ffff888024555118 FS: 0000000000000000(0000) GS:ffff888097346000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000f51d4a61 CR3: 000000004defe000 CR4: 0000000000352ef0 Call Trace: rxe_dealloc+0x25/0xc0 drivers/infiniband/sw/rxe/rxe.c:24 ib_dealloc_device+0x49/0x230 drivers/infiniband/core/device.c:666 __ib_unregister_device+0x396/0x480 drivers/infiniband/core/device.c:1545 ib_unregister_work+0x19/0x30 drivers/infiniband/core/device.c:1639 process_one_work+0xa23/0x19a0 kernel/workqueue.c:3276 process_scheduled_works kernel/workqueue.c:3359 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3440 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x754/0xd80 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245