general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057] CPU: 0 PID: 5925 Comm: syz-executor.2 Not tainted 5.17.0-rc7-syzkaller-00020-gea4424be1688 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:dev_name include/linux/device.h:636 [inline] RIP: 0010:smc_pnet_find_ib net/smc/smc_pnet.c:314 [inline] RIP: 0010:smc_pnet_add_ib net/smc/smc_pnet.c:416 [inline] RIP: 0010:smc_pnet_enter net/smc/smc_pnet.c:515 [inline] RIP: 0010:smc_pnet_add+0xbfc/0x1740 net/smc/smc_pnet.c:558 Code: 8d be 58 07 00 00 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 53 09 00 00 4d 8b a6 58 07 00 00 49 8d 7c 24 50 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 2c 09 00 00 4d 8b 74 24 50 4d 85 f6 0f 85 21 ff RSP: 0018:ffffc9000f9f7520 EFLAGS: 00010206 RAX: 000000000000000a RBX: ffff88806acff000 RCX: ffffc900030ec000 RDX: 0000000000040000 RSI: ffffffff88c76661 RDI: 0000000000000050 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffc9000f9f745f R10: ffffffff88c76653 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888016b7242c R14: ffff88801779c000 R15: ffff88806acff010 FS: 0000000000000000(0000) GS:ffff88802ca00000(0063) knlGS:00000000f593ab40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000032a23000 CR3: 000000001aa9b000 CR4: 0000000000150ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:731 genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:792 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2494 genl_rcv+0x24/0x40 net/netlink/genetlink.c:803 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:725 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2413 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2496 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf6f40549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f593a5cc EFLAGS: 00000296 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000280 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dev_name include/linux/device.h:636 [inline] RIP: 0010:smc_pnet_find_ib net/smc/smc_pnet.c:314 [inline] RIP: 0010:smc_pnet_add_ib net/smc/smc_pnet.c:416 [inline] RIP: 0010:smc_pnet_enter net/smc/smc_pnet.c:515 [inline] RIP: 0010:smc_pnet_add+0xbfc/0x1740 net/smc/smc_pnet.c:558 Code: 8d be 58 07 00 00 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 53 09 00 00 4d 8b a6 58 07 00 00 49 8d 7c 24 50 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 2c 09 00 00 4d 8b 74 24 50 4d 85 f6 0f 85 21 ff RSP: 0018:ffffc9000f9f7520 EFLAGS: 00010206 RAX: 000000000000000a RBX: ffff88806acff000 RCX: ffffc900030ec000 RDX: 0000000000040000 RSI: ffffffff88c76661 RDI: 0000000000000050 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffc9000f9f745f R10: ffffffff88c76653 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888016b7242c R14: ffff88801779c000 R15: ffff88806acff010 FS: 0000000000000000(0000) GS:ffff88802cd00000(0063) knlGS:00000000f593ab40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000ffae2f18 CR3: 000000001aa9b000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8d be 58 07 00 00 lea 0x758(%rsi),%edi 6: 48 89 f8 mov %rdi,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) 11: 0f 85 53 09 00 00 jne 0x96a 17: 4d 8b a6 58 07 00 00 mov 0x758(%r14),%r12 1e: 49 8d 7c 24 50 lea 0x50(%r12),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) <-- trapping instruction 2e: 0f 85 2c 09 00 00 jne 0x960 34: 4d 8b 74 24 50 mov 0x50(%r12),%r14 39: 4d 85 f6 test %r14,%r14 3c: 0f .byte 0xf 3d: 85 21 test %esp,(%rcx) 3f: ff .byte 0xff