list_add corruption. prev->next should be next (ffff8880250d85e8), but was ffff888052bcd048. (prev=ffff88807ae49048). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:34! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 17574 Comm: syz-executor.3 Not tainted 6.6.0-syzkaller-14263-gaea6bf908d73 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:__list_add_valid_or_report+0xe2/0xf0 lib/list_debug.c:32 Code: 8a 06 0f 0b 48 c7 c7 80 62 bd 8b 4c 89 e6 4c 89 f1 e8 b2 93 8a 06 0f 0b 48 c7 c7 00 63 bd 8b 4c 89 f6 4c 89 e1 e8 9e 93 8a 06 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 41 57 41 56 RSP: 0018:ffffc9000a41f650 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff8880250d85f0 RCX: f2e78fc86d57e500 RDX: ffffc9000a7d2000 RSI: 00000000000062c0 RDI: 00000000000062c1 RBP: ffffc9000a41f778 R08: ffffffff8171771c R09: 1ffff92001483e68 R10: dffffc0000000000 R11: fffff52001483e69 R12: ffff88807ae49048 R13: dffffc0000000000 R14: ffff8880250d85e8 R15: ffff8880532b1048 FS: 00007f4e333e86c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3c940c56be CR3: 0000000027285000 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+0x1af/0x430 drivers/ptp/ptp_chardev.c:122 posix_clock_open+0x155/0x1f0 kernel/time/posix-clock.c:134 chrdev_open+0x5ab/0x630 fs/char_dev.c:414 do_dentry_open+0x8fd/0x1590 fs/open.c:948 do_open fs/namei.c:3622 [inline] path_openat+0x2845/0x3280 fs/namei.c:3779 do_filp_open+0x234/0x490 fs/namei.c:3809 do_sys_openat2+0x13e/0x1d0 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+0x247/0x290 fs/open.c:1466 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:0x7f4e3267cae9 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:00007f4e333e80c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4e3279bf80 RCX: 00007f4e3267cae9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007f4e326c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f4e3279bf80 R15: 00007fff335e30f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid_or_report+0xe2/0xf0 lib/list_debug.c:32 Code: 8a 06 0f 0b 48 c7 c7 80 62 bd 8b 4c 89 e6 4c 89 f1 e8 b2 93 8a 06 0f 0b 48 c7 c7 00 63 bd 8b 4c 89 f6 4c 89 e1 e8 9e 93 8a 06 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 41 57 41 56 RSP: 0018:ffffc9000a41f650 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff8880250d85f0 RCX: f2e78fc86d57e500 RDX: ffffc9000a7d2000 RSI: 00000000000062c0 RDI: 00000000000062c1 RBP: ffffc9000a41f778 R08: ffffffff8171771c R09: 1ffff92001483e68 R10: dffffc0000000000 R11: fffff52001483e69 R12: ffff88807ae49048 R13: dffffc0000000000 R14: ffff8880250d85e8 R15: ffff8880532b1048 FS: 00007f4e333e86c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110f2f4b12 CR3: 0000000027285000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400