===================================================== BUG: KMSAN: uninit-value in ____bpf_skb_get_nlattr_nest net/core/filter.c:164 [inline] BUG: KMSAN: uninit-value in bpf_skb_get_nlattr_nest+0x14c/0x2f0 net/core/filter.c:154 CPU: 1 PID: 5237 Comm: systemd-udevd Not tainted 5.7.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x220 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 ____bpf_skb_get_nlattr_nest net/core/filter.c:164 [inline] bpf_skb_get_nlattr_nest+0x14c/0x2f0 net/core/filter.c:154 ___bpf_prog_run+0x214d/0x97a0 kernel/bpf/core.c:1516 __bpf_prog_run32+0x101/0x170 kernel/bpf/core.c:1681 bpf_dispatcher_nop_func include/linux/bpf.h:545 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:599 [inline] bpf_prog_run_clear_cb include/linux/filter.h:721 [inline] run_filter net/packet/af_packet.c:2012 [inline] packet_rcv+0x70f/0x2160 net/packet/af_packet.c:2085 dev_queue_xmit_nit+0x1199/0x1270 net/core/dev.c:2276 xmit_one net/core/dev.c:3473 [inline] dev_hard_start_xmit+0x20f/0xab0 net/core/dev.c:3493 __dev_queue_xmit+0x2f8d/0x3b20 net/core/dev.c:4052 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4085 hsr_xmit net/hsr/hsr_forward.c:228 [inline] hsr_forward_do net/hsr/hsr_forward.c:285 [inline] hsr_forward_skb+0x2614/0x30d0 net/hsr/hsr_forward.c:361 send_hsr_supervision_frame+0x10a7/0x1500 net/hsr/hsr_device.c:304 hsr_announce+0x1e2/0x370 net/hsr/hsr_device.c:332 call_timer_fn+0x218/0x510 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers+0xcff/0x1210 kernel/time/timer.c:1774 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1787 __do_softirq+0x311/0x83d kernel/softirq.c:293 invoke_softirq kernel/softirq.c:375 [inline] irq_exit+0x230/0x280 kernel/softirq.c:416 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:546 smp_apic_timer_interrupt+0x48/0x70 arch/x86/kernel/apic/apic.c:1143 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:834 RIP: 0010:kmsan_get_metadata+0x21/0x180 mm/kmsan/kmsan_shadow.c:186 Code: 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 53 41 89 d6 48 89 fb 48 83 e3 fc 85 d2 48 0f 44 df 40 f6 c7 03 48 0f 44 df <48> 89 df e8 37 e2 ff ff 84 c0 75 0c 48 89 df e8 5b e2 ff ff 84 c0 RSP: 0018:ffffa98080d8f9a0 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000001 RBX: ffffa98080d51051 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffa98080d51051 RBP: ffffa98080d8f9b8 R08: fffff8598000000f R09: ffff8884afffb000 R10: 0000000000000003 R11: ffffffffac40083d R12: ffffa98080d51050 R13: 000000000000006f R14: 0000000000000000 R15: 0000000000000000 kmsan_get_shadow_origin_ptr+0x6c/0xb0 mm/kmsan/kmsan_shadow.c:149 __msan_metadata_ptr_for_load_1+0x10/0x20 mm/kmsan/kmsan_instr.c:52 ___bpf_prog_run+0x4111/0x97a0 kernel/bpf/core.c:1611 __bpf_prog_run32+0x101/0x170 kernel/bpf/core.c:1681 bpf_dispatcher_nop_func include/linux/bpf.h:545 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:599 [inline] seccomp_run_filters kernel/seccomp.c:272 [inline] __seccomp_filter+0x59e/0x26f0 kernel/seccomp.c:817 __secure_computing+0x1fa/0x380 kernel/seccomp.c:950 syscall_trace_enter+0x6eb/0xf60 arch/x86/entry/common.c:119 do_syscall_64+0x57/0x160 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fab7b897f2b Code: fc ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 57 41 56 48 63 ff 41 55 41 54 b8 4e 00 00 00 55 53 48 89 f3 48 83 ec 08 0f 05 <48> 3d 00 f0 ff ff 77 55 48 8d 2c 06 49 89 c4 48 39 ee 73 34 90 44 RSP: 002b:00007ffe2143fa40 EFLAGS: 00000202 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 0000560eb0657630 RCX: 00007fab7b897f2b RDX: 0000000000008000 RSI: 0000560eb0657630 RDI: 0000000000000011 RBP: 0000560eb0657630 R08: 00007fab7bb7e2e8 R09: 0000000000008040 R10: 00007fab7bb7db58 R11: 0000000000000202 R12: fffffffffffffe50 R13: 0000000000000000 R14: 00000000000000fd R15: 0000560eb061ece0 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165 ___bpf_prog_run+0x6cbe/0x97a0 kernel/bpf/core.c:1391 __bpf_prog_run32+0x101/0x170 kernel/bpf/core.c:1681 bpf_dispatcher_nop_func include/linux/bpf.h:545 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:599 [inline] bpf_prog_run_clear_cb include/linux/filter.h:721 [inline] run_filter net/packet/af_packet.c:2012 [inline] packet_rcv+0x70f/0x2160 net/packet/af_packet.c:2085 dev_queue_xmit_nit+0x1199/0x1270 net/core/dev.c:2276 xmit_one net/core/dev.c:3473 [inline] dev_hard_start_xmit+0x20f/0xab0 net/core/dev.c:3493 __dev_queue_xmit+0x2f8d/0x3b20 net/core/dev.c:4052 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4085 hsr_xmit net/hsr/hsr_forward.c:228 [inline] hsr_forward_do net/hsr/hsr_forward.c:285 [inline] hsr_forward_skb+0x2614/0x30d0 net/hsr/hsr_forward.c:361 send_hsr_supervision_frame+0x10a7/0x1500 net/hsr/hsr_device.c:304 hsr_announce+0x1e2/0x370 net/hsr/hsr_device.c:332 call_timer_fn+0x218/0x510 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers+0xcff/0x1210 kernel/time/timer.c:1774 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1787 __do_softirq+0x311/0x83d kernel/softirq.c:293 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165 ___bpf_prog_run+0x6c64/0x97a0 kernel/bpf/core.c:1391 __bpf_prog_run32+0x101/0x170 kernel/bpf/core.c:1681 bpf_dispatcher_nop_func include/linux/bpf.h:545 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:599 [inline] bpf_prog_run_clear_cb include/linux/filter.h:721 [inline] run_filter net/packet/af_packet.c:2012 [inline] packet_rcv+0x70f/0x2160 net/packet/af_packet.c:2085 dev_queue_xmit_nit+0x1199/0x1270 net/core/dev.c:2276 xmit_one net/core/dev.c:3473 [inline] dev_hard_start_xmit+0x20f/0xab0 net/core/dev.c:3493 __dev_queue_xmit+0x2f8d/0x3b20 net/core/dev.c:4052 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4085 hsr_xmit net/hsr/hsr_forward.c:228 [inline] hsr_forward_do net/hsr/hsr_forward.c:285 [inline] hsr_forward_skb+0x2614/0x30d0 net/hsr/hsr_forward.c:361 send_hsr_supervision_frame+0x10a7/0x1500 net/hsr/hsr_device.c:304 hsr_announce+0x1e2/0x370 net/hsr/hsr_device.c:332 call_timer_fn+0x218/0x510 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers+0xcff/0x1210 kernel/time/timer.c:1774 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1787 __do_softirq+0x311/0x83d kernel/softirq.c:293 Local variable ----regs@__bpf_prog_run32 created at: __bpf_prog_run32+0x87/0x170 kernel/bpf/core.c:1681 __bpf_prog_run32+0x87/0x170 kernel/bpf/core.c:1681 =====================================================