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: 20238 Comm: syz-executor.0 Not tainted 6.6.0-syzkaller-15758-ga12deb44f973 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:__lock_acquire+0x109/0x5de0 kernel/locking/lockdep.c:5004 Code: 45 85 c9 0f 84 cc 0e 00 00 44 8b 05 11 d6 81 0b 45 85 c0 0f 84 be 0d 00 00 48 ba 00 00 00 00 00 fc ff df 4c 89 d1 48 c1 e9 03 <80> 3c 11 00 0f 85 e8 40 00 00 49 81 3a a0 79 b5 90 0f 84 96 0d 00 RSP: 0018:ffffc90029327830 EFLAGS: 00010002 RAX: ffff8880257d0000 RBX: 1ffff92005264f36 RCX: 000000000000002a RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000150 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000150 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88802c700000(0063) knlGS:00000000f7f3db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7378020 CR3: 000000005eef1000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 down_write+0x93/0x200 kernel/locking/rwsem.c:1579 inode_lock include/linux/fs.h:802 [inline] simple_recursive_removal+0x175/0x810 fs/libfs.c:523 debugfs_remove+0x5d/0x80 fs/debugfs/inode.c:764 ptp_release+0x79/0x2b0 drivers/ptp/ptp_chardev.c:144 ptp_read+0xf6/0x830 drivers/ptp/ptp_chardev.c:589 posix_clock_read+0x138/0x1b0 kernel/time/posix-clock.c:51 vfs_read+0x1ce/0x8f0 fs/read_write.c:468 ksys_read+0x12f/0x250 fs/read_write.c:613 do_syscall_32_irqs_on arch/x86/entry/common.c:164 [inline] __do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:230 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:255 entry_SYSENTER_compat_after_hwframe+0x70/0x7a RIP: 0023:0xf7f63579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7f3d5ac EFLAGS: 00000292 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000080 RDX: 00000000000000a9 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__lock_acquire+0x109/0x5de0 kernel/locking/lockdep.c:5004 Code: 45 85 c9 0f 84 cc 0e 00 00 44 8b 05 11 d6 81 0b 45 85 c0 0f 84 be 0d 00 00 48 ba 00 00 00 00 00 fc ff df 4c 89 d1 48 c1 e9 03 <80> 3c 11 00 0f 85 e8 40 00 00 49 81 3a a0 79 b5 90 0f 84 96 0d 00 RSP: 0018:ffffc90029327830 EFLAGS: 00010002 RAX: ffff8880257d0000 RBX: 1ffff92005264f36 RCX: 000000000000002a RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000150 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000150 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88802c700000(0063) knlGS:00000000f7f3db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f7378020 CR3: 000000005eef1000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 45 85 c9 test %r9d,%r9d 3: 0f 84 cc 0e 00 00 je 0xed5 9: 44 8b 05 11 d6 81 0b mov 0xb81d611(%rip),%r8d # 0xb81d621 10: 45 85 c0 test %r8d,%r8d 13: 0f 84 be 0d 00 00 je 0xdd7 19: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 20: fc ff df 23: 4c 89 d1 mov %r10,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) <-- trapping instruction 2e: 0f 85 e8 40 00 00 jne 0x411c 34: 49 81 3a a0 79 b5 90 cmpq $0xffffffff90b579a0,(%r10) 3b: 0f .byte 0xf 3c: 84 .byte 0x84 3d: 96 xchg %eax,%esi 3e: 0d .byte 0xd