nvmet: adding nsid 1 to subsystem testnqn general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 4405 Comm: syz.3.14 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:strlen+0x25/0x60 lib/string.c:502 Code: da 0f 1f 40 00 41 57 41 56 41 54 53 48 c7 c0 ff ff ff ff 49 be 00 00 00 00 00 fc ff df 48 89 fb 49 89 c7 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 75 11 48 ff c3 49 8d 47 01 42 80 7c 3f 01 00 RSP: 0018:ffffc900042879c0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000c9f9000 RSI: 0000000000000459 RDI: 0000000000000000 RBP: ffffc90004287af8 R08: ffffffff8e210aef R09: 1ffffffff1c4215d R10: dffffc0000000000 R11: fffffbfff1c4215e R12: 1ffff92000850f48 R13: dffffc0000000000 R14: dffffc0000000000 R15: ffffffffffffffff FS: 00007f448ad9a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3b3e37 CR3: 0000000029205000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __fortify_strlen include/linux/fortify-string.h:196 [inline] getname_kernel+0x24/0x2f0 fs/namei.c:225 filp_open+0x84/0x1e0 fs/open.c:1281 nvmet_file_ns_enable+0x70/0x330 drivers/nvme/target/io-cmd-file.c:41 nvmet_ns_enable+0xf0/0x8c0 drivers/nvme/target/core.c:576 nvmet_ns_enable_store+0xd4/0x170 drivers/nvme/target/configfs.c:548 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x30b/0x400 fs/configfs/file.c:229 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x482/0x9a0 fs/read_write.c:584 ksys_write+0x14d/0x260 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f4489f9e019 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f448ad9a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f448a225fa0 RCX: 00007f4489f9e019 RDX: 0000000000000001 RSI: 0000200000000580 RDI: 0000000000000006 RBP: 00007f448a03500c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f448a226038 R14: 00007f448a225fa0 R15: 00007ffc6f3e2a38 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:strlen+0x25/0x60 lib/string.c:502 Code: da 0f 1f 40 00 41 57 41 56 41 54 53 48 c7 c0 ff ff ff ff 49 be 00 00 00 00 00 fc ff df 48 89 fb 49 89 c7 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 75 11 48 ff c3 49 8d 47 01 42 80 7c 3f 01 00 RSP: 0018:ffffc900042879c0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000c9f9000 RSI: 0000000000000459 RDI: 0000000000000000 RBP: ffffc90004287af8 R08: ffffffff8e210aef R09: 1ffffffff1c4215d R10: dffffc0000000000 R11: fffffbfff1c4215e R12: 1ffff92000850f48 R13: dffffc0000000000 R14: dffffc0000000000 R15: ffffffffffffffff FS: 00007f448ad9a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1dc0f93e9c CR3: 0000000029205000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 0f 1f 40 00 nopl 0x0(%rax) 4: 41 57 push %r15 6: 41 56 push %r14 8: 41 54 push %r12 a: 53 push %rbx b: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax 12: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 19: fc ff df 1c: 48 89 fb mov %rdi,%rbx 1f: 49 89 c7 mov %rax,%r15 22: 48 89 d8 mov %rbx,%rax 25: 48 c1 e8 03 shr $0x3,%rax * 29: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 75 11 jne 0x43 32: 48 ff c3 inc %rbx 35: 49 8d 47 01 lea 0x1(%r15),%rax 39: 42 80 7c 3f 01 00 cmpb $0x0,0x1(%rdi,%r15,1)