nvmet: adding nsid 1 to subsystem testsubsys Unable to handle kernel paging request at virtual address dfff800000000000 KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0 [dfff800000000000] address between user and kernel address ranges Internal error: Oops: 0000000096000005 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 11397 Comm: syz.2.1722 Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: linux,dummy-virt (DT) pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : strlen+0x24/0xac lib/string.c:402 lr : __fortify_strlen include/linux/fortify-string.h:218 [inline] lr : do_getname_kernel+0x20/0x1f0 fs/namei.c:260 sp : ffff80008e9a77d0 x29: ffff80008e9a77d0 x28: ffff000013eb6865 x27: ffff000013eb6900 x26: 1fffe00004345582 x25: 0000000000000005 x24: 1fffe000027d6d0c x23: 1fffe000027d6d0e x22: 0000000000000000 x21: 0000000000000000 x20: 0000000000020002 x19: 1ffff00011d34f0a x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: 0000000020000600 x14: 0000000000000000 x13: ffff800089e8e760 x12: ffff700011d34efd x11: 1ffff00011d34efc x10: ffff700011d34efc x9 : 00000000f2000000 x8 : 00000000f3f3f3f3 x7 : 00000000f3000000 x6 : 00000000f2040000 x5 : 00000000f2f2f2f2 x4 : ffff700011d34f0a x3 : 0000000000000000 x2 : 0000000000000000 x1 : dfff800000000000 x0 : 0000000000000000 Call trace: strlen+0x24/0xac lib/string.c:399 (P) __fortify_strlen include/linux/fortify-string.h:218 [inline] do_getname_kernel+0x20/0x1f0 fs/namei.c:260 getname_kernel+0x14/0x20 fs/namei.c:289 class_filename_kernel_constructor include/linux/fs.h:2586 [inline] filp_open+0x9c/0x18c fs/open.c:1391 nvmet_file_ns_enable+0x88/0x3ac drivers/nvme/target/io-cmd-file.c:41 nvmet_ns_enable+0x270/0x500 drivers/nvme/target/core.c:596 nvmet_ns_enable_store+0xac/0x124 drivers/nvme/target/configfs.c:737 flush_write_buffer fs/configfs/file.c:207 [inline] configfs_write_iter+0x244/0x398 fs/configfs/file.c:229 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x4c0/0xbac fs/read_write.c:687 ksys_write+0xf0/0x1e0 fs/read_write.c:739 __do_sys_write fs/read_write.c:750 [inline] __se_sys_write fs/read_write.c:747 [inline] __arm64_sys_write+0x70/0xa0 fs/read_write.c:747 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x74/0x240 arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0xac/0x230 arch/arm64/kernel/syscall.c:121 do_el0_svc_compat+0x40/0x58 arch/arm64/kernel/syscall.c:146 el0_svc_compat+0x54/0x264 arch/arm64/kernel/entry-common.c:909 el0t_32_sync_handler+0x88/0xac arch/arm64/kernel/entry-common.c:927 el0t_32_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:595 Code: f2fbffe1 a90157f4 12000802 aa0003f5 (38e16861) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: f2fbffe1 movk x1, #0xdfff, lsl #48 4: a90157f4 stp x20, x21, [sp, #16] 8: 12000802 and w2, w0, #0x7 c: aa0003f5 mov x21, x0 * 10: 38e16861 ldrsb w1, [x3, x1] <-- trapping instruction