nvmet: adding nsid 1 to subsystem subsys1 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 3 UID: 0 PID: 31401 Comm: syz.8.5445 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:strlen+0x1e/0xa0 lib/string.c:402 Code: 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 55 48 89 fa 48 89 fd 53 48 c1 ea 03 48 83 ec 08 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 50 80 7d 00 00 RSP: 0018:ffffc9000335fb28 EFLAGS: 00010296 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90027e0b000 RDX: 0000000000000000 RSI: ffffffff8290372e RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88804aa88a10 R15: ffff88805ec41000 FS: 0000000000000000(0000) GS:ffff888096edf000(0063) knlGS:00000000f547db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002d305ff8 CR3: 00000000574ef000 CR4: 0000000000352ef0 Call Trace: __fortify_strlen include/linux/fortify-string.h:218 [inline] do_getname_kernel+0x26/0x250 fs/namei.c:260 class_filename_kernel_constructor include/linux/fs.h:2565 [inline] filp_open+0x1d/0x50 fs/open.c:1342 nvmet_file_ns_enable+0x95/0x420 drivers/nvme/target/io-cmd-file.c:41 nvmet_ns_enable+0x35f/0x5d0 drivers/nvme/target/core.c:596 nvmet_ns_enable_store+0x11e/0x160 drivers/nvme/target/configfs.c:735 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x302/0x4e0 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x6ac/0x1050 fs/read_write.c:687 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe7/0x970 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf708efec Code: Unable to access opcode bytes at 0xf708efc2. RSP: 002b:00000000f547d50c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 0000000080000200 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:strlen+0x1e/0xa0 lib/string.c:402 Code: 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 55 48 89 fa 48 89 fd 53 48 c1 ea 03 48 83 ec 08 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 04 84 c0 75 50 80 7d 00 00 RSP: 0018:ffffc9000335fb28 EFLAGS: 00010296 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90027e0b000 RDX: 0000000000000000 RSI: ffffffff8290372e RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88804aa88a10 R15: ffff88805ec41000 FS: 0000000000000000(0000) GS:ffff888096edf000(0063) knlGS:00000000f547db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f545bff4 CR3: 00000000574ef000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: f3 0f 1e fa endbr64 10: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 17: fc ff df 1a: 55 push %rbp 1b: 48 89 fa mov %rdi,%rdx 1e: 48 89 fd mov %rdi,%rbp 21: 53 push %rbx 22: 48 c1 ea 03 shr $0x3,%rdx 26: 48 83 ec 08 sub $0x8,%rsp * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 48 89 fa mov %rdi,%rdx 31: 83 e2 07 and $0x7,%edx 34: 38 d0 cmp %dl,%al 36: 7f 04 jg 0x3c 38: 84 c0 test %al,%al 3a: 75 50 jne 0x8c 3c: 80 7d 00 00 cmpb $0x0,0x0(%rbp)