general protection fault in io_prep_async_work

2 views
Skip to first unread message

syzbot

unread,
Jan 12, 2022, 8:37:18 PM1/12/22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d605f2f30d54 Merge 5.10.91 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=11e575ddb00000
kernel config: https://syzkaller.appspot.com/x/.config?x=21ff143efa71c71c
dashboard link: https://syzkaller.appspot.com/bug?extid=cf0bc6897d5343dfb9db
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

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

general protection fault, probably for non-canonical address 0xdffffc0000000014: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000a0-0x00000000000000a7]
CPU: 1 PID: 11359 Comm: syz-executor.5 Tainted: G W 5.10.91-syzkaller-00882-gd605f2f30d54 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:io_req_init_async fs/io_uring.c:1155 [inline]
RIP: 0010:io_prep_async_work+0x139/0xcd0 fs/io_uring.c:1435
Code: 00 02 00 49 be 00 00 00 00 00 fc ff df 43 8a 04 34 84 c0 0f 85 e4 09 00 00 41 89 1f 49 8d 9d a0 00 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 38 9a df ff 4c 8b 33 48 8b 45 b0
RSP: 0018:ffffc90002d2f180 EFLAGS: 00010206
RAX: 0000000000000014 RBX: 00000000000000a0 RCX: 0000000000000000
RDX: 0000000000000018 RSI: 0000000000000000 RDI: ffff88816196b718
RBP: ffffc90002d2f1f0 R08: dffffc0000000000 R09: ffff88816196b700
R10: ffffed102c32d6e3 R11: 0000000000000000 R12: 1ffff1102c32d6d3
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88816196b698
FS: 00007fc10c0fa700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc10c11b9d0 CR3: 0000000183ba2000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
io_prep_async_link fs/io_uring.c:1465 [inline]
io_queue_async_work fs/io_uring.c:1487 [inline]
io_rw_reissue fs/io_uring.c:2638 [inline]
__io_complete_rw+0xa70/0x1d00 fs/io_uring.c:2649
io_iopoll_queue fs/io_uring.c:2340 [inline]
io_iopoll_complete fs/io_uring.c:2386 [inline]
io_do_iopoll+0x21ca/0x23f0 fs/io_uring.c:2433
io_iopoll_try_reap_events+0x116/0x290 fs/io_uring.c:2472
__io_uring_cancel_task_requests fs/io_uring.c:8715 [inline]
io_uring_cancel_task_requests+0x26ad/0x2c50 fs/io_uring.c:8763
io_uring_flush+0x170/0x6d0 fs/io_uring.c:8926
filp_close+0xb0/0x150 fs/open.c:1319
close_files fs/file.c:401 [inline]
put_files_struct+0x1d4/0x350 fs/file.c:429
exit_files+0x80/0xa0 fs/file.c:458
copy_process+0x39ef/0x5340 kernel/fork.c:2400
kernel_clone+0x21f/0x9a0 kernel/fork.c:2510
__do_sys_clone3 kernel/fork.c:2787 [inline]
__se_sys_clone3+0x2e9/0x370 kernel/fork.c:2771
__x64_sys_clone3+0x5b/0x70 kernel/fork.c:2771
do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fc10cfa4eb9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc10c0fa168 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 00007fc10d0b8030 RCX: 00007fc10cfa4eb9
RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000500
RBP: 00007fc10cfff08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffde801c90f R14: 00007fc10c0fa300 R15: 0000000000022000
Modules linked in:
---[ end trace faac49235714001d ]---
RIP: 0010:io_req_init_async fs/io_uring.c:1155 [inline]
RIP: 0010:io_prep_async_work+0x139/0xcd0 fs/io_uring.c:1435
Code: 00 02 00 49 be 00 00 00 00 00 fc ff df 43 8a 04 34 84 c0 0f 85 e4 09 00 00 41 89 1f 49 8d 9d a0 00 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 38 9a df ff 4c 8b 33 48 8b 45 b0
RSP: 0018:ffffc90002d2f180 EFLAGS: 00010206
RAX: 0000000000000014 RBX: 00000000000000a0 RCX: 0000000000000000
RDX: 0000000000000018 RSI: 0000000000000000 RDI: ffff88816196b718
RBP: ffffc90002d2f1f0 R08: dffffc0000000000 R09: ffff88816196b700
R10: ffffed102c32d6e3 R11: 0000000000000000 R12: 1ffff1102c32d6d3
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff88816196b698
FS: 00007fc10c0fa700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8d1ffca718 CR3: 0000000183ba2000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 02 00 add (%rax),%al
2: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14
9: fc ff df
c: 43 8a 04 34 mov (%r12,%r14,1),%al
10: 84 c0 test %al,%al
12: 0f 85 e4 09 00 00 jne 0x9fc
18: 41 89 1f mov %ebx,(%r15)
1b: 49 8d 9d a0 00 00 00 lea 0xa0(%r13),%rbx
22: 48 89 d8 mov %rbx,%rax
25: 48 c1 e8 03 shr $0x3,%rax
* 29: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 48 89 df mov %rbx,%rdi
33: e8 38 9a df ff callq 0xffdf9a70
38: 4c 8b 33 mov (%rbx),%r14
3b: 48 8b 45 b0 mov -0x50(%rbp),%rax


---
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.
Reply all
Reply to author
Forward
0 new messages