===================================================== BUG: KMSAN: uninit-value in strlen+0x5e/0xa0 lib/string.c:552 CPU: 0 PID: 12405 Comm: syz-executor199 Not tainted 5.6.0-rc2-syzkaller #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+0x1c9/0x220 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:118 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 strlen+0x5e/0xa0 lib/string.c:552 simple_attr_read+0x1ec/0x740 fs/libfs.c:935 debugfs_attr_read+0x13e/0x290 fs/debugfs/file.c:360 __vfs_read+0x1a9/0xc80 fs/read_write.c:425 vfs_read+0x346/0x6a0 fs/read_write.c:461 ksys_read+0x267/0x450 fs/read_write.c:587 __do_sys_read fs/read_write.c:597 [inline] __se_sys_read fs/read_write.c:595 [inline] __ia32_sys_read+0xdb/0x120 fs/read_write.c:595 do_syscall_32_irqs_on arch/x86/entry/common.c:339 [inline] do_fast_syscall_32+0x3c7/0x6e0 arch/x86/entry/common.c:410 entry_SYSENTER_compat+0x68/0x77 arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fe7d99 Code: 90 e8 0b 00 00 00 f3 90 0f ae e8 eb f9 8d 74 26 00 89 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000ff84ccac EFLAGS: 00000282 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 00000000080ea088 RDI: 00000000ff84cd00 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:127 kmsan_slab_alloc+0x8a/0xe0 mm/kmsan/kmsan_hooks.c:82 slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2802 [inline] kmem_cache_alloc_trace+0x6f3/0xd70 mm/slub.c:2819 kmalloc include/linux/slab.h:555 [inline] simple_attr_open+0xd4/0x400 fs/libfs.c:894 lowpan_enable_fops_open+0x94/0xb0 net/bluetooth/6lowpan.c:1105 open_proxy_open+0x657/0x800 fs/debugfs/file.c:189 do_dentry_open+0xf89/0x1820 fs/open.c:797 vfs_open+0xaf/0xe0 fs/open.c:914 do_last fs/namei.c:3490 [inline] path_openat+0x4d57/0x6bd0 fs/namei.c:3607 do_filp_open+0x2b8/0x710 fs/namei.c:3637 do_sys_openat2+0x92e/0xd40 fs/open.c:1149 do_sys_open fs/open.c:1165 [inline] __do_compat_sys_openat fs/open.c:1221 [inline] __se_compat_sys_openat fs/open.c:1219 [inline] __ia32_compat_sys_openat+0x2e5/0x350 fs/open.c:1219 do_syscall_32_irqs_on arch/x86/entry/common.c:339 [inline] do_fast_syscall_32+0x3c7/0x6e0 arch/x86/entry/common.c:410 entry_SYSENTER_compat+0x68/0x77 arch/x86/entry/entry_64_compat.S:139 =====================================================