Oops: general protection fault, probably for non-canonical address 0xdffffc000000004b: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000258-0x000000000000025f] CPU: 0 UID: 0 PID: 6200 Comm: syz.0.78 Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:dev_prep_valid_name+0x3e3/0xa40 net/core/dev.c:1165 Code: 20 08 00 00 e8 ae fa 2b fb 48 85 c0 0f 84 8f 04 00 00 48 89 44 24 38 48 8b 5c 24 30 48 81 c3 68 02 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 7e 52 6f f8 48 8b 03 48 89 5c 24 RSP: 0018:ffffc90003666940 EFLAGS: 00010207 RAX: 000000000000004b RBX: 000000000000025f RCX: 0000000000002000 RDX: 0000000000001000 RSI: ffffffff8c5f63c0 RDI: ffffffff8c5f6380 RBP: ffffc90003666a50 R08: 0000000000000920 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff2857112 R12: dffffc0000000000 R13: 1ffff920006ccd38 R14: ffff88805c530127 R15: 1ffff920006ccd34 FS: 0000000000000000(0000) GS:ffff8880b8600000(0063) knlGS:00000000f50d6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000556cb4d44f18 CR3: 0000000031430000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dev_get_valid_name net/core/dev.c:1199 [inline] register_netdevice+0x542/0x1b00 net/core/dev.c:10509 vxcan_newlink+0x314/0x5c0 drivers/net/can/vxcan.c:217 rtnl_newlink_create+0x2df/0xa30 net/core/rtnetlink.c:3780 __rtnl_newlink net/core/rtnetlink.c:3897 [inline] rtnl_newlink+0x17dd/0x24f0 net/core/rtnetlink.c:4007 rtnetlink_rcv_msg+0x791/0xcf0 net/core/rtnetlink.c:6917 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2542 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:726 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x269/0x350 net/socket.c:2669 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x110 arch/x86/entry/common.c:386 do_fast_syscall_32+0x34/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf73ed579 Code: 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 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f50d657c EFLAGS: 00000206 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000040 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dev_prep_valid_name+0x3e3/0xa40 net/core/dev.c:1165 Code: 20 08 00 00 e8 ae fa 2b fb 48 85 c0 0f 84 8f 04 00 00 48 89 44 24 38 48 8b 5c 24 30 48 81 c3 68 02 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 7e 52 6f f8 48 8b 03 48 89 5c 24 RSP: 0018:ffffc90003666940 EFLAGS: 00010207 RAX: 000000000000004b RBX: 000000000000025f RCX: 0000000000002000 RDX: 0000000000001000 RSI: ffffffff8c5f63c0 RDI: ffffffff8c5f6380 RBP: ffffc90003666a50 R08: 0000000000000920 R09: 00000000ffffffff R10: dffffc0000000000 R11: fffffbfff2857112 R12: dffffc0000000000 R13: 1ffff920006ccd38 R14: ffff88805c530127 R15: 1ffff920006ccd34 FS: 0000000000000000(0000) GS:ffff8880b8700000(0063) knlGS:00000000f50d6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7472994 CR3: 0000000031430000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 20 08 and %cl,(%rax) 2: 00 00 add %al,(%rax) 4: e8 ae fa 2b fb call 0xfb2bfab7 9: 48 85 c0 test %rax,%rax c: 0f 84 8f 04 00 00 je 0x4a1 12: 48 89 44 24 38 mov %rax,0x38(%rsp) 17: 48 8b 5c 24 30 mov 0x30(%rsp),%rbx 1c: 48 81 c3 68 02 00 00 add $0x268,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 7e 52 6f f8 call 0xf86f52b7 39: 48 8b 03 mov (%rbx),%rax 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 5c pop %rsp 3f: 24 .byte 0x24