infiniband syz0: set down infiniband syz0: added sit0 general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037] CPU: 0 PID: 12045 Comm: syz-executor.0 Not tainted 6.5.0-syzkaller-03967-gbd6c11bc43c4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:flush_send_queue drivers/infiniband/sw/rxe/rxe_comp.c:600 [inline] RIP: 0010:rxe_completer+0x2884/0x4040 drivers/infiniband/sw/rxe/rxe_comp.c:659 Code: 80 3c 02 00 0f 85 26 13 00 00 49 8b ad 88 03 00 00 48 8d 45 30 48 89 c2 48 89 04 24 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 00 13 00 00 48 8d 45 2c 44 8b RSP: 0018:ffffc900032168d8 EFLAGS: 00010006 RAX: dffffc0000000000 RBX: 0000000000000246 RCX: ffffc90003ed9000 RDX: 0000000000000006 RSI: ffffffff8799e622 RDI: ffff8880658fe388 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed100cb1fcab R10: ffff8880658fe55b R11: ffffffff90e8f2e0 R12: ffff8880658fe540 R13: ffff8880658fe000 R14: 0000000000000000 R15: ffff8880658fe1a0 FS: 00007fc135da86c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3013d000 CR3: 000000002ac67000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rxe_qp_do_cleanup+0x1c1/0x820 drivers/infiniband/sw/rxe/rxe_qp.c:778 execute_in_process_context+0x3a/0x150 kernel/workqueue.c:3673 __rxe_cleanup+0x273/0x3c0 drivers/infiniband/sw/rxe/rxe_pool.c:233 rxe_create_qp+0x3f3/0x5f0 drivers/infiniband/sw/rxe/rxe_verbs.c:583 create_qp+0x5ac/0x970 drivers/infiniband/core/verbs.c:1235 ib_create_qp_kernel+0x9f/0x310 drivers/infiniband/core/verbs.c:1346 ib_create_qp include/rdma/ib_verbs.h:3743 [inline] create_mad_qp+0x189/0x380 drivers/infiniband/core/mad.c:2905 ib_mad_port_open drivers/infiniband/core/mad.c:2986 [inline] ib_mad_init_device+0xb35/0x1e90 drivers/infiniband/core/mad.c:3077 add_client_context+0x3d9/0x580 drivers/infiniband/core/device.c:721 enable_device_and_get+0x1d2/0x3e0 drivers/infiniband/core/device.c:1332 ib_register_device drivers/infiniband/core/device.c:1420 [inline] ib_register_device+0x86e/0xbd0 drivers/infiniband/core/device.c:1366 rxe_register_device+0x2f8/0x3d0 drivers/infiniband/sw/rxe/rxe_verbs.c:1525 rxe_net_add+0x88/0xe0 drivers/infiniband/sw/rxe/rxe_net.c:534 rxe_newlink+0x7b/0x190 drivers/infiniband/sw/rxe/rxe.c:197 nldev_newlink+0x380/0x630 drivers/infiniband/core/nldev.c:1731 rdma_nl_rcv_msg+0x374/0x690 drivers/infiniband/core/netlink.c:195 rdma_nl_rcv_skb.constprop.0.isra.0+0x2e6/0x450 drivers/infiniband/core/netlink.c:239 netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline] netlink_unicast+0x536/0x810 net/netlink/af_netlink.c:1368 netlink_sendmsg+0x93c/0xe40 net/netlink/af_netlink.c:1910 sock_sendmsg_nosec net/socket.c:728 [inline] sock_sendmsg+0xd9/0x180 net/socket.c:751 ____sys_sendmsg+0x6ac/0x940 net/socket.c:2538 ___sys_sendmsg+0x135/0x1d0 net/socket.c:2592 __sys_sendmsg+0x117/0x1e0 net/socket.c:2621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc13507cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc135da80c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc13519bf80 RCX: 00007fc13507cae9 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00007fc1350c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc13519bf80 R15: 00007fff2b4a0648 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:flush_send_queue drivers/infiniband/sw/rxe/rxe_comp.c:600 [inline] RIP: 0010:rxe_completer+0x2884/0x4040 drivers/infiniband/sw/rxe/rxe_comp.c:659 Code: 80 3c 02 00 0f 85 26 13 00 00 49 8b ad 88 03 00 00 48 8d 45 30 48 89 c2 48 89 04 24 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 00 13 00 00 48 8d 45 2c 44 8b RSP: 0018:ffffc900032168d8 EFLAGS: 00010006 RAX: dffffc0000000000 RBX: 0000000000000246 RCX: ffffc90003ed9000 RDX: 0000000000000006 RSI: ffffffff8799e622 RDI: ffff8880658fe388 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed100cb1fcab R10: ffff8880658fe55b R11: ffffffff90e8f2e0 R12: ffff8880658fe540 R13: ffff8880658fe000 R14: 0000000000000000 R15: ffff8880658fe1a0 FS: 00007fc135da86c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b3013d000 CR3: 000000002ac67000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 4: 0f 85 26 13 00 00 jne 0x1330 a: 49 8b ad 88 03 00 00 mov 0x388(%r13),%rbp 11: 48 8d 45 30 lea 0x30(%rbp),%rax 15: 48 89 c2 mov %rax,%rdx 18: 48 89 04 24 mov %rax,(%rsp) 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e 00 13 00 00 jle 0x133a 3a: 48 8d 45 2c lea 0x2c(%rbp),%rax 3e: 44 rex.R 3f: 8b .byte 0x8b