rxe_register_device+0x1e3/0x350 drivers/infiniband/sw/rxe/rxe_verbs.c:1556 rxe_net_add+0x81/0x110 drivers/infiniband/sw/rxe/rxe_net.c:618 rxe_newlink+0xdd/0x190 drivers/infiniband/sw/rxe/rxe.c:234 nldev_newlink+0x5bd/0x650 drivers/infiniband/core/nldev.c:1797 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+0x6d7/0xa10 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa68/0xad0 net/socket.c:2592 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2646 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2683 [inline] __se_sys_sendmsg net/socket.c:2681 [inline] __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f871ab9bf79 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:00007f871ba35028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f871ae15fa0 RCX: 00007f871ab9bf79 RDX: 0000000000000000 RSI: 0000200000000140 RDI: 0000000000000005 RBP: 00007f871ac327e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f871ae16038 R14: 00007f871ae15fa0 R15: 00007fffeb63f568 Mem-Info: active_anon:6877 inactive_anon:56 isolated_anon:0 active_file:571 inactive_file:38787 isolated_file:0 unevictable:1768 dirty:4 writeback:0 slab_reclaimable:7295 slab_unreclaimable:30497 mapped:9889 shmem:5863 pagetables:700 sec_pagetables:288 bounce:0 kernel_misc_reclaimable:0 free:30320 free_pcp:0 free_cma:0 Node 0 active_anon:96kB inactive_anon:224kB active_file:216kB inactive_file:8kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:212kB dirty:8kB writeback:0kB shmem:108kB shmem_thp:0kB shmem_pmdmapped:0kB anon_thp:0kB kernel_stack:3040kB pagetables:1052kB sec_pagetables:1084kB all_unreclaimable? no Balloon:0kB Node 0 DMA free:1636kB boost:2048kB min:2808kB low:2996kB high:3184kB reserved_highatomic:0KB free_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB zspages:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 115 115 115 115 Node 0 DMA32 free:6300kB boost:8192kB min:12600kB low:13700kB high:14800kB reserved_highatomic:0KB free_highatomic:0KB active_anon:96kB inactive_anon:224kB active_file:216kB inactive_file:8kB unevictable:0kB writepending:8kB zspages:0kB present:770052kB managed:117824kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 0 Node 0 DMA: 5*4kB (U) 4*8kB (U) 7*16kB (U) 4*32kB (U) 3*64kB (U) 1*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 0*2048kB 0*4096kB = 1636kB Node 0 DMA32: 75*4kB (UME) 68*8kB (UME) 45*16kB (UME) 30*32kB (ME) 11*64kB (UM) 6*128kB (M) 5*256kB (UM) 0*512kB 1*1024kB (U) 0*2048kB 0*4096kB = 6300kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Node 0 hugepages_total=2 hugepages_free=2 hugepages_surp=0 hugepages_size=2048kB 45269 total pagecache pages 46 pages in swap cache Free swap = 121752kB Total swap = 124996kB 393083 pages RAM 0 pages HighMem/MovableOnly 187084 pages reserved 0 pages cma reserved smc: removing ib device syz1 ------------[ 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/5322 Modules linked in: CPU: 0 UID: 0 PID: 5322 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 ba 78 f9 48 83 3b 00 75 0c e8 25 00 0e f9 5b c3 cc cc cc cc cc e8 19 00 0e f9 90 <0f> 0b 90 5b e9 cf b2 e9 02 cc 66 66 66 66 66 2e 0f 1f 84 00 00 00 RSP: 0018:ffffc9000ea96fe8 EFLAGS: 00010293 RAX: ffffffff88b68447 RBX: ffff888040f993d8 RCX: ffff888037af8000 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: ffff888040f99358 RBP: 0000000000000000 R08: ffffc9000ea96d47 R09: 1ffff92001d52da8 R10: dffffc0000000000 R11: ffffffff88b4bee0 R12: ffff888040f990e8 R13: dffffc0000000000 R14: ffffffff88b4bee0 R15: dffffc0000000000 FS: 00007f871ba356c0(0000) GS:ffff88808cabf000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e85daf27f8 CR3: 000000003ead8000 CR4: 0000000000352ef0 Call Trace: rxe_dealloc+0x27/0xc0 drivers/infiniband/sw/rxe/rxe.c:24 ib_dealloc_device+0x54/0x200 drivers/infiniband/core/device.c:693 rxe_net_add+0xa1/0x110 drivers/infiniband/sw/rxe/rxe_net.c:620 rxe_newlink+0xdd/0x190 drivers/infiniband/sw/rxe/rxe.c:234 nldev_newlink+0x5bd/0x650 drivers/infiniband/core/nldev.c:1797 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+0x6d7/0xa10 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x80f/0x9b0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x813/0xb40 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa68/0xad0 net/socket.c:2592 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2646 __sys_sendmsg net/socket.c:2678 [inline] __do_sys_sendmsg net/socket.c:2683 [inline] __se_sys_sendmsg net/socket.c:2681 [inline] __x64_sys_sendmsg+0x1bd/0x2a0 net/socket.c:2681 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f871ab9bf79 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:00007f871ba35028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f871ae15fa0 RCX: 00007f871ab9bf79 RDX: 0000000000000000 RSI: 0000200000000140 RDI: 0000000000000005 RBP: 00007f871ac327e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f871ae16038 R14: 00007f871ae15fa0 R15: 00007fffeb63f568