===================================================== BUG: KMSAN: uninit-value in netif_receive_generic_xdp+0x15c2/0x2590 net/core/dev.c:4751 CPU: 1 PID: 5656 Comm: syz-executor.5 Tainted: G W 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:121 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 netif_receive_generic_xdp+0x15c2/0x2590 net/core/dev.c:4751 do_xdp_generic net/core/dev.c:4816 [inline] __netif_receive_skb_core+0x294a/0x65a0 net/core/dev.c:5207 __netif_receive_skb_one_core net/core/dev.c:5382 [inline] __netif_receive_skb+0xf2/0x640 net/core/dev.c:5498 process_backlog+0x517/0xbd0 net/core/dev.c:6365 __napi_poll+0x13e/0xca0 net/core/dev.c:6912 napi_poll net/core/dev.c:6979 [inline] net_rx_action+0x726/0x14a0 net/core/dev.c:7065 __do_softirq+0x1b9/0x715 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0x22f/0x280 kernel/softirq.c:422 irq_exit_rcu+0xe/0x10 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0xc6/0xf0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:650 RIP: 0010:memcpy_erms+0x8/0x10 arch/x86/lib/memcpy_64.S:56 Code: cc cc eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35 RSP: 0018:ffff8881a2d9b1c8 EFLAGS: 00000246 RAX: ffff888015691328 RBX: 0000000000000030 RCX: 0000000000000000 RDX: 0000000000000030 RSI: ffff888015691958 RDI: ffff888015691358 RBP: ffff8881a2d9b1f0 R08: ffffea000000000f R09: ffff88813fffa000 R10: 0000000001e3fb03 R11: ffffffff8fc00715 R12: 0000000000000000 R13: 0000000000000000 R14: ffff888015691928 R15: ffff888015691328 __copy_skb_header+0x13a/0x8b0 net/core/skbuff.c:985 __skb_clone+0xa2/0x9b0 net/core/skbuff.c:1038 skb_clone+0x435/0x650 net/core/skbuff.c:1503 ____bpf_clone_redirect net/core/filter.c:2433 [inline] bpf_clone_redirect+0x188/0x660 net/core/filter.c:2420 ___bpf_prog_run+0x2b78/0xb950 kernel/bpf/core.c:1525 __bpf_prog_run512+0x12e/0x190 kernel/bpf/core.c:1750 bpf_test_run+0x53f/0xe60 include/linux/filter.h:770 bpf_prog_test_run_skb+0x1914/0x3500 net/bpf/test_run.c:582 bpf_prog_test_run kernel/bpf/syscall.c:3132 [inline] __do_sys_bpf+0xbe6f/0x1aba0 kernel/bpf/syscall.c:4411 __se_sys_bpf+0x8e/0xa0 kernel/bpf/syscall.c:4351 __ia32_sys_bpf+0x4a/0x70 kernel/bpf/syscall.c:4351 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:168 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:211 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f58549 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:00000000f55525fc EFLAGS: 00000296 ORIG_RAX: 0000000000000165 RAX: ffffffffffffffda RBX: 000000000000000a RCX: 0000000020000040 RDX: 0000000000000048 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline] kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:103 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] __kmalloc_node_track_caller+0xa4f/0x1470 mm/slub.c:4609 kmalloc_reserve net/core/skbuff.c:353 [inline] pskb_expand_head+0x25e/0x1e20 net/core/skbuff.c:1676 netif_receive_generic_xdp+0x61c/0x2590 net/core/dev.c:4699 do_xdp_generic net/core/dev.c:4816 [inline] __netif_receive_skb_core+0x294a/0x65a0 net/core/dev.c:5207 __netif_receive_skb_one_core net/core/dev.c:5382 [inline] __netif_receive_skb+0xf2/0x640 net/core/dev.c:5498 process_backlog+0x517/0xbd0 net/core/dev.c:6365 __napi_poll+0x13e/0xca0 net/core/dev.c:6912 napi_poll net/core/dev.c:6979 [inline] net_rx_action+0x726/0x14a0 net/core/dev.c:7065 __do_softirq+0x1b9/0x715 kernel/softirq.c:345 =====================================================