BUG: kernel NULL pointer dereference, address: 0000000000000d50 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 7cc10067 P4D 7cc10067 PUD 74b93067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5448 Comm: syz-executor.5 Not tainted 6.3.0-rc3-next-20230320-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:memset_erms+0xd/0x20 arch/x86/lib/memset_64.S:66 Code: 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 66 0f 1f 00 49 89 f9 40 88 f0 48 89 d1 aa 4c 89 c8 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 66 0f 1f RSP: 0018:ffffc900057a7730 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88801ce1a000 RCX: 0000000000000020 RDX: 0000000000000020 RSI: 0000000000000000 RDI: 0000000000000d50 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000d50 R10: ffffed10039c341c R11: 0000000000094001 R12: 0000000000000d70 R13: 0000000000000d50 R14: 0000000000000f90 R15: 0000000000000100 FS: 00007f8afb393700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000d50 CR3: 000000001e68d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __finalize_skb_around net/core/skbuff.c:321 [inline] __build_skb_around+0x232/0x3a0 net/core/skbuff.c:379 build_skb_around+0x32/0x290 net/core/skbuff.c:443 __xdp_build_skb_from_frame+0x121/0x760 net/core/xdp.c:622 xdp_recv_frames net/bpf/test_run.c:255 [inline] xdp_test_run_batch net/bpf/test_run.c:341 [inline] bpf_test_run_xdp_live+0x1289/0x1930 net/bpf/test_run.c:369 bpf_prog_test_run_xdp+0xa05/0x14e0 net/bpf/test_run.c:1430 bpf_prog_test_run kernel/bpf/syscall.c:3681 [inline] __sys_bpf+0x1598/0x5100 kernel/bpf/syscall.c:5034 __do_sys_bpf kernel/bpf/syscall.c:5120 [inline] __se_sys_bpf kernel/bpf/syscall.c:5118 [inline] __x64_sys_bpf+0x79/0xc0 kernel/bpf/syscall.c:5118 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f8afa68c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8afb393168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f8afa7abf80 RCX: 00007f8afa68c0f9 RDX: 0000000000000048 RSI: 0000000020000080 RDI: 000000000000000a RBP: 00007f8afa6e7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd756522cf R14: 00007f8afb393300 R15: 0000000000022000 Modules linked in: CR2: 0000000000000d50 ---[ end trace 0000000000000000 ]--- RIP: 0010:memset_erms+0xd/0x20 arch/x86/lib/memset_64.S:66 Code: 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 66 0f 1f 00 49 89 f9 40 88 f0 48 89 d1 aa 4c 89 c8 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 66 0f 1f RSP: 0018:ffffc900057a7730 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88801ce1a000 RCX: 0000000000000020 RDX: 0000000000000020 RSI: 0000000000000000 RDI: 0000000000000d50 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000d50 R10: ffffed10039c341c R11: 0000000000094001 R12: 0000000000000d70 R13: 0000000000000d50 R14: 0000000000000f90 R15: 0000000000000100 FS: 00007f8afb393700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000d50 CR3: 000000001e68d000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 0f af c6 imul %rsi,%rax 4: f3 48 ab rep stos %rax,%es:(%rdi) 7: 89 d1 mov %edx,%ecx 9: f3 aa rep stos %al,%es:(%rdi) b: 4c 89 c8 mov %r9,%rax e: c3 retq f: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 16: 00 00 00 00 1a: 66 90 xchg %ax,%ax 1c: 66 0f 1f 00 nopw (%rax) 20: 49 89 f9 mov %rdi,%r9 23: 40 88 f0 mov %sil,%al 26: 48 89 d1 mov %rdx,%rcx * 29: f3 aa rep stos %al,%es:(%rdi) <-- trapping instruction 2b: 4c 89 c8 mov %r9,%rax 2e: c3 retq 2f: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 36: 00 00 00 00 3a: 66 90 xchg %ax,%ax 3c: 66 data16 3d: 0f .byte 0xf 3e: 1f (bad)