list_add corruption. prev->next should be next (ffff8881052515e0), but was 0000000000000000. (prev=ffff88810e689048). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:32! invalid opcode: 0000 [#1] PREEMPT SMP CPU: 0 PID: 4441 Comm: syz-executor.5 Not tainted 6.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:__list_add_valid_or_report+0x74/0x90 lib/list_debug.c:32 Code: b9 ff 0f 0b 48 89 c1 48 c7 c7 d8 c0 16 82 e8 73 f1 b9 ff 0f 0b 48 89 d1 48 89 c6 4c 89 c2 48 c7 c7 30 c1 16 82 e8 5c f1 b9 ff <0f> 0b 48 89 f2 48 89 c1 48 89 fe 48 c7 c7 88 c1 16 82 e8 45 f1 b9 RSP: 0018:ffffc90001e0bc58 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88810630c000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff820df580 RDI: 00000000ffffffff RBP: ffff88810be75e30 R08: 0000000000000000 R09: ffff888106368a50 R10: 0000000000080000 R11: 0000000000000004 R12: ffff888105251000 R13: ffff88810e689048 R14: ffff88810630d048 R15: ffff8881052515e0 FS: 00007f6085f286c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f60864c6988 CR3: 00000001063de000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add_valid include/linux/list.h:88 [inline] __list_add include/linux/list.h:150 [inline] list_add_tail include/linux/list.h:183 [inline] ptp_open+0x76/0xb0 drivers/ptp/ptp_chardev.c:114 posix_clock_open+0x63/0xa0 kernel/time/posix-clock.c:134 chrdev_open+0xc6/0x240 fs/char_dev.c:414 do_dentry_open+0x200/0x500 fs/open.c:929 do_open fs/namei.c:3639 [inline] path_openat+0x960/0xc30 fs/namei.c:3796 do_filp_open+0xae/0x150 fs/namei.c:3823 do_sys_openat2+0xa2/0xd0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x69/0x90 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f60863a5ae9 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:00007f6085f280c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f60864c4f80 RCX: 00007f60863a5ae9 RDX: 0000000000000000 RSI: 0000000020000300 RDI: ffffffffffffff9c RBP: 00007f60863f147a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f60864c4f80 R15: 00007ffddce878a8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid_or_report+0x74/0x90 lib/list_debug.c:32 Code: b9 ff 0f 0b 48 89 c1 48 c7 c7 d8 c0 16 82 e8 73 f1 b9 ff 0f 0b 48 89 d1 48 89 c6 4c 89 c2 48 c7 c7 30 c1 16 82 e8 5c f1 b9 ff <0f> 0b 48 89 f2 48 89 c1 48 89 fe 48 c7 c7 88 c1 16 82 e8 45 f1 b9 RSP: 0018:ffffc90001e0bc58 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88810630c000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff820df580 RDI: 00000000ffffffff RBP: ffff88810be75e30 R08: 0000000000000000 R09: ffff888106368a50 R10: 0000000000080000 R11: 0000000000000004 R12: ffff888105251000 R13: ffff88810e689048 R14: ffff88810630d048 R15: ffff8881052515e0 FS: 00007f6085f286c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f60864c6988 CR3: 00000001063de000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400