===================================================== BUG: KMSAN: uninit-value in batadv_interface_tx+0x10cf/0x2450 net/batman-adv/soft-interface.c:264 CPU: 1 PID: 5333 Comm: udevd Not tainted 5.6.0-rc7-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:118 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 batadv_interface_tx+0x10cf/0x2450 net/batman-adv/soft-interface.c:264 __netdev_start_xmit include/linux/netdevice.h:4523 [inline] netdev_start_xmit include/linux/netdevice.h:4537 [inline] xmit_one net/core/dev.c:3477 [inline] dev_hard_start_xmit+0x531/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 hsr_handle_frame+0x3bc/0x4e0 net/hsr/hsr_slave.c:45 __netif_receive_skb_core+0x21de/0x5840 net/core/dev.c:5088 __netif_receive_skb_one_core net/core/dev.c:5185 [inline] __netif_receive_skb net/core/dev.c:5301 [inline] process_backlog+0x936/0x1410 net/core/dev.c:6133 napi_poll net/core/dev.c:6571 [inline] net_rx_action+0x786/0x1aa0 net/core/dev.c:6639 __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:1149 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:834 RIP: 0010:trace_skb_copy_datagram_iovec include/trace/events/skb.h:54 [inline] RIP: 0010:skb_copy_datagram_iter+0x85/0x2b0 net/core/datagram.c:535 Code: 45 00 48 89 45 a8 41 8b 85 88 0c 00 00 89 45 d0 e8 90 23 d5 f5 8b 1d 7a 8a 1d 04 48 c7 c7 c0 46 0d ab e8 de 06 3f f6 83 38 00 <0f> 85 53 01 00 00 85 db 0f 8e 5a 01 00 00 65 8b 05 de 66 11 59 89 RSP: 0018:ffffa27cc0f97af8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff9ba4ddbc16c0 RBX: 0000000000000000 RCX: fffff2288635a240 RDX: ffff9ba4a7ba86c0 RSI: 0000000000000000 RDI: ffffffffab0d46c0 RBP: ffffa27cc0f97b68 R08: fffff2288000000f R09: ffff9ba3eeffb000 R10: 0000000000000004 R11: ffffffffa7f6f510 R12: ffff9ba3e5cea850 R13: ffff9ba3e5cea850 R14: ffffa27cc0f97d58 R15: 0000000000000000 skb_copy_datagram_msg include/linux/skbuff.h:3543 [inline] unix_dgram_recvmsg+0xc2f/0x1710 net/unix/af_unix.c:2150 sock_recvmsg_nosec net/socket.c:886 [inline] sock_recvmsg net/socket.c:904 [inline] __sys_recvfrom+0xaa1/0xab0 net/socket.c:2057 __do_sys_recvfrom net/socket.c:2075 [inline] __se_sys_recvfrom+0x111/0x130 net/socket.c:2071 __x64_sys_recvfrom+0x6e/0x90 net/socket.c:2071 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fdc22168102 Code: 90 90 90 90 90 90 90 90 53 48 83 ec 20 8b 05 01 d5 2a 00 85 c0 75 21 45 31 c9 45 31 c0 4c 63 d1 48 63 ff b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 61 48 83 c4 20 5b c3 48 89 54 24 08 89 0c 24 RSP: 002b:00007ffcfe8949c0 EFLAGS: 00000246 ORIG_RAX: 000000000000002d RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdc22168102 RDX: 0000000000000008 RSI: 00007ffcfe894a70 RDI: 0000000000000008 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000040 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000000 R14: 0000000001d7a730 R15: 0000000001d64030 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 kmsan_memcpy_memmove_metadata+0x272/0x2e0 mm/kmsan/kmsan.c:247 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267 __msan_memcpy+0x43/0x50 mm/kmsan/kmsan_instr.c:116 pskb_expand_head+0x38b/0x1b00 net/core/skbuff.c:1636 __skb_pad+0x47f/0x900 net/core/skbuff.c:1804 __skb_put_padto include/linux/skbuff.h:3242 [inline] skb_put_padto include/linux/skbuff.h:3261 [inline] send_hsr_supervision_frame+0x122d/0x1500 net/hsr/hsr_device.c:310 hsr_announce+0x1e2/0x370 net/hsr/hsr_device.c:341 call_timer_fn+0x218/0x510 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers+0xcff/0x1210 kernel/time/timer.c:1773 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786 __do_softirq+0x311/0x83d kernel/softirq.c:293 Uninit was created at: kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:144 kmsan_internal_alloc_meta_for_pages mm/kmsan/kmsan_shadow.c:307 [inline] kmsan_alloc_page+0x12a/0x310 mm/kmsan/kmsan_shadow.c:336 __alloc_pages_nodemask+0x5712/0x5e80 mm/page_alloc.c:4775 __alloc_pages include/linux/gfp.h:498 [inline] __alloc_pages_node include/linux/gfp.h:511 [inline] alloc_pages_node include/linux/gfp.h:525 [inline] __page_frag_cache_refill mm/page_alloc.c:4850 [inline] page_frag_alloc+0x3ae/0x910 mm/page_alloc.c:4880 __napi_alloc_skb+0x193/0xa60 net/core/skbuff.c:519 napi_alloc_skb include/linux/skbuff.h:2874 [inline] page_to_skb+0x19f/0x1100 drivers/net/virtio_net.c:384 receive_mergeable drivers/net/virtio_net.c:924 [inline] receive_buf+0xe79/0x8b30 drivers/net/virtio_net.c:1033 virtnet_receive drivers/net/virtio_net.c:1323 [inline] virtnet_poll+0x64b/0x19f0 drivers/net/virtio_net.c:1428 napi_poll net/core/dev.c:6571 [inline] net_rx_action+0x786/0x1aa0 net/core/dev.c:6639 __do_softirq+0x311/0x83d kernel/softirq.c:293 =====================================================