RDX: 0000000000000002 RSI: 0000000020000a80 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014 R13: 00000000004c0841 R14: 00000000004d02b0 R15: 0000000000000000 ================================================================== BUG: KMSAN: uninit-value in syslog_print kernel/printk/printk.c:1341 [inline] BUG: KMSAN: uninit-value in do_syslog+0x3a2d/0x3c20 kernel/printk/printk.c:1467 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 4415 Comm: rsyslogd Not tainted 4.17.0+ #9 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+0x185/0x1d0 lib/dump_stack.c:113 kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:1125 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:620 syslog_print kernel/printk/printk.c:1341 [inline] do_syslog+0x3a2d/0x3c20 kernel/printk/printk.c:1467 kmsg_read+0x142/0x1a0 fs/proc/kmsg.c:40 proc_reg_read+0x1e3/0x2f0 fs/proc/inode.c:230 __vfs_read+0x1b2/0x9d0 fs/read_write.c:416 vfs_read+0x36c/0x6b0 fs/read_write.c:452 ksys_read fs/read_write.c:578 [inline] __do_sys_read fs/read_write.c:588 [inline] __se_sys_read fs/read_write.c:586 [inline] __x64_sys_read+0x1bf/0x3e0 fs/read_write.c:586 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f03d64611fd RSP: 002b:00007f03d3a00e30 EFLAGS: 00000293 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000001893670 RCX: 00007f03d64611fd RDX: 0000000000000fff RSI: 00007f03d52355a0 RDI: 0000000000000004 RBP: 0000000000000000 R08: 000000000187e260 R09: 0000000000000000 R10: 0000000000000011 R11: 0000000000000293 R12: 000000000065e420 R13: 00007f03d3a019c0 R14: 00007f03d6aa6040 R15: 0000000000000003 CPU: 0 PID: 27980 Comm: syz-executor2 Not tainted 4.17.0+ #9 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 log_store+0x13fc/0x14b0 kernel/printk/printk.c:641 Call Trace: log_output kernel/printk/printk.c:1832 [inline] vprintk_emit+0xca5/0x1060 kernel/printk/printk.c:1897 vprintk_default+0x90/0xa0 kernel/printk/printk.c:1955 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x185/0x1d0 lib/dump_stack.c:113 vprintk_func+0x517/0x700 kernel/printk/printk_safe.c:379 printk+0x1e4/0x210 kernel/printk/printk.c:1991 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x87b/0xab0 lib/fault-inject.c:149 printk_stack_address arch/x86/kernel/dumpstack.c:69 [inline] show_trace_log_lvl+0xb5c/0x10a0 arch/x86/kernel/dumpstack.c:207 show_stack+0xfc/0x150 arch/x86/kernel/dumpstack.c:245 __should_failslab+0x278/0x2a0 mm/failslab.c:32 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x185/0x1d0 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail+0x87b/0xab0 lib/fault-inject.c:149 should_failslab+0x29/0x70 mm/slab_common.c:1522 should_fail_alloc_page mm/page_alloc.c:3067 [inline] prepare_alloc_pages mm/page_alloc.c:4326 [inline] __alloc_pages_nodemask+0x600/0x5cc0 mm/page_alloc.c:4365 alloc_pages_current+0x6b1/0x970 mm/mempolicy.c:2093 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc_node mm/slub.c:2679 [inline] slab_alloc mm/slub.c:2761 [inline] kmem_cache_alloc+0x129/0xb70 mm/slub.c:2766 alloc_pages include/linux/gfp.h:494 [inline] __get_free_pages+0x2d/0xc0 mm/page_alloc.c:4423 tlb_next_batch mm/memory.c:205 [inline] __tlb_remove_page_size mm/memory.c:317 [inline] __tlb_remove_page include/asm-generic/tlb.h:150 [inline] zap_pte_range mm/memory.c:1341 [inline] zap_pmd_range mm/memory.c:1442 [inline] zap_pud_range mm/memory.c:1471 [inline] zap_p4d_range mm/memory.c:1492 [inline] unmap_page_range+0x26d2/0x3be0 mm/memory.c:1513 unmap_single_vma+0x445/0x5e0 mm/memory.c:1558 unmap_vmas+0x1f4/0x360 mm/memory.c:1588 exit_mmap+0x4d7/0x980 mm/mmap.c:3105 __mmput+0x158/0x600 kernel/fork.c:962 mmput+0xab/0xf0 kernel/fork.c:983 exit_mm+0x6ed/0x7a0 kernel/exit.c:545 __d_alloc+0x8b/0xe40 fs/dcache.c:1638 do_exit+0xc12/0x3930 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1405/0x1ec0 kernel/signal.c:2482 do_signal+0xb8/0x1d20 arch/x86/kernel/signal.c:810 d_alloc_pseudo+0x68/0x80 fs/dcache.c:1766 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/0x710 arch/x86/entry/common.c:265 __shmem_file_setup+0x395/0x860 mm/shmem.c:4235 do_syscall_64+0x1ad/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 shmem_kernel_file_setup mm/shmem.c:4279 [inline] shmem_zero_setup+0x12c/0x640 mm/shmem.c:4323 mmap_region+0x2c7a/0x3730 mm/mmap.c:1780