syzbot


general protection fault in io_commit_cqring (2)

Status: fixed on 2021/11/10 00:50
Subsystems: fs io-uring
[Documentation on labels]
Reported-by: syzbot+0e905eb8228070c457a0@syzkaller.appspotmail.com
Fix commit: 51520426f4bc io_uring: handle setup-failed ctx in kill_timeouts
First crash: 1286d, last: 1272d
Cause bisection: introduced by (bisect log) :
commit f9d6725bf44a5b9412b5da07e3467100fe2af236
Author: Alexander Lobakin <alobakin@pm.me>
Date: Sat Feb 13 14:11:50 2021 +0000

  skbuff: use __build_skb_around() in __alloc_skb()

Crash: WARNING: ODEBUG bug in netdev_run_todo (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 5.12] io_uring: handle setup-failed ctx in kill_timeouts 2 (2) 2021/03/29 12:49
[syzbot] general protection fault in io_commit_cqring (2) 0 (2) 2021/03/29 11:28
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in io_commit_cqring fs C done 3 1787d 1787d 15/28 fixed on 2019/12/13 00:31

Sample crash report:
RBP: 00007ffe05a7c220 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 431bde82d7b634db R14: 00000000004ae018 R15: 0000000000400488
general protection fault, probably for non-canonical address 0xdffffc0000000018: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000c0-0x00000000000000c7]
CPU: 1 PID: 8400 Comm: syz-executor278 Not tainted 5.12.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:io_commit_cqring+0x37f/0xc10 fs/io_uring.c:1318
Code: 74 08 3c 03 0f 8e fa 05 00 00 48 8d bb c0 00 00 00 41 8b ac 24 00 06 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 b7
RSP: 0018:ffffc90001c1fc78 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000018 RSI: ffffffff81db8861 RDI: 00000000000000c0
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52000383f8f R11: 0000000000000000 R12: ffff888018166000
R13: 0000000000000000 R14: 1ffff92000383fab R15: ffff8880181660c0
FS:  00000000006c7300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd3db1886c0 CR3: 0000000021099000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 io_kill_timeouts+0x2b5/0x320 fs/io_uring.c:8606
 io_ring_ctx_wait_and_kill+0x1da/0x400 fs/io_uring.c:8629
 io_uring_create fs/io_uring.c:9572 [inline]
 io_uring_setup+0x10da/0x2ae0 fs/io_uring.c:9599
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43ffd9
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:00007ffe05a7c208 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 000000000043ffd9
RDX: 0000000000000020 RSI: 0000000020000080 RDI: 00000000000054ca
RBP: 00007ffe05a7c220 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 431bde82d7b634db R14: 00000000004ae018 R15: 0000000000400488
Modules linked in:
---[ end trace a0b1f0cfec9b9808 ]---
RIP: 0010:io_commit_cqring+0x37f/0xc10 fs/io_uring.c:1318
Code: 74 08 3c 03 0f 8e fa 05 00 00 48 8d bb c0 00 00 00 41 8b ac 24 00 06 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 b7
RSP: 0018:ffffc90001c1fc78 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000018 RSI: ffffffff81db8861 RDI: 00000000000000c0
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003
R10: fffff52000383f8f R11: 0000000000000000 R12: ffff888018166000
R13: 0000000000000000 R14: 1ffff92000383fab R15: ffff8880181660c0
FS:  00000000006c7300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd3db1886c0 CR3: 0000000021099000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (82):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/29 02:03 upstream 81b1d39fd39a a8529b82 .config console log report syz C ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/03 01:08 upstream 1678e493d530 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/02 23:25 upstream 1678e493d530 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/02 20:31 upstream 1678e493d530 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/02 17:31 upstream 1678e493d530 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/02 15:02 upstream 1678e493d530 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/02 05:29 upstream ffd9fb546d49 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/02 03:49 upstream ffd9fb546d49 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/01 23:14 upstream ffd9fb546d49 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/01 13:20 upstream d19cc4bfbff1 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/01 07:39 upstream d19cc4bfbff1 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/04/01 00:20 upstream 5e46d1b78a03 6a81331a .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in io_commit_cqring
2021/03/31 21:32 upstream 5e46d1b78a03 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/03/31 20:16 upstream 5e46d1b78a03 6a81331a .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in io_commit_cqring
2021/03/31 09:20 upstream 2bb25b3a748a 6a81331a .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in io_commit_cqring
2021/03/31 02:00 upstream 2bb25b3a748a 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/03/31 00:38 upstream 2bb25b3a748a 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/03/30 20:05 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/03/30 11:45 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in io_commit_cqring
2021/03/30 11:36 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce-root general protection fault in io_commit_cqring
2021/03/30 09:10 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in io_commit_cqring
2021/03/30 06:35 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in io_commit_cqring
2021/03/30 06:13 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce-root general protection fault in io_commit_cqring
2021/03/30 04:45 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce-root general protection fault in io_commit_cqring
2021/03/30 00:22 upstream 1e43c377a79f 6a81331a .config console log report info ci-qemu-upstream general protection fault in io_commit_cqring
2021/03/29 23:50 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce general protection fault in io_commit_cqring
2021/03/29 21:30 upstream 1e43c377a79f 6a81331a .config console log report info ci-qemu-upstream general protection fault in io_commit_cqring
2021/03/28 22:25 upstream 36a14638f7c0 a8529b82 .config console log report info ci-qemu-upstream general protection fault in io_commit_cqring
2021/03/31 03:42 upstream 2bb25b3a748a 6a81331a .config console log report info ci-upstream-kasan-gce-386 general protection fault in io_commit_cqring
2021/03/30 20:39 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce-386 general protection fault in io_commit_cqring
2021/03/30 08:06 upstream 1e43c377a79f 6a81331a .config console log report info ci-upstream-kasan-gce-386 general protection fault in io_commit_cqring
2021/03/30 02:08 upstream 1e43c377a79f 6a81331a .config console log report info ci-qemu-upstream-386 general protection fault in io_commit_cqring
2021/03/30 01:05 upstream 1e43c377a79f 6a81331a .config console log report info ci-qemu-upstream-386 general protection fault in io_commit_cqring
2021/03/30 00:50 upstream 1e43c377a79f 6a81331a .config console log report info ci-qemu-upstream-386 general protection fault in io_commit_cqring
2021/03/28 23:22 upstream 36a14638f7c0 a8529b82 .config console log report info ci-qemu-upstream-386 general protection fault in io_commit_cqring
2021/04/01 16:04 upstream d19cc4bfbff1 6a81331a .config console log report info ci-qemu2-arm64-compat KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/12 00:10 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1adbc2941eee bfeda1b1 .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/11 06:42 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1adbc2941eee bfeda1b1 .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/11 04:40 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1adbc2941eee bfeda1b1 .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/10 13:19 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1adbc2941eee bfeda1b1 .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/10 00:35 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/09 21:22 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/09 13:34 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/09 05:35 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/09 02:21 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/08 21:12 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/08 19:44 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/08 11:27 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/08 02:54 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/07 22:26 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/07 10:36 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/07 06:36 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/07 04:13 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/05 08:28 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
2021/04/03 17:05 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes b2b3d18fc20e 6a81331a .config console log report info ci-qemu2-riscv64 KASAN: null-ptr-deref Write in io_commit_cqring
* Struck through repros no longer work on HEAD.