list_add corruption. next->prev should be prev (ffff888073a7d5a0), but was ffff888011fb31c0. (next=ffff88801f4f9f30). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:23! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3618 Comm: syz-executor293 Tainted: G W 5.17.0-syzkaller-02172-g6b1f86f8e9c7 #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 4c 06 8a e8 f6 32 05 00 49 c7 c7 f4 ff ff ff e9 2d 42 ca fa 4c 89 e1 48 c7 c7 e0 51 06 8a e8 18 65 f1 ff <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 20 53 06 8a e8 01 65 f1 RSP: 0018:ffffc90002c8f930 EFLAGS: 00010082 RAX: 0000000000000075 RBX: ffff88801f4f92b0 RCX: 0000000000000000 RDX: ffff88801ca48000 RSI: ffffffff815fd6b8 RDI: fffff52000591f18 RBP: ffff88801f4f92b0 R08: 0000000000000075 R09: 0000000000000000 R10: ffffffff815f7d9e R11: 0000000000000000 R12: ffff88801f4f9f30 R13: ffff88801f4f9298 R14: 0000000000000246 R15: ffff888073a7d560 FS: 00005555571ee300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f56a8da5130 CR3: 000000007a47a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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:6131 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:6165 io_arm_poll_handler+0x42c/0x940 fs/io_uring.c:6257 io_queue_sqe_arm_apoll+0x6d/0x430 fs/io_uring.c:7499 __io_queue_sqe fs/io_uring.c:7541 [inline] io_queue_sqe fs/io_uring.c:7568 [inline] io_submit_sqe fs/io_uring.c:7776 [inline] io_submit_sqes+0x7dda/0x9310 fs/io_uring.c:7882 __do_sys_io_uring_enter+0x9f1/0x1520 fs/io_uring.c:10924 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:0x7f56a8d33fc9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd5f8a7a48 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f56a8d33fc9 RDX: 0000000000000000 RSI: 0000000000000302 RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000008bc3 R13: 00007ffd5f8a7a6c R14: 00007ffd5f8a7a80 R15: 00007ffd5f8a7a70 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 4c 06 8a e8 f6 32 05 00 49 c7 c7 f4 ff ff ff e9 2d 42 ca fa 4c 89 e1 48 c7 c7 e0 51 06 8a e8 18 65 f1 ff <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 20 53 06 8a e8 01 65 f1 RSP: 0018:ffffc90002c8f930 EFLAGS: 00010082 RAX: 0000000000000075 RBX: ffff88801f4f92b0 RCX: 0000000000000000 RDX: ffff88801ca48000 RSI: ffffffff815fd6b8 RDI: fffff52000591f18 RBP: ffff88801f4f92b0 R08: 0000000000000075 R09: 0000000000000000 R10: ffffffff815f7d9e R11: 0000000000000000 R12: ffff88801f4f9f30 R13: ffff88801f4f9298 R14: 0000000000000246 R15: ffff888073a7d560 FS: 00005555571ee300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f56a8da5130 CR3: 000000007a47a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400