general protection fault, probably for non-canonical address 0xdffffc000000002a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000150-0x0000000000000157] CPU: 1 PID: 498 Comm: syz-executor.1 Not tainted 6.6.0-syzkaller-12715-g6bdfe2d88b9f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:__lock_acquire+0x10d/0x7f70 kernel/locking/lockdep.c:5004 Code: 85 75 18 00 00 83 3d 7d c2 92 0d 00 48 89 9c 24 10 01 00 00 0f 84 f8 0f 00 00 83 3d cc 22 12 0c 00 74 34 48 89 d0 48 c1 e8 03 <42> 80 3c 00 00 74 1a 48 89 d7 e8 b4 89 7d 00 48 8b 94 24 80 00 00 RSP: 0018:ffffc900032bf600 EFLAGS: 00010002 RAX: 000000000000002a RBX: 1ffff92000657ee4 RCX: 0000000000000000 RDX: 0000000000000150 RSI: 0000000000000000 RDI: 0000000000000150 RBP: ffffc900032bf8c8 R08: dffffc0000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1e00276 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000000 R15: ffff888048a78000 FS: 00007efcd638f6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8989b75198 CR3: 000000007bce8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5753 down_write+0x3a/0x50 kernel/locking/rwsem.c:1579 inode_lock include/linux/fs.h:802 [inline] simple_recursive_removal+0x8d/0x7c0 fs/libfs.c:520 debugfs_remove+0x49/0x70 fs/debugfs/inode.c:764 ptp_release+0x70/0x1e0 drivers/ptp/ptp_chardev.c:144 ptp_read+0x17f/0x820 drivers/ptp/ptp_chardev.c:589 posix_clock_read+0x12f/0x190 kernel/time/posix-clock.c:51 vfs_read+0x289/0xb00 fs/read_write.c:468 ksys_read+0x1a0/0x2c0 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7efcd567cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007efcd638f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007efcd579c050 RCX: 00007efcd567cae9 RDX: 0000000000000094 RSI: 0000000020000280 RDI: 0000000000000003 RBP: 00007efcd56c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007efcd579c050 R15: 00007ffc9bfee928 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__lock_acquire+0x10d/0x7f70 kernel/locking/lockdep.c:5004 Code: 85 75 18 00 00 83 3d 7d c2 92 0d 00 48 89 9c 24 10 01 00 00 0f 84 f8 0f 00 00 83 3d cc 22 12 0c 00 74 34 48 89 d0 48 c1 e8 03 <42> 80 3c 00 00 74 1a 48 89 d7 e8 b4 89 7d 00 48 8b 94 24 80 00 00 RSP: 0018:ffffc900032bf600 EFLAGS: 00010002 RAX: 000000000000002a RBX: 1ffff92000657ee4 RCX: 0000000000000000 RDX: 0000000000000150 RSI: 0000000000000000 RDI: 0000000000000150 RBP: ffffc900032bf8c8 R08: dffffc0000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1e00276 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000000 R15: ffff888048a78000 FS: 00007efcd638f6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8989b75198 CR3: 000000007bce8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 85 75 18 test %esi,0x18(%rbp) 3: 00 00 add %al,(%rax) 5: 83 3d 7d c2 92 0d 00 cmpl $0x0,0xd92c27d(%rip) # 0xd92c289 c: 48 89 9c 24 10 01 00 mov %rbx,0x110(%rsp) 13: 00 14: 0f 84 f8 0f 00 00 je 0x1012 1a: 83 3d cc 22 12 0c 00 cmpl $0x0,0xc1222cc(%rip) # 0xc1222ed 21: 74 34 je 0x57 23: 48 89 d0 mov %rdx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 00 00 cmpb $0x0,(%rax,%r8,1) <-- trapping instruction 2f: 74 1a je 0x4b 31: 48 89 d7 mov %rdx,%rdi 34: e8 b4 89 7d 00 call 0x7d89ed 39: 48 rex.W 3a: 8b .byte 0x8b 3b: 94 xchg %eax,%esp 3c: 24 80 and $0x80,%al