BUG: corrupted list in io_poll_wake

19 views
Skip to first unread message

syzbot

unread,
Aug 30, 2020, 7:52:15 AM8/30/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e15cc541 Revert "binder: Prevent context manager from incr..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=10c89561900000
kernel config: https://syzkaller.appspot.com/x/.config?x=b5e85a4a81932633
dashboard link: https://syzkaller.appspot.com/bug?extid=fdccd3eede88cd48308a
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1627df61900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10e1768e900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+fdccd3...@syzkaller.appspotmail.com

list_add double add: new=ffff8881cde94278, prev=ffff8881cde4a2e8, next=ffff8881cde94278.
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:31!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 331 Comm: syz-executor286 Not tainted 5.4.61-syzkaller-00873-ge15cc541b749 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_add_valid+0x8a/0xc0 lib/list_debug.c:29
Code: 74 11 4d 39 f7 74 0c b0 01 5b 41 5c 41 5d 41 5e 41 5f c3 48 c7 c7 0e fb 98 84 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 d2 55 2e ff <0f> 0b 48 c7 c7 59 fa 98 84 4c 89 e6 4c 89 f1 31 c0 e8 bc 55 2e ff
RSP: 0018:ffff8881cde17850 EFLAGS: 00010046
RAX: 0000000000000058 RBX: ffff8881cde94280 RCX: ef6f7f00f5390d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881cde17970 R08: ffffffff812bef2e R09: ffffed103b705e00
R10: ffffed103b705e00 R11: 0000000000000000 R12: ffff8881cde4a2e8
R13: dffffc0000000000 R14: ffff8881cde94278 R15: ffff8881cde94278
FS: 00007f8aa3360700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8aa335fe78 CR3: 00000001ce836003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_add include/linux/list.h:60 [inline]
list_add include/linux/list.h:79 [inline]
io_queue_async_work fs/io_uring.c:520 [inline]
io_poll_wake+0x714/0xbb0 fs/io_uring.c:1864
__wake_up_common+0x27a/0x450 kernel/sched/wait.c:93
__wake_up_common_lock kernel/sched/wait.c:123 [inline]
__wake_up+0x145/0x210 kernel/sched/wait.c:142
wakeup_pipe_writers fs/splice.c:457 [inline]
splice_from_pipe_next+0x2a3/0x440 fs/splice.c:560
__splice_from_pipe+0xfa/0x870 fs/splice.c:622
splice_from_pipe fs/splice.c:659 [inline]
generic_splice_sendpage+0x184/0x210 fs/splice.c:829
do_splice_from fs/splice.c:848 [inline]
do_splice fs/splice.c:1156 [inline]
__do_sys_splice fs/splice.c:1433 [inline]
__se_sys_splice+0x7ee/0x1b70 fs/splice.c:1413
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x445c69
Code: e8 bc b7 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 ab 11 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f8aa335fd98 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00000000006dac78 RCX: 0000000000445c69
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00000000006dac70 R08: 000000000004ffe0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dac7c
R13: 00007ffe2aa5339f R14: 00007f8aa33609c0 R15: 20c49ba5e353f7cf
Modules linked in:
---[ end trace 27fc65eaca74939c ]---
RIP: 0010:__list_add_valid+0x8a/0xc0 lib/list_debug.c:29
Code: 74 11 4d 39 f7 74 0c b0 01 5b 41 5c 41 5d 41 5e 41 5f c3 48 c7 c7 0e fb 98 84 4c 89 fe 4c 89 e2 4c 89 f1 31 c0 e8 d2 55 2e ff <0f> 0b 48 c7 c7 59 fa 98 84 4c 89 e6 4c 89 f1 31 c0 e8 bc 55 2e ff
RSP: 0018:ffff8881cde17850 EFLAGS: 00010046
RAX: 0000000000000058 RBX: ffff8881cde94280 RCX: ef6f7f00f5390d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881cde17970 R08: ffffffff812bef2e R09: ffffed103b705e00
R10: ffffed103b705e00 R11: 0000000000000000 R12: ffff8881cde4a2e8
R13: dffffc0000000000 R14: ffff8881cde94278 R15: ffff8881cde94278
FS: 00007f8aa3360700(0000) GS:ffff8881db800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8aa335fe78 CR3: 00000001ce836003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Apr 16, 2023, 6:54:31 PM4/16/23
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages