list_add corruption. next->prev should be prev (ffff8880234385a0), but was ffff88807718f3b0. (next=ffff88807f6bccb0). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:23! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 4340 Comm: syz-executor.2 Tainted: G W 5.17.0-syzkaller-11138-gf022814633e1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid.cold+0xf/0x3c lib/list_debug.c:23 Code: 48 89 ef 48 c7 c6 c0 8c 26 8a e8 ad 19 05 00 49 c7 c7 f4 ff ff ff e9 8c 57 c6 fa 4c 89 e1 48 c7 c7 e0 91 26 8a e8 d3 4e f1 ff <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 20 93 26 8a e8 bc 4e f1 RSP: 0018:ffffc900142af930 EFLAGS: 00010082 RAX: 0000000000000075 RBX: ffff888059277cb0 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff816015a8 RDI: fffff52002855f18 RBP: ffff888059277cb0 R08: 0000000000000075 R09: 0000000000000000 R10: ffffffff815fbf7e R11: 0000000000000000 R12: ffff88807f6bccb0 R13: ffff888059277c98 R14: 0000000000000246 R15: ffff888023438560 FS: 00007ffa40688700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556283708 CR3: 0000000050aa0000 CR4: 0000000000350ee0 Call Trace: __list_add include/linux/list.h:69 [inline] list_add include/linux/list.h:88 [inline] __add_wait_queue include/linux/wait.h:181 [inline] add_wait_queue+0xfa/0x260 kernel/sched/wait.c:23 __io_queue_proc+0x18c/0x6f0 fs/io_uring.c:6130 poll_wait include/linux/poll.h:49 [inline] n_tty_poll+0x76/0x8a0 drivers/tty/n_tty.c:2322 tty_poll+0x139/0x1b0 drivers/tty/tty_io.c:2212 vfs_poll include/linux/poll.h:88 [inline] __io_arm_poll_handler+0x397/0xc00 fs/io_uring.c:6164 io_arm_poll_handler+0x42c/0x940 fs/io_uring.c:6256 io_queue_sqe_arm_apoll+0x6d/0x430 fs/io_uring.c:7498 __io_queue_sqe fs/io_uring.c:7540 [inline] io_queue_sqe fs/io_uring.c:7567 [inline] io_submit_sqe fs/io_uring.c:7775 [inline] io_submit_sqes+0x7cd3/0x91e0 fs/io_uring.c:7881 __do_sys_io_uring_enter+0x9f1/0x1520 fs/io_uring.c:10923 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7ffa3f489049 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffa40688168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007ffa3f59bf60 RCX: 00007ffa3f489049 RDX: 0000000000000000 RSI: 00000000000002ff RDI: 0000000000000005 RBP: 00007ffa3f4e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcbd21cb2f R14: 00007ffa40688300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid.cold+0xf/0x3c lib/list_debug.c:23 Code: 48 89 ef 48 c7 c6 c0 8c 26 8a e8 ad 19 05 00 49 c7 c7 f4 ff ff ff e9 8c 57 c6 fa 4c 89 e1 48 c7 c7 e0 91 26 8a e8 d3 4e f1 ff <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 20 93 26 8a e8 bc 4e f1 RSP: 0018:ffffc900142af930 EFLAGS: 00010082 RAX: 0000000000000075 RBX: ffff888059277cb0 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff816015a8 RDI: fffff52002855f18 RBP: ffff888059277cb0 R08: 0000000000000075 R09: 0000000000000000 R10: ffffffff815fbf7e R11: 0000000000000000 R12: ffff88807f6bccb0 R13: ffff888059277c98 R14: 0000000000000246 R15: ffff888023438560 FS: 00007ffa40688700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556283708 CR3: 0000000050aa0000 CR4: 0000000000350ee0