sd 0:0:1:0: [sg0] tag#2516 CDB[a0]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 sd 0:0:1:0: [sg0] tag#2516 CDB[b0]: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 sd 0:0:1:0: [sg0] tag#2516 CDB[c0]: 00 00 00 00 00 00 00 00 ===================================================== BUG: KMSAN: uninit-value in ____bpf_skb_load_helper_8 net/core/filter.c:184 [inline] BUG: KMSAN: uninit-value in bpf_skb_load_helper_8+0xe0/0x290 net/core/filter.c:178 CPU: 1 PID: 11951 Comm: syz-executor.5 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_load_helper_8 net/core/filter.c:184 [inline] bpf_skb_load_helper_8+0xe0/0x290 net/core/filter.c:178 ___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_slab_alloc+0xb4/0xe0 mm/kmsan/kmsan_hooks.c:83 Code: eb 0a ba 01 00 00 00 e8 1a ed ff ff be ff ff ff ff 65 0f c1 35 ad d6 35 53 ff ce 75 1c e8 84 01 31 ff 4c 89 65 d8 ff 75 d8 9d <48> 83 c4 10 5b 41 5c 41 5e 41 5f 5d c3 0f 0b 48 c7 c7 31 3a 29 ba RSP: 0018:ffffa76d164c3710 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: acbf6c225d2d1b00 RBX: ffff9ab0e6c1b030 RCX: 0000000000000005 RDX: 0000000000000004 RSI: 0000000000000000 RDI: ffff9ab0e6c1b030 RBP: ffffa76d164c3740 R08: ffffdffdc000000f R09: ffff9ab0efffb000 R10: 0000000000000010 R11: ffffffffb980083d R12: 0000000000000246 R13: ffff9ab0ef403a40 R14: 0000000000000cc0 R15: ffff9ab0ef403a40 slab_alloc_node mm/slub.c:2802 [inline] __kmalloc_node+0xb39/0x11f0 mm/slub.c:3918 kmalloc_node include/linux/slab.h:578 [inline] kvmalloc_node+0x19a/0x3c0 mm/util.c:574 xt_jumpstack_alloc net/netfilter/x_tables.c:1323 [inline] xt_replace_table+0x348/0xb70 net/netfilter/x_tables.c:1362 __do_replace+0x2cc/0xfd0 net/ipv6/netfilter/ip6_tables.c:1084 do_replace net/ipv6/netfilter/ip6_tables.c:1157 [inline] do_ip6t_set_ctl+0x76c/0x9e0 net/ipv6/netfilter/ip6_tables.c:1681 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x47c/0x4e0 net/netfilter/nf_sockopt.c:115 ipv6_setsockopt+0x1db/0x340 net/ipv6/ipv6_sockglue.c:954 tcp_setsockopt+0x1c0/0x1f0 net/ipv4/tcp.c:3167 sock_common_setsockopt+0x13b/0x170 net/core/sock.c:3172 __sys_setsockopt+0x7c3/0xa30 net/socket.c:2132 __do_sys_setsockopt net/socket.c:2148 [inline] __se_sys_setsockopt+0xdd/0x100 net/socket.c:2145 __x64_sys_setsockopt+0x62/0x80 net/socket.c:2145 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45f55a Code: 49 89 ca b8 37 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ca 8b fb ff c3 66 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 aa 8b fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:0000000000c9f618 EFLAGS: 00000206 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000c9f640 RCX: 000000000045f55a RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000003 RBP: 000000000073fca0 R08: 0000000000000558 R09: 0000000000004000 R10: 000000000073e8c0 R11: 0000000000000206 R12: 0000000000000003 R13: 0000000000000000 R14: 0000000000000029 R15: 000000000073e860 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+0x6c80/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+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 =====================================================