===================================================== BUG: KMSAN: uninit-value in __alloc_skb+0x215/0xa10 net/core/skbuff.c:197 CPU: 0 PID: 11311 Comm: syz-fuzzer Not tainted 5.3.0-rc7+ #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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x13a/0x2b0 mm/kmsan/kmsan_report.c:108 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250 slab_alloc_node mm/slub.c:2749 [inline] kmem_cache_alloc_node+0x5d0/0xe70 mm/slub.c:2828 __alloc_skb+0x215/0xa10 net/core/skbuff.c:197 alloc_skb include/linux/skbuff.h:1056 [inline] new_skb drivers/block/aoe/aoecmd.c:67 [inline] aoecmd_cfg_pkts drivers/block/aoe/aoecmd.c:426 [inline] aoecmd_cfg+0x205/0xa80 drivers/block/aoe/aoecmd.c:1372 discover_timer+0x86/0xa0 drivers/block/aoe/aoemain.c:24 call_timer_fn+0x232/0x530 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers+0xcdc/0x11a0 kernel/time/timer.c:1685 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1698 __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:537 smp_apic_timer_interrupt+0x48/0x70 arch/x86/kernel/apic/apic.c:1135 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:837 RIP: 0010:my_virt_addr_valid mm/kmsan/kmsan_shadow.c:93 [inline] RIP: 0010:kmsan_get_shadow_origin_ptr+0x13c/0x4c0 mm/kmsan/kmsan_shadow.c:188 Code: 60 00 e1 ff ff 4d 8d a4 05 00 00 00 5f e9 28 ff ff ff 48 b8 00 00 00 00 80 77 00 00 4c 89 f1 48 81 e9 00 00 00 80 48 89 4d d0 <0f> 83 20 03 00 00 4c 01 f0 48 39 c8 77 59 8a 0d 91 3b c3 0d 48 89 RSP: 0018:ffff8880b883ecc0 EFLAGS: 00000283 ORIG_RAX: ffffffffffffff13 RAX: 0000778000000000 RBX: 000000000000001c RCX: ffff88813883ef4c RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b883ef4c RBP: ffff8880b883ecf0 R08: 0000000000000002 R09: ffff8880b883ecb8 R10: 0000000000000004 R11: 00000000d817bc92 R12: ffffffff902c0000 R13: ffff8880b883ef4c R14: ffff8880b883ef4c R15: 0000000000000004 __msan_metadata_ptr_for_store_4+0x13/0x20 mm/kmsan/kmsan_instr.c:54 LOAD_OP crypto/sha256_generic.c:58 [inline] sha256_transform crypto/sha256_generic.c:74 [inline] sha256_generic_block_fn+0x1b9/0x8870 crypto/sha256_generic.c:233 sha256_base_do_update include/crypto/sha256_base.h:79 [inline] crypto_sha256_update+0x3f6/0x480 crypto/sha256_generic.c:241 crypto_shash_update+0x4eb/0x550 crypto/shash.c:107 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:361 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:381 [inline] ima_calc_file_hash+0x170a/0x3240 security/integrity/ima/ima_crypto.c:446 ima_collect_measurement+0x4a5/0x9e0 security/integrity/ima/ima_api.c:239 process_measurement+0x1a7d/0x2ba0 security/integrity/ima/ima_main.c:311 ima_file_check+0x131/0x170 security/integrity/ima/ima_main.c:422 do_last fs/namei.c:3420 [inline] path_openat+0x4b09/0x6bb0 fs/namei.c:3533 do_filp_open+0x2b8/0x710 fs/namei.c:3563 do_sys_open+0x642/0xa30 fs/open.c:1089 __do_sys_openat fs/open.c:1116 [inline] __se_sys_openat+0xcb/0xe0 fs/open.c:1110 __x64_sys_openat+0x56/0x70 fs/open.c:1110 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x47fdba Code: e8 2b 40 fb ff 48 8b 7c 24 10 48 8b 74 24 18 48 8b 54 24 20 4c 8b 54 24 28 4c 8b 44 24 30 4c 8b 4c 24 38 48 8b 44 24 08 0f 05 <48> 3d 01 f0 ff ff 76 20 48 c7 44 24 40 ff ff ff ff 48 c7 44 24 48 RSP: 002b:000000c4203a17f8 EFLAGS: 00000216 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000047fdba RDX: 0000000000080002 RSI: 000000c42b38e2a0 RDI: ffffffffffffff9c RBP: 000000c4203a1878 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001a4 R11: 0000000000000216 R12: 0000000000000000 R13: 00000000000000f5 R14: 0000000000000075 R15: 0000000000000004 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:150 [inline] kmsan_internal_chain_origin+0xd2/0x170 mm/kmsan/kmsan.c:314 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:184 ___slab_alloc+0x1dbc/0x1fb0 mm/slub.c:2634 __slab_alloc mm/slub.c:2687 [inline] slab_alloc_node mm/slub.c:2750 [inline] kmem_cache_alloc_node+0x769/0xe70 mm/slub.c:2828 __alloc_skb+0x215/0xa10 net/core/skbuff.c:197 alloc_skb include/linux/skbuff.h:1056 [inline] new_skb drivers/block/aoe/aoecmd.c:67 [inline] aoecmd_cfg_pkts drivers/block/aoe/aoecmd.c:426 [inline] aoecmd_cfg+0x205/0xa80 drivers/block/aoe/aoecmd.c:1372 discover_timer+0x86/0xa0 drivers/block/aoe/aoemain.c:24 call_timer_fn+0x232/0x530 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers+0xcdc/0x11a0 kernel/time/timer.c:1685 run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1698 __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:537 smp_apic_timer_interrupt+0x48/0x70 arch/x86/kernel/apic/apic.c:1135 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:837 my_virt_addr_valid mm/kmsan/kmsan_shadow.c:90 [inline] kmsan_get_shadow_origin_ptr+0x13c/0x4c0 mm/kmsan/kmsan_shadow.c:188 __msan_metadata_ptr_for_store_4+0x13/0x20 mm/kmsan/kmsan_instr.c:54 LOAD_OP crypto/sha256_generic.c:58 [inline] sha256_transform crypto/sha256_generic.c:74 [inline] sha256_generic_block_fn+0x1b9/0x8870 crypto/sha256_generic.c:233 sha256_base_do_update include/crypto/sha256_base.h:79 [inline] crypto_sha256_update+0x3f6/0x480 crypto/sha256_generic.c:241 crypto_shash_update+0x4eb/0x550 crypto/shash.c:107 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:361 [inline] ima_calc_file_shash security/integrity/ima/ima_crypto.c:381 [inline] ima_calc_file_hash+0x170a/0x3240 security/integrity/ima/ima_crypto.c:446 ima_collect_measurement+0x4a5/0x9e0 security/integrity/ima/ima_api.c:239 process_measurement+0x1a7d/0x2ba0 security/integrity/ima/ima_main.c:311 ima_file_check+0x131/0x170 security/integrity/ima/ima_main.c:422 do_last fs/namei.c:3420 [inline] path_openat+0x4b09/0x6bb0 fs/namei.c:3533 do_filp_open+0x2b8/0x710 fs/namei.c:3563 do_sys_open+0x642/0xa30 fs/open.c:1089 __do_sys_openat fs/open.c:1116 [inline] __se_sys_openat+0xcb/0xe0 fs/open.c:1110 __x64_sys_openat+0x56/0x70 fs/open.c:1110 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:150 [inline] kmsan_internal_poison_shadow+0x53/0x100 mm/kmsan/kmsan.c:134 kmsan_slab_free+0x8d/0x100 mm/kmsan/kmsan_hooks.c:123 slab_free_freelist_hook mm/slub.c:1472 [inline] slab_free mm/slub.c:3038 [inline] kmem_cache_free_bulk+0x3ad9/0x3f50 mm/slub.c:3163 _kfree_skb_defer net/core/skbuff.c:885 [inline] napi_consume_skb+0x593/0x5d0 net/core/skbuff.c:918 free_old_xmit_skbs+0x1a1/0x450 drivers/net/virtio_net.c:1366 virtnet_poll_tx+0x24c/0x4c0 drivers/net/virtio_net.c:1493 napi_poll net/core/dev.c:6352 [inline] net_rx_action+0x74b/0x1950 net/core/dev.c:6418 __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 arch/x86/include/asm/apic.h:537 [inline] do_IRQ+0x20d/0x3a0 arch/x86/kernel/irq.c:259 ret_from_intr+0x0/0x33 native_safe_halt arch/x86/include/asm/irqflags.h:60 [inline] arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline] default_idle+0x53/0x90 arch/x86/kernel/process.c:580 arch_cpu_idle+0x25/0x30 arch/x86/kernel/process.c:571 default_idle_call kernel/sched/idle.c:94 [inline] cpuidle_idle_call kernel/sched/idle.c:154 [inline] do_idle+0x1d7/0x790 kernel/sched/idle.c:263 cpu_startup_entry+0x45/0x50 kernel/sched/idle.c:354 rest_init+0x1be/0x1f0 init/main.c:452 arch_call_rest_init+0x13/0x15 start_kernel+0x991/0xb61 init/main.c:788 x86_64_start_reservations+0x18/0x2e arch/x86/kernel/head64.c:472 x86_64_start_kernel+0x81/0x84 arch/x86/kernel/head64.c:453 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241 =====================================================