list_del corruption. prev->next should be ffff888020c85048, but was ffff88816da7c5e8. (prev=ffff888020b51048) ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:62! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 3 PID: 21899 Comm: syz-executor.3 Not tainted 6.6.0-syzkaller-14142-g90b0c2b2edd1 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:__list_del_entry_valid_or_report+0x11f/0x1b0 lib/list_debug.c:62 Code: 5b 2e 8b e8 c3 d4 03 fd 0f 0b 48 89 ca 48 c7 c7 80 5b 2e 8b e8 b2 d4 03 fd 0f 0b 48 89 c2 48 c7 c7 e0 5b 2e 8b e8 a1 d4 03 fd <0f> 0b 48 89 d1 48 c7 c7 60 5c 2e 8b 48 89 c2 e8 8d d4 03 fd 0f 0b RSP: 0018:ffffc90003447e08 EFLAGS: 00010086 RAX: 000000000000006d RBX: ffff888020c84000 RCX: ffffffff816a83f9 RDX: 0000000000000000 RSI: ffffffff816b1882 RDI: 0000000000000005 RBP: ffff888064cf96c0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000001 R11: 6c65645f7473696c R12: 0000000000000246 R13: ffff888020c85048 R14: ffff888020c85008 R15: ffff888020c85050 FS: 0000555556e37480(0000) GS:ffff88806b900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 000000001c804000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del include/linux/list.h:229 [inline] ptp_release+0xc4/0x2b0 drivers/ptp/ptp_chardev.c:147 posix_clock_release+0xa4/0x160 kernel/time/posix-clock.c:157 __fput+0x270/0xbb0 fs/file_table.c:394 __fput_sync+0x47/0x50 fs/file_table.c:475 __do_sys_close fs/open.c:1590 [inline] __se_sys_close fs/open.c:1575 [inline] __x64_sys_close+0x87/0xf0 fs/open.c:1575 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f5f4787b9da Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffd75292760 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: ffffffffffffffda RBX: 000000000000000b RCX: 00007f5f4787b9da RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000000a RBP: 0000000000000032 R08: 0000001b30760000 R09: 00007f5f4799c05c R10: 00007ffd752928b0 R11: 0000000000000293 R12: 00007f5f47401c70 R13: ffffffffffffffff R14: 00007f5f47400000 R15: 0000000000078876 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_del_entry_valid_or_report+0x11f/0x1b0 lib/list_debug.c:62 Code: 5b 2e 8b e8 c3 d4 03 fd 0f 0b 48 89 ca 48 c7 c7 80 5b 2e 8b e8 b2 d4 03 fd 0f 0b 48 89 c2 48 c7 c7 e0 5b 2e 8b e8 a1 d4 03 fd <0f> 0b 48 89 d1 48 c7 c7 60 5c 2e 8b 48 89 c2 e8 8d d4 03 fd 0f 0b RSP: 0018:ffffc90003447e08 EFLAGS: 00010086 RAX: 000000000000006d RBX: ffff888020c84000 RCX: ffffffff816a83f9 RDX: 0000000000000000 RSI: ffffffff816b1882 RDI: 0000000000000005 RBP: ffff888064cf96c0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000001 R11: 6c65645f7473696c R12: 0000000000000246 R13: ffff888020c85048 R14: ffff888020c85008 R15: ffff888020c85050 FS: 0000555556e37480(0000) GS:ffff88806b900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 000000001c804000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400