BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 0 P4D 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 1384 Comm: syz-executor.2 Not tainted 5.4.274-syzkaller-00002-g6f97bd951d82 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010206 RAX: ffffffff8154d7aa RBX: 0000000000000100 RCX: ffff8881e63d3f00 RDX: 0000000080000100 RSI: 0000000000000000 RDI: ffff8881e4ec31c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffffaa18 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e4ec31c0 FS: 0000555555c30480(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001dfe54000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: call_timer_fn+0x36/0x390 kernel/time/timer.c:1448 expire_timers kernel/time/timer.c:1493 [inline] __run_timers+0x879/0xbe0 kernel/time/timer.c:1817 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1830 __do_softirq+0x23b/0x6b7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x195/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:538 [inline] smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834 RIP: 0010:unwind_done arch/x86/include/asm/unwind.h:46 [inline] RIP: 0010:unwind_get_return_address+0x1e/0x80 arch/x86/kernel/unwind_orc.c:310 Code: e9 e1 fe ff ff e8 42 34 0b 00 66 90 41 57 41 56 53 48 89 fb 49 be 00 00 00 00 00 fc ff df 48 89 f8 48 c1 e8 03 42 0f b6 04 30 <84> c0 75 47 83 3b 00 74 3a 48 83 c3 48 49 89 df 49 c1 ef 03 43 80 RSP: 0018:ffff8881dfe5e3e0 EFLAGS: 00000a02 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff8881dfe5e400 RCX: 0438d2aadfe4d000 RDX: ffff8881dfe5e440 RSI: ffff8881dfe5e080 RDI: ffff8881dfe5e400 RBP: ffff8881dfe5e490 R08: dffffc0000000000 R09: ffff8881dfe5e450 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881e63d3f00 R13: ffffffff8153b310 R14: dffffc0000000000 R15: 0000000000000000 arch_stack_walk+0xf5/0x140 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x118/0x1c0 kernel/stacktrace.c:123 save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x171/0x210 mm/kasan/common.c:529 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2829 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0xd9/0x250 mm/slub.c:2842 kmem_cache_zalloc include/linux/slab.h:680 [inline] __kernfs_new_node+0xdb/0x6e0 fs/kernfs/dir.c:639 kernfs_new_node+0x130/0x230 fs/kernfs/dir.c:717 __kernfs_create_file+0x45/0x260 fs/kernfs/file.c:1001 sysfs_add_file_mode_ns+0x292/0x340 fs/sysfs/file.c:306 create_files fs/sysfs/group.c:63 [inline] internal_create_group+0x573/0xf00 fs/sysfs/group.c:148 internal_create_groups fs/sysfs/group.c:188 [inline] sysfs_create_groups+0x52/0x110 fs/sysfs/group.c:214 device_add_groups drivers/base/core.c:2004 [inline] device_add_attrs+0x87/0x370 drivers/base/core.c:2152 device_add+0x4f4/0xbb0 drivers/base/core.c:2859 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:1854 register_netdevice+0xbc5/0x12a0 net/core/dev.c:9190 veth_newlink+0x835/0xb50 drivers/net/veth.c:1329 __rtnl_newlink net/core/rtnetlink.c:3255 [inline] rtnl_newlink+0x1567/0x2060 net/core/rtnetlink.c:3314 rtnetlink_rcv_msg+0x983/0xc70 net/core/rtnetlink.c:5290 netlink_rcv_skb+0x1d5/0x420 net/netlink/af_netlink.c:2481 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x936/0xb20 net/netlink/af_netlink.c:1347 netlink_sendmsg+0xa18/0xcf0 net/netlink/af_netlink.c:1915 sock_sendmsg_nosec net/socket.c:638 [inline] __sock_sendmsg net/socket.c:650 [inline] __sys_sendto+0x4f3/0x6c0 net/socket.c:1961 __do_sys_sendto net/socket.c:1973 [inline] __se_sys_sendto net/socket.c:1969 [inline] __x64_sys_sendto+0xda/0xf0 net/socket.c:1969 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 RIP: 0033:0x7f5110a31bc3 Code: 64 89 02 48 c7 c0 ff ff ff ff eb b7 66 2e 0f 1f 84 00 00 00 00 00 90 80 3d 41 93 10 00 00 41 89 ca 74 14 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 75 c3 0f 1f 40 00 55 48 83 ec 30 44 89 4c 24 RSP: 002b:00007ffe1b157938 EFLAGS: 00000202 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f5111697620 RCX: 00007f5110a31bc3 RDX: 0000000000000064 RSI: 00007f5111697670 RDI: 0000000000000003 RBP: 0000000000000001 R08: 00007ffe1b157954 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000003 R13: 0000000000000000 R14: 00007f5111697670 R15: 0000000000000000 Modules linked in: CR2: 0000000000000000 ---[ end trace effa615626f7d0db ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0018:ffff8881f6e09d18 EFLAGS: 00010206 RAX: ffffffff8154d7aa RBX: 0000000000000100 RCX: ffff8881e63d3f00 RDX: 0000000080000100 RSI: 0000000000000000 RDI: ffff8881e4ec31c0 RBP: ffff8881f6e09ec8 R08: ffffffff8154d3ee R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000ffffaa18 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881e4ec31c0 FS: 0000555555c30480(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001dfe54000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: e9 e1 fe ff ff jmp 0xfffffee6 5: e8 42 34 0b 00 call 0xb344c a: 66 90 xchg %ax,%ax c: 41 57 push %r15 e: 41 56 push %r14 10: 53 push %rbx 11: 48 89 fb mov %rdi,%rbx 14: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 1b: fc ff df 1e: 48 89 f8 mov %rdi,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax * 2a: 84 c0 test %al,%al <-- trapping instruction 2c: 75 47 jne 0x75 2e: 83 3b 00 cmpl $0x0,(%rbx) 31: 74 3a je 0x6d 33: 48 83 c3 48 add $0x48,%rbx 37: 49 89 df mov %rbx,%r15 3a: 49 c1 ef 03 shr $0x3,%r15 3e: 43 rex.XB 3f: 80 .byte 0x80