================================================================== BUG: KMSAN: uninit-value in rcu_cblist_dequeue+0x1bb/0x290 kernel/rcu/rcu_segcblist.c:54 CPU: 1 PID: 3580 Comm: sshd Not tainted 4.16.0+ #84 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x185/0x1d0 lib/dump_stack.c:53 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:676 rcu_cblist_dequeue+0x1bb/0x290 kernel/rcu/rcu_segcblist.c:54 rcu_do_batch kernel/rcu/tree.c:2671 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2933 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2900 [inline] rcu_process_callbacks+0x15cd/0x2070 kernel/rcu/tree.c:2917 __do_softirq+0x56d/0x93d kernel/softirq.c:285 invoke_softirq kernel/softirq.c:365 [inline] irq_exit+0x202/0x240 kernel/softirq.c:405 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:541 smp_apic_timer_interrupt+0x64/0x90 arch/x86/kernel/apic/apic.c:1055 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:857 RIP: 0010:native_restore_fl arch/x86/include/asm/irqflags.h:37 [inline] RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:78 [inline] RIP: 0010:kmsan_kmalloc+0xc6/0x100 mm/kmsan/kmsan.c:316 RSP: 0018:ffff8801b08ff4b8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff12 RAX: 0000000000000246 RBX: ffff8801c6f87c00 RCX: 0000000000000101 RDX: 0000000000000100 RSI: ffffea000aa9d2e8 RDI: ffff8801c6f87c00 RBP: ffff8801b08ff4f8 R08: 00000000010102c0 R09: 0000000000000002 R10: 0000000000000000 R11: ffff8801b08f0000 R12: ffff88021f004f00 R13: ffff8801df02bb00 R14: 0000000000000400 R15: 00000000014102c0 kmsan_slab_alloc+0x11/0x20 mm/kmsan/kmsan.c:321 slab_post_alloc_hook mm/slab.h:445 [inline] slab_alloc_node mm/slub.c:2737 [inline] __kmalloc_node_track_caller+0xaed/0x11c0 mm/slub.c:4369 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x2cf/0x9f0 net/core/skbuff.c:206 alloc_skb_fclone include/linux/skbuff.h:1026 [inline] sk_stream_alloc_skb+0x17c/0xcf0 net/ipv4/tcp.c:866 tcp_sendmsg_locked+0x2cc0/0x6d20 net/ipv4/tcp.c:1301 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1463 inet_sendmsg+0x48d/0x740 net/ipv4/af_inet.c:764 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg net/socket.c:640 [inline] sock_write_iter+0x3b9/0x470 net/socket.c:909 call_write_iter include/linux/fs.h:1782 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x719/0x910 fs/read_write.c:482 vfs_write+0x463/0x8d0 fs/read_write.c:544 SYSC_write+0x172/0x360 fs/read_write.c:589 SyS_write+0x55/0x80 fs/read_write.c:581 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 RIP: 0033:0x7fb67a25c370 RSP: 002b:00007fff0ad4d0e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000038 RCX: 00007fb67a25c370 RDX: 0000000000000038 RSI: 000055e310740450 RDI: 0000000000000003 RBP: 000055e310740450 R08: 0000000000000001 R09: 0101010101010101 R10: 0000000000000008 R11: 0000000000000246 R12: 00007fff0ad4d14c R13: 000055e30f1dbfb4 R14: 0000000000000028 R15: 000055e30f1ddca0 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 rcu_segcblist_extract_done_cbs+0x3f7/0x5e0 kernel/rcu/rcu_segcblist.c:215 rcu_do_batch kernel/rcu/tree.c:2667 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2933 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2900 [inline] rcu_process_callbacks+0x159b/0x2070 kernel/rcu/tree.c:2917 __do_softirq+0x56d/0x93d kernel/softirq.c:285 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 rcu_segcblist_extract_done_cbs+0x444/0x5e0 kernel/rcu/rcu_segcblist.c:216 rcu_do_batch kernel/rcu/tree.c:2667 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2933 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2900 [inline] rcu_process_callbacks+0x159b/0x2070 kernel/rcu/tree.c:2917 __do_softirq+0x56d/0x93d kernel/softirq.c:285 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 rcu_segcblist_insert_done_cbs+0x448/0x680 kernel/rcu/rcu_segcblist.c:270 rcu_do_batch kernel/rcu/tree.c:2692 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2933 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2900 [inline] rcu_process_callbacks+0x18e4/0x2070 kernel/rcu/tree.c:2917 __do_softirq+0x56d/0x93d kernel/softirq.c:285 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 rcu_segcblist_extract_done_cbs+0x444/0x5e0 kernel/rcu/rcu_segcblist.c:216 rcu_do_batch kernel/rcu/tree.c:2667 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2933 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2900 [inline] rcu_process_callbacks+0x159b/0x2070 kernel/rcu/tree.c:2917 __do_softirq+0x56d/0x93d kernel/softirq.c:285 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 rcu_segcblist_enqueue+0x24c/0x2d0 kernel/rcu/rcu_segcblist.c:150 __call_rcu+0x227/0xef0 kernel/rcu/tree.c:3060 call_rcu_sched+0x32/0x40 kernel/rcu/tree.c:3100 free_pid+0x441/0x450 kernel/pid.c:156 __change_pid kernel/pid.c:294 [inline] detach_pid+0x35a/0x370 kernel/pid.c:299 __unhash_process kernel/exit.c:75 [inline] __exit_signal kernel/exit.c:156 [inline] release_task+0x10a0/0x2530 kernel/exit.c:200 exit_notify kernel/exit.c:736 [inline] do_exit+0x2d91/0x38d0 kernel/exit.c:887 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1320/0x1f20 kernel/signal.c:2469 do_signal+0xb8/0x1c80 arch/x86/kernel/signal.c:809 exit_to_usermode_loop arch/x86/entry/common.c:162 [inline] prepare_exit_to_usermode+0x271/0x3a0 arch/x86/entry/common.c:196 syscall_return_slowpath+0xe9/0x700 arch/x86/entry/common.c:265 do_syscall_64+0x36d/0x430 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 Local variable description: ----tlb.i@ldt_arch_exit_mmap Variable was created at: ldt_arch_exit_mmap+0x46/0x160 arch/x86/kernel/ldt.c:298 arch_exit_mmap arch/x86/include/asm/mmu_context.h:244 [inline] exit_mmap+0x30f/0x950 mm/mmap.c:3009 ==================================================================