================================================================== 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: 11934 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+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:1135 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:837 RIP: 0010:__nr_to_section include/linux/mmzone.h:1234 [inline] RIP: 0010:pfn_valid include/linux/mmzone.h:1344 [inline] RIP: 0010:my_virt_addr_valid mm/kmsan/kmsan_shadow.c:100 [inline] RIP: 0010:kmsan_get_shadow_origin_ptr+0x17a/0x4c0 mm/kmsan/kmsan_shadow.c:185 Code: 39 c3 0d 48 89 c2 48 d3 ea 48 85 d2 75 48 48 89 c1 48 c1 e9 2e 75 3f 48 8b 0d 32 ba 26 0e 48 85 c9 74 33 48 89 c2 48 c1 ea 22 <48> 8b 0c d1 48 85 c9 74 23 48 89 c2 48 c1 ea 1b 83 e2 7f 48 c1 e2 RSP: 0018:ffff8880b0deecb8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 00000000b0deefb4 RBX: 0000000000000000 RCX: ffff88821fff1000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b0deefb4 RBP: ffff8880b0deecf0 R08: 0000000000000002 R09: ffff8880b0deecb8 R10: 0000000000000004 R11: 000000004b246e13 R12: ffffffff902c1000 R13: ffff8880b0deefb4 R14: ffff8880b0deefb4 R15: 0000000000000004 __msan_metadata_ptr_for_load_4+0x10/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+0x2a6/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:000000c4201af7f8 EFLAGS: 00000216 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000047fdba RDX: 0000000000080002 RSI: 000000c42c21c560 RDI: ffffffffffffff9c RBP: 000000c4201af878 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:174 [inline] kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:332 __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:1135 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:837 __nr_to_section include/linux/mmzone.h:1234 [inline] pfn_valid include/linux/mmzone.h:1344 [inline] my_virt_addr_valid mm/kmsan/kmsan_shadow.c:100 [inline] kmsan_get_shadow_origin_ptr+0x17a/0x4c0 mm/kmsan/kmsan_shadow.c:185 __msan_metadata_ptr_for_load_4+0x10/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+0x2a6/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:174 [inline] kmsan_internal_poison_shadow+0x58/0xb0 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 ==================================================================