list_add corruption. next->prev should be prev (ffff88807adf15a0), but was ffff8880189d15b0. (next=ffff8880189d1f30). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:23! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10375 Comm: syz-executor.0 Tainted: G W 5.17.0-syzkaller-01442-gb47d5a4f6b8d #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 80 4e 06 8a e8 e0 32 05 00 49 c7 c7 f4 ff ff ff e9 b0 ac cb fa 4c 89 e1 48 c7 c7 a0 53 06 8a e8 ee 68 f1 ff <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 e0 54 06 8a e8 d7 68 f1 RSP: 0018:ffffc9000aa37910 EFLAGS: 00010086 RAX: 0000000000000075 RBX: ffff8880585999b0 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff81601d48 RDI: fffff52001546f14 RBP: ffff8880585999b0 R08: 0000000000000075 R09: 0000000000000000 R10: ffffffff815fc3de R11: 0000000000000000 R12: ffff8880189d1f30 R13: ffff888058599998 R14: 0000000000000246 R15: ffff88807adf1560 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0063) knlGS:00000000f589eb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002ca28000 CR3: 0000000077a66000 CR4: 00000000003506f0 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:24 __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_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf6ea4549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f589e5cc EFLAGS: 00000296 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000000002fb RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 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 80 4e 06 8a e8 e0 32 05 00 49 c7 c7 f4 ff ff ff e9 b0 ac cb fa 4c 89 e1 48 c7 c7 a0 53 06 8a e8 ee 68 f1 ff <0f> 0b 48 89 f2 4c 89 e1 48 89 ee 48 c7 c7 e0 54 06 8a e8 d7 68 f1 RSP: 0018:ffffc9000aa37910 EFLAGS: 00010086 RAX: 0000000000000075 RBX: ffff8880585999b0 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff81601d48 RDI: fffff52001546f14 RBP: ffff8880585999b0 R08: 0000000000000075 R09: 0000000000000000 R10: ffffffff815fc3de R11: 0000000000000000 R12: ffff8880189d1f30 R13: ffff888058599998 R14: 0000000000000246 R15: ffff88807adf1560 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0063) knlGS:00000000f589eb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002ca28000 CR3: 0000000077a66000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi