===================================================== BUG: KMSAN: uninit-value in virtio_net_hdr_to_skb+0x1414/0x14f0 include/linux/virtio_net.h:86 CPU: 0 PID: 24057 Comm: syz-executor.3 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 virtio_net_hdr_to_skb+0x1414/0x14f0 include/linux/virtio_net.h:86 packet_snd net/packet/af_packet.c:2994 [inline] packet_sendmsg+0x85b8/0x99d0 net/packet/af_packet.c:3031 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] sock_write_iter+0x585/0x680 net/socket.c:1001 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0x1083/0x1b00 fs/read_write.c:605 ksys_write+0x275/0x500 fs/read_write.c:658 __do_sys_write fs/read_write.c:670 [inline] __se_sys_write+0x92/0xb0 fs/read_write.c:667 __ia32_sys_write+0x4a/0x70 fs/read_write.c:667 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:0xf7fab549 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:00000000f55a55fc EFLAGS: 00000296 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000140 RDX: 000000000000fdef 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+0x3c/0x90 mm/kmsan/kmsan.c:120 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:273 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044 __alloc_pages include/linux/gfp.h:525 [inline] alloc_page_interleave mm/mempolicy.c:2143 [inline] alloc_pages_current+0x5c9/0xb60 mm/mempolicy.c:2275 alloc_pages include/linux/gfp.h:561 [inline] stack_depot_save+0x402/0x4c0 lib/stackdepot.c:325 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:126 [inline] kmsan_internal_chain_origin+0xc6/0x130 mm/kmsan/kmsan.c:288 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:225 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:245 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 kstrdup mm/util.c:62 [inline] kstrdup_const+0x1cc/0x240 mm/util.c:83 __kernfs_new_node+0x125/0xcb0 fs/kernfs/dir.c:622 kernfs_new_node+0x18b/0x380 fs/kernfs/dir.c:688 kernfs_create_link+0x177/0x430 fs/kernfs/symlink.c:39 sysfs_do_create_link_sd+0x190/0x380 fs/sysfs/symlink.c:44 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] sysfs_create_link+0x11e/0x180 fs/sysfs/symlink.c:92 module_add_driver+0x5e7/0x6c0 drivers/base/module.c:66 bus_add_driver+0x72a/0xc50 drivers/base/bus.c:626 driver_register+0x485/0x8e0 drivers/base/driver.c:171 usb_register_driver+0x318/0x900 drivers/usb/core/driver.c:1065 pn533_usb_driver_init+0x3e/0x41 drivers/nfc/pn533/usb.c:608 do_one_initcall+0x362/0x8d0 init/main.c:1229 do_initcall_level+0x1e7/0x35a init/main.c:1302 do_initcalls+0x127/0x1cb init/main.c:1318 do_basic_setup+0x33/0x36 init/main.c:1338 kernel_init_freeable+0x287/0x3cc init/main.c:1540 kernel_init+0x1f/0x840 init/main.c:1427 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 =====================================================