Oops: general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067] CPU: 2 UID: 0 PID: 6951 Comm: syz.1.358 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:configfs_depend_item_unlocked+0x24a/0x6a0 fs/configfs/dir.c:1246 Code: bd 0b 09 c7 44 24 1c fe ff ff ff e9 a6 02 00 00 e8 2b 71 45 ff 48 8d 7d 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 1d 04 00 00 48 bb 00 00 00 00 00 fc ff df 4c 8b RSP: 0018:ffffc9000c5ffb30 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90007582000 RDX: 000000000000000c RSI: ffffffff82c67be5 RDI: 0000000000000060 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888049e0a800 R14: ffff888049e0a800 R15: ffff888049e0a942 FS: 00007f133784e6c0(0000) GS:ffff8880d5d64000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f133784cfa8 CR3: 0000000022f85000 CR4: 0000000000352ef0 Call Trace: usbg_make_tpg+0x251/0x610 drivers/usb/gadget/function/f_tcm.c:1692 target_fabric_make_tpg+0xab/0x8c0 drivers/target/target_core_fabric_configfs.c:947 configfs_mkdir+0x525/0xd40 fs/configfs/dir.c:1360 vfs_mkdir+0x364/0x850 fs/namei.c:5410 filename_mkdirat+0x48b/0x5e0 fs/namei.c:5443 __do_sys_mkdir fs/namei.c:5470 [inline] __se_sys_mkdir fs/namei.c:5467 [inline] __x64_sys_mkdir+0x6b/0x90 fs/namei.c:5467 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f133699e159 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:00007f133784e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007f1336c26090 RCX: 00007f133699e159 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000600 RBP: 00007f1336a35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1336c26128 R14: 00007f1336c26090 R15: 00007fff14291068 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:configfs_depend_item_unlocked+0x24a/0x6a0 fs/configfs/dir.c:1246 Code: bd 0b 09 c7 44 24 1c fe ff ff ff e9 a6 02 00 00 e8 2b 71 45 ff 48 8d 7d 60 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 1d 04 00 00 48 bb 00 00 00 00 00 fc ff df 4c 8b RSP: 0018:ffffc9000c5ffb30 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90007582000 RDX: 000000000000000c RSI: ffffffff82c67be5 RDI: 0000000000000060 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888049e0a800 R14: ffff888049e0a800 R15: ffff888049e0a942 FS: 00007f133784e6c0(0000) GS:ffff8880d5d64000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c4653ac CR3: 0000000022f85000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 0b 09 or (%rcx),%ecx 2: c7 44 24 1c fe ff ff movl $0xfffffffe,0x1c(%rsp) 9: ff a: e9 a6 02 00 00 jmp 0x2b5 f: e8 2b 71 45 ff call 0xff45713f 14: 48 8d 7d 60 lea 0x60(%rbp),%rdi 18: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1f: fc ff df 22: 48 89 fa mov %rdi,%rdx 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2d: 0f 85 1d 04 00 00 jne 0x450 33: 48 bb 00 00 00 00 00 movabs $0xdffffc0000000000,%rbx 3a: fc ff df 3d: 4c rex.WR 3e: 8b .byte 0x8b