list_add corruption. next->prev should be prev (ffff888029489048), but was ffff88814379d048. (next=ffff888024f725e8). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:29! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 17800 Comm: syz-executor.2 Not tainted 6.6.0-syzkaller-12401-g8f6f76a6a29f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:__list_add_valid_or_report+0xa2/0x100 lib/list_debug.c:29 Code: c7 c7 00 73 2e 8b e8 5d 01 04 fd 0f 0b 48 c7 c7 a0 73 2e 8b e8 4f 01 04 fd 0f 0b 48 89 d9 48 c7 c7 00 74 2e 8b e8 3e 01 04 fd <0f> 0b 48 89 f1 48 c7 c7 80 74 2e 8b 48 89 de e8 2a 01 04 fd 0f 0b RSP: 0018:ffffc90014fc7898 EFLAGS: 00010286 RAX: 0000000000000075 RBX: ffff888024f725e8 RCX: ffffc9000a3c5000 RDX: 0000000000000000 RSI: ffffffff816c1ef2 RDI: 0000000000000005 RBP: ffff8880560e5048 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000001 R12: ffff888024f72000 R13: ffffc90014fc7900 R14: ffff888029489048 R15: ffff8880560e5048 FS: 00007f8133fcc6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31426000 CR3: 0000000027e42000 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+0x1c5/0x4f0 drivers/ptp/ptp_chardev.c:122 posix_clock_open+0x17e/0x240 kernel/time/posix-clock.c:134 chrdev_open+0x26d/0x6e0 fs/char_dev.c:414 do_dentry_open+0x8d4/0x18d0 fs/open.c:948 do_open fs/namei.c:3622 [inline] path_openat+0x1d4e/0x2c40 fs/namei.c:3779 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1466 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:0x7f813327cae9 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:00007f8133fcc0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f813339bf80 RCX: 00007f813327cae9 RDX: 0000000000000200 RSI: 00000000200004c0 RDI: ffffffffffffff9c RBP: 00007f81332c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f813339bf80 R15: 00007f81334bfa48 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid_or_report+0xa2/0x100 lib/list_debug.c:29 Code: c7 c7 00 73 2e 8b e8 5d 01 04 fd 0f 0b 48 c7 c7 a0 73 2e 8b e8 4f 01 04 fd 0f 0b 48 89 d9 48 c7 c7 00 74 2e 8b e8 3e 01 04 fd <0f> 0b 48 89 f1 48 c7 c7 80 74 2e 8b 48 89 de e8 2a 01 04 fd 0f 0b RSP: 0018:ffffc90014fc7898 EFLAGS: 00010286 RAX: 0000000000000075 RBX: ffff888024f725e8 RCX: ffffc9000a3c5000 RDX: 0000000000000000 RSI: ffffffff816c1ef2 RDI: 0000000000000005 RBP: ffff8880560e5048 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000001 R12: ffff888024f72000 R13: ffffc90014fc7900 R14: ffff888029489048 R15: ffff8880560e5048 FS: 00007f8133fcc6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe40ad75198 CR3: 0000000027e42000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400