================================================================== BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2749 [inline] BUG: KMSAN: uninit-value in kmem_cache_alloc_node+0x5d0/0xe70 mm/slub.c:2828 CPU: 0 PID: 11748 Comm: syz-fuzzer Not tainted 5.3.0-rc3+ #16 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+0x162/0x2d0 mm/kmsan/kmsan_report.c:109 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:294 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:1097 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:835 RIP: 0010:metadata_is_contiguous+0x913/0x9f0 mm/kmsan/kmsan.c:608 Code: 01 c3 e9 78 fe ff ff e8 0b 74 73 ff 85 c0 0f 84 96 00 00 00 41 c6 84 24 9b 09 00 00 00 31 c0 48 83 c4 48 5b 41 5c 41 5d 41 5e <41> 5f 5d c3 48 c7 c7 5d 3b 26 8f 31 c0 e8 98 a2 73 ff e9 c7 fd ff RSP: 0018:ffff8880ab82eca8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: ffffffff8f457001 RBX: ffffffff902c0000 RCX: 0000000000000003 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff8f23e2e8 RBP: ffff8880ab82ecb0 R08: ffffea000000000f R09: ffff88812fffb000 R10: 0000000000000004 R11: 000000008b40edcb R12: 0000000000000000 R13: 000000000000002c R14: ffff8880ab82ef9c R15: 0000000000000004 kmsan_get_shadow_origin_ptr+0x6e/0x3a0 mm/kmsan/kmsan.c:678 __msan_metadata_ptr_for_store_4+0x13/0x20 mm/kmsan/kmsan_instr.c:54 BLEND_OP crypto/sha256_generic.c:63 [inline] sha256_transform crypto/sha256_generic.c:78 [inline] sha256_generic_block_fn+0x324/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:0x47fd2a Code: e8 bb 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:000000c42f1117f8 EFLAGS: 00000216 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000047fd2a RDX: 0000000000080002 RSI: 000000c42b61f120 RDI: ffffffffffffff9c RBP: 000000c42f111878 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001a4 R11: 0000000000000216 R12: 0000000000000000 R13: 00000000000000f1 R14: 0000000000000011 R15: 0000000000000001 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:187 [inline] kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:345 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:190 ___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:1097 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:835 metadata_is_contiguous+0x913/0x9f0 mm/kmsan/kmsan.c:608 kmsan_get_shadow_origin_ptr+0x6e/0x3a0 mm/kmsan/kmsan.c:678 __msan_metadata_ptr_for_store_4+0x13/0x20 mm/kmsan/kmsan_instr.c:54 BLEND_OP crypto/sha256_generic.c:63 [inline] sha256_transform crypto/sha256_generic.c:78 [inline] sha256_generic_block_fn+0x324/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:187 [inline] kmsan_internal_poison_shadow+0x53/0xa0 mm/kmsan/kmsan.c:146 kmsan_slab_free+0x8d/0x100 mm/kmsan/kmsan_hooks.c:195 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_flush+0xb0/0x100 net/core/skbuff.c:862 net_rx_action+0x1908/0x1950 net/core/dev.c:6436 __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 start_secondary+0x370/0x470 arch/x86/kernel/smpboot.c:264 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241 ==================================================================