===================================================== BUG: KMSAN: use-after-free in slab_alloc_node mm/slub.c:2751 [inline] BUG: KMSAN: use-after-free in kmem_cache_alloc_node+0x5d0/0xe70 mm/slub.c:2830 CPU: 1 PID: 12072 Comm: syz-executor.0 Not tainted 5.4.0-rc3+ #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+0x128/0x220 mm/kmsan/kmsan_report.c:108 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:245 slab_alloc_node mm/slub.c:2751 [inline] kmem_cache_alloc_node+0x5d0/0xe70 mm/slub.c:2830 __alloc_skb+0x215/0xa10 net/core/skbuff.c:197 alloc_skb include/linux/skbuff.h:1050 [inline] __ip6_append_data+0x469e/0x6020 net/ipv6/ip6_output.c:1515 ip6_append_data+0x3c2/0x650 net/ipv6/ip6_output.c:1684 rawv6_sendmsg+0x3145/0x5a20 net/ipv6/raw.c:949 inet_sendmsg+0x2d8/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg net/socket.c:657 [inline] ___sys_sendmsg+0x12c4/0x1590 net/socket.c:2311 __sys_sendmmsg+0x53a/0xae0 net/socket.c:2413 __do_sys_sendmmsg net/socket.c:2442 [inline] __se_sys_sendmmsg+0xbd/0xe0 net/socket.c:2439 __x64_sys_sendmmsg+0x56/0x70 net/socket.c:2439 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x459f39 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ff161043c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000459f39 RDX: 00000000000004ff RSI: 00000000200092c0 RDI: 0000000000000003 RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff1610446d4 R13: 00000000004c7b70 R14: 00000000004ddaa8 R15: 00000000ffffffff Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:151 [inline] kmsan_internal_chain_origin+0xbd/0x180 mm/kmsan/kmsan.c:319 __msan_chain_origin+0x6b/0xd0 mm/kmsan/kmsan_instr.c:179 ___slab_alloc+0x1dbc/0x1fb0 mm/slub.c:2636 __slab_alloc mm/slub.c:2689 [inline] slab_alloc_node mm/slub.c:2752 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0xade/0xd10 mm/slub.c:2806 skb_clone+0x326/0x5d0 net/core/skbuff.c:1448 ipv6_raw_deliver net/ipv6/raw.c:214 [inline] raw6_local_deliver+0xaf2/0x1040 net/ipv6/raw.c:235 ip6_protocol_deliver_rcu+0x607/0x22a0 net/ipv6/ip6_input.c:359 ip6_input_finish net/ipv6/ip6_input.c:450 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ip6_input+0x2af/0x340 net/ipv6/ip6_input.c:459 dst_input include/net/dst.h:442 [inline] ip6_rcv_finish net/ipv6/ip6_input.c:76 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ipv6_rcv+0x683/0x710 net/ipv6/ip6_input.c:284 __netif_receive_skb_one_core net/core/dev.c:5010 [inline] __netif_receive_skb net/core/dev.c:5124 [inline] process_backlog+0x721/0x1410 net/core/dev.c:5955 napi_poll net/core/dev.c:6392 [inline] net_rx_action+0x7a6/0x1aa0 net/core/dev.c:6460 __do_softirq+0x4a1/0x83a kernel/softirq.c:293 do_softirq_own_stack+0x49/0x80 arch/x86/entry/entry_64.S:1093 do_softirq kernel/softirq.c:338 [inline] __local_bh_enable_ip+0x184/0x1d0 kernel/softirq.c:190 local_bh_enable+0x36/0x40 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:688 [inline] ip6_finish_output2+0x213f/0x2670 net/ipv6/ip6_output.c:117 __ip6_finish_output+0x83d/0x8f0 net/ipv6/ip6_output.c:142 ip6_finish_output+0x2db/0x420 net/ipv6/ip6_output.c:152 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip6_output+0x5d3/0x720 net/ipv6/ip6_output.c:175 dst_output include/net/dst.h:436 [inline] ip6_local_out+0x164/0x1d0 net/ipv6/output_core.c:179 ip6_send_skb net/ipv6/ip6_output.c:1792 [inline] ip6_push_pending_frames+0x215/0x4f0 net/ipv6/ip6_output.c:1812 rawv6_push_pending_frames net/ipv6/raw.c:613 [inline] rawv6_sendmsg+0x4125/0x5a20 net/ipv6/raw.c:956 inet_sendmsg+0x2d8/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg net/socket.c:657 [inline] ___sys_sendmsg+0x12c4/0x1590 net/socket.c:2311 __sys_sendmmsg+0x53a/0xae0 net/socket.c:2413 __do_sys_sendmmsg net/socket.c:2442 [inline] __se_sys_sendmmsg+0xbd/0xe0 net/socket.c:2439 __x64_sys_sendmmsg+0x56/0x70 net/socket.c:2439 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:151 [inline] kmsan_internal_poison_shadow+0x60/0x120 mm/kmsan/kmsan.c:134 kmsan_slab_free+0x8d/0xf0 mm/kmsan/kmsan_hooks.c:108 slab_free_freelist_hook mm/slub.c:1473 [inline] slab_free mm/slub.c:3040 [inline] kmem_cache_free_bulk+0x3ad9/0x3f10 mm/slub.c:3165 __kfree_skb_flush+0xb0/0x100 net/core/skbuff.c:862 net_rx_action+0x1a5e/0x1aa0 net/core/dev.c:6483 __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:536 [inline] do_IRQ+0x123/0x360 arch/x86/kernel/irq.c:263 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+0x1d5/0x780 kernel/sched/idle.c:263 cpu_startup_entry+0x45/0x50 kernel/sched/idle.c:355 start_secondary+0x389/0x480 arch/x86/kernel/smpboot.c:264 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:241 =====================================================