===================================================== BUG: KMSAN: uninit-value in __skb_dst_copy include/net/dst.h:279 [inline] BUG: KMSAN: uninit-value in skb_dst_copy include/net/dst.h:285 [inline] BUG: KMSAN: uninit-value in __copy_skb_header+0x2bf/0x720 net/core/skbuff.c:935 CPU: 0 PID: 11432 Comm: syz-executor.0 Not tainted 5.4.0-rc8-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+0x128/0x220 mm/kmsan/kmsan_report.c:108 __msan_warning+0x64/0xc0 mm/kmsan/kmsan_instr.c:245 __skb_dst_copy include/net/dst.h:279 [inline] skb_dst_copy include/net/dst.h:285 [inline] __copy_skb_header+0x2bf/0x720 net/core/skbuff.c:935 __skb_clone+0xa2/0x970 net/core/skbuff.c:987 skb_clone+0x402/0x5d0 net/core/skbuff.c:1455 frame_get_tagged_skb net/hsr/hsr_forward.c:187 [inline] hsr_forward_do net/hsr/hsr_forward.c:273 [inline] hsr_forward_skb+0x1752/0x3070 net/hsr/hsr_forward.c:361 send_hsr_supervision_frame+0x10a6/0x14f0 net/hsr/hsr_device.c:306 hsr_announce+0x1eb/0x370 net/hsr/hsr_device.c:334 call_timer_fn+0x232/0x530 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers+0xd60/0x1270 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x4a1/0x83a 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:536 smp_apic_timer_interrupt+0x48/0x70 arch/x86/kernel/apic/apic.c:1138 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:835 RIP: 0010:kmsan_slab_free+0x99/0xe0 mm/kmsan/kmsan_hooks.c:111 Code: 00 b9 03 00 00 00 e8 d6 e5 ff ff 65 ff 0d 13 ff 9b 79 65 8b 05 0c ff 9b 79 85 c0 75 2e e8 0f c7 36 ff 4c 89 7d d0 ff 75 d0 9d <65> 48 8b 04 25 28 00 00 00 48 3b 45 e0 75 0b 48 83 c4 18 5b 41 5e RSP: 0018:ffffa868434ff770 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: ffff8d60ef8076c0 RCX: 0000000000000011 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffff8d60c727cc40 RBP: ffffa868434ff7a0 R08: 0000000000000003 R09: ffffa868434ff58c R10: 000000000000000f R11: ffffffff85e4d9b0 R12: 0000000000000000 R13: ffff8d60c727cc40 R14: ffff8d60c727cc40 R15: 0000000000000246 slab_free_freelist_hook mm/slub.c:1457 [inline] slab_free mm/slub.c:3020 [inline] kfree+0x7d0/0x2f10 mm/slub.c:3973 __vunmap+0xedb/0xf20 mm/vmalloc.c:2283 __vfree mm/vmalloc.c:2324 [inline] vfree+0x7c/0x170 mm/vmalloc.c:2354 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:867 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline] do_ipt_get_ctl+0xf7e/0x1010 net/ipv4/netfilter/ip_tables.c:1700 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x481/0x4e0 net/netfilter/nf_sockopt.c:122 ip_getsockopt+0x29a/0x460 net/ipv4/ip_sockglue.c:1576 tcp_getsockopt+0x1c6/0x1f0 net/ipv4/tcp.c:3688 sock_common_getsockopt+0x13f/0x180 net/core/sock.c:3110 __sys_getsockopt+0x533/0x7b0 net/socket.c:2129 __do_sys_getsockopt net/socket.c:2144 [inline] __se_sys_getsockopt+0xe1/0x100 net/socket.c:2141 __x64_sys_getsockopt+0x62/0x80 net/socket.c:2141 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d14a Code: b8 34 01 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 8d 8b fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 6a 8b fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:0000000000a6f618 EFLAGS: 00000216 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000a6f640 RCX: 000000000045d14a RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000717e80 R08: 0000000000a6f63c R09: 0000000000004000 R10: 0000000000a6f740 R11: 0000000000000216 R12: 0000000000000003 R13: 0000000000000000 R14: 0000000000000000 R15: 00000000007177c0 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:149 [inline] kmsan_internal_poison_shadow+0x60/0x120 mm/kmsan/kmsan.c:132 kmsan_slab_alloc+0x97/0x100 mm/kmsan/kmsan_hooks.c:86 slab_alloc_node mm/slub.c:2773 [inline] slab_alloc mm/slub.c:2782 [inline] kmem_cache_alloc+0x8d9/0xd20 mm/slub.c:2787 skb_clone+0x326/0x5d0 net/core/skbuff.c:1448 frame_get_tagged_skb net/hsr/hsr_forward.c:187 [inline] hsr_forward_do net/hsr/hsr_forward.c:273 [inline] hsr_forward_skb+0x1752/0x3070 net/hsr/hsr_forward.c:361 send_hsr_supervision_frame+0x10a6/0x14f0 net/hsr/hsr_device.c:306 hsr_announce+0x1eb/0x370 net/hsr/hsr_device.c:334 call_timer_fn+0x232/0x530 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers+0xd60/0x1270 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x4a1/0x83a 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:536 smp_apic_timer_interrupt+0x48/0x70 arch/x86/kernel/apic/apic.c:1138 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:835 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] kmsan_slab_free+0x99/0xe0 mm/kmsan/kmsan_hooks.c:111 slab_free_freelist_hook mm/slub.c:1457 [inline] slab_free mm/slub.c:3020 [inline] kfree+0x7d0/0x2f10 mm/slub.c:3973 __vunmap+0xedb/0xf20 mm/vmalloc.c:2283 __vfree mm/vmalloc.c:2324 [inline] vfree+0x7c/0x170 mm/vmalloc.c:2354 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:867 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline] do_ipt_get_ctl+0xf7e/0x1010 net/ipv4/netfilter/ip_tables.c:1700 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x481/0x4e0 net/netfilter/nf_sockopt.c:122 ip_getsockopt+0x29a/0x460 net/ipv4/ip_sockglue.c:1576 tcp_getsockopt+0x1c6/0x1f0 net/ipv4/tcp.c:3688 sock_common_getsockopt+0x13f/0x180 net/core/sock.c:3110 __sys_getsockopt+0x533/0x7b0 net/socket.c:2129 __do_sys_getsockopt net/socket.c:2144 [inline] __se_sys_getsockopt+0xe1/0x100 net/socket.c:2141 __x64_sys_getsockopt+0x62/0x80 net/socket.c:2141 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x44/0xa9 =====================================================