list_add corruption. next->prev should be prev (ffff88801e9df5a0), but was ffff888058397730. (next=ffff888058397430). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:25! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6221 Comm: syz-executor.0 Tainted: G W 5.17.0-syzkaller-12817-gcffb2b72d3ed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23 Code: 80 b8 f6 8a 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 ce 64 43 fd 0f 0b 48 c7 c7 40 b7 f6 8a 4c 89 e6 4c 89 f1 31 c0 e8 b8 64 43 fd <0f> 0b 48 c7 c7 00 b8 f6 8a 4c 89 f6 4c 89 e1 31 c0 e8 a2 64 43 fd RSP: 0018:ffffc900150276f0 EFLAGS: 00010046 RAX: 0000000000000075 RBX: ffff888058397438 RCX: ff2c32ce37aa5400 RDX: ffffc90004ae2000 RSI: 0000000000018ad7 RDI: 0000000000018ad8 RBP: ffff888058397430 R08: ffffffff816b4852 R09: ffffed1017346801 R10: ffffed1017346801 R11: 0000000000000000 R12: ffff88801e9df5a0 R13: dffffc0000000000 R14: ffff888058397430 R15: ffff88805786d730 FS: 00007fe6723fe700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdec578b718 CR3: 0000000075774000 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+0xc4/0x260 kernel/sched/wait.c:23 poll_wait include/linux/poll.h:49 [inline] n_tty_poll+0x68/0x790 drivers/tty/n_tty.c:2322 tty_poll+0x109/0x200 drivers/tty/tty_io.c:2212 vfs_poll include/linux/poll.h:88 [inline] __io_arm_poll_handler+0x307/0xe20 fs/io_uring.c:6164 io_arm_poll_handler+0x4ab/0x710 fs/io_uring.c:6256 io_queue_sqe_arm_apoll fs/io_uring.c:7498 [inline] __io_queue_sqe+0x23d/0x10b0 fs/io_uring.c:7540 io_queue_sqe fs/io_uring.c:7567 [inline] io_submit_sqe fs/io_uring.c:7775 [inline] io_submit_sqes+0x12da/0xbb40 fs/io_uring.c:7881 __do_sys_io_uring_enter fs/io_uring.c:10923 [inline] __se_sys_io_uring_enter+0x31f/0x2f00 fs/io_uring.c:10849 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x50 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fe673489049 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:00007fe6723fe168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007fe67359c030 RCX: 00007fe673489049 RDX: 0000000000001bf9 RSI: 00000000000002fb RDI: 0000000000000005 RBP: 00007fe6734e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc21e0e24f R14: 00007fe6723fe300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid+0xa0/0xc0 lib/list_debug.c:23 Code: 80 b8 f6 8a 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 ce 64 43 fd 0f 0b 48 c7 c7 40 b7 f6 8a 4c 89 e6 4c 89 f1 31 c0 e8 b8 64 43 fd <0f> 0b 48 c7 c7 00 b8 f6 8a 4c 89 f6 4c 89 e1 31 c0 e8 a2 64 43 fd RSP: 0018:ffffc900150276f0 EFLAGS: 00010046 RAX: 0000000000000075 RBX: ffff888058397438 RCX: ff2c32ce37aa5400 RDX: ffffc90004ae2000 RSI: 0000000000018ad7 RDI: 0000000000018ad8 RBP: ffff888058397430 R08: ffffffff816b4852 R09: ffffed1017346801 R10: ffffed1017346801 R11: 0000000000000000 R12: ffff88801e9df5a0 R13: dffffc0000000000 R14: ffff888058397430 R15: ffff88805786d730 FS: 00007fe6723fe700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdec578b718 CR3: 0000000075774000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400