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: 2701 Comm: syz-executor.4 Not tainted 6.6.0-syzkaller-10396-g4652b8e4f3ff #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 ed 69 72 0d 00 48 89 9c 24 10 01 00 00 0f 84 f8 0f 00 00 83 3d 0c 3c f2 0b 00 74 34 48 89 d0 48 c1 e8 03 <42> 80 3c 00 00 74 1a 48 89 d7 e8 54 f8 7c 00 48 8b 94 24 80 00 00 RSP: 0018:ffffc9001627f520 EFLAGS: 00010002 RAX: 000000000000002a RBX: 1ffff92002c4fec8 RCX: 0000000000000000 RDX: 0000000000000150 RSI: 0000000000000000 RDI: 0000000000000150 RBP: ffffc9001627f7e8 R08: dffffc0000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1dbf43e R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000000 R15: ffff88807d1f9dc0 FS: 00007fd97e74f6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020004980 CR3: 000000001c10c000 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 do_loop_readv_writev fs/read_write.c:755 [inline] do_iter_read+0x572/0xd90 fs/read_write.c:797 vfs_readv fs/read_write.c:915 [inline] do_preadv+0x212/0x350 fs/read_write.c:1007 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:0x7fd97da7cae9 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:00007fd97e74f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007fd97db9bf80 RCX: 00007fd97da7cae9 RDX: 0000000000000002 RSI: 0000000020000280 RDI: 0000000000000004 RBP: 00007fd97dac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd97db9bf80 R15: 00007ffc3eecf7d8 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 ed 69 72 0d 00 48 89 9c 24 10 01 00 00 0f 84 f8 0f 00 00 83 3d 0c 3c f2 0b 00 74 34 48 89 d0 48 c1 e8 03 <42> 80 3c 00 00 74 1a 48 89 d7 e8 54 f8 7c 00 48 8b 94 24 80 00 00 RSP: 0018:ffffc9001627f520 EFLAGS: 00010002 RAX: 000000000000002a RBX: 1ffff92002c4fec8 RCX: 0000000000000000 RDX: 0000000000000150 RSI: 0000000000000000 RDI: 0000000000000150 RBP: ffffc9001627f7e8 R08: dffffc0000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1dbf43e R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000000 R15: ffff88807d1f9dc0 FS: 00007fd97e74f6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020004980 CR3: 000000001c10c000 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 ed 69 72 0d 00 cmpl $0x0,0xd7269ed(%rip) # 0xd7269f9 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 0c 3c f2 0b 00 cmpl $0x0,0xbf23c0c(%rip) # 0xbf23c2d 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 54 f8 7c 00 call 0x7cf88d 39: 48 rex.W 3a: 8b .byte 0x8b 3b: 94 xchg %eax,%esp 3c: 24 80 and $0x80,%al