syzbot


WARNING in io_rsrc_node_switch

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+a4715dd4b7c866136f79@syzkaller.appspotmail.com
Fix commit: 47b228ce6f66 io_uring: fix unchecked error in switch_start()
First crash: 427d, last: 418d

Cause bisection: introduced by (bisect log) :
commit eae071c9b4cefbcc3f985c5abf9a6e32c1608ca9
Author: Pavel Begunkov <asml.silence@gmail.com>
Date: Sun Apr 25 13:32:24 2021 +0000

  io_uring: prepare fixed rw for dynanic buffers

Crash: WARNING in io_rsrc_node_switch (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/04/29 11:49 16m asml.silence@gmail.com https://github.com/isilence/linux.git syz_test4 OK

Sample crash report:
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440a49
RDX: 0000000000000010 RSI: 00000000200002c0 RDI: 0000000000000182
RBP: 00007fff0b88f050 R08: 0000000000000001 R09: 00007fff0b88f038
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007fff0b88f03a R14: 00000000004b74b0 R15: 000000000000000c
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8397 at fs/io_uring.c:7081 io_rsrc_node_switch+0x2a5/0x390 fs/io_uring.c:7081
Modules linked in:
CPU: 0 PID: 8397 Comm: syz-executor469 Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:io_rsrc_node_switch+0x2a5/0x390 fs/io_uring.c:7081
Code: ff 4d 85 e4 74 a4 48 83 c4 20 5b 5d 41 5c 41 5d 41 5e 41 5f e9 fc 00 99 ff e8 f7 00 99 ff 0f 0b e9 ee fd ff ff e8 eb 00 99 ff <0f> 0b e9 9d fd ff ff 4c 89 f7 e8 7c e0 dc ff eb 8b 4c 89 ef e8 72
RSP: 0018:ffffc9000164fd90 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880196fe000 RCX: 0000000000000000
RDX: ffff88801c7a1c40 RSI: ffffffff81db5d25 RDI: ffff8880196fe000
RBP: 0000000000000000 R08: 0000000000000dc0 R09: ffffffff8c0b37d3
R10: fffffbfff18166fa R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880196fe808 R15: 0000000000000000
FS:  0000000001485300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200002c4 CR3: 00000000160b2000 CR4: 0000000000350ef0
Call Trace:
 io_uring_create fs/io_uring.c:9611 [inline]
 io_uring_setup+0xf75/0x2a80 fs/io_uring.c:9689
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x440a49
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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:00007fff0b88f008 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000440a49
RDX: 0000000000000010 RSI: 00000000200002c0 RDI: 0000000000000182
RBP: 00007fff0b88f050 R08: 0000000000000001 R09: 00007fff0b88f038
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003
R13: 00007fff0b88f03a R14: 00000000004b74b0 R15: 000000000000000c

Crashes (174):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/04/29 10:31 upstream d72cd4ad4174 77e2b668 .config log report syz C WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/08 18:06 upstream d2b6f8a17919 bc5434be .config log report syz WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/07 08:29 upstream d2b6f8a17919 06585184 .config log report syz WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/06 05:46 upstream d2b6f8a17919 06c27ff5 .config log report syz WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/02 05:15 upstream d2b6f8a17919 77e2b668 .config log report syz WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/04/30 17:47 upstream d2b6f8a17919 77e2b668 .config log report syz WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/08 16:25 upstream d2b6f8a17919 bc5434be .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/08 12:40 upstream d2b6f8a17919 bc5434be .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/08 11:35 upstream d2b6f8a17919 bc5434be .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/08 06:15 upstream d2b6f8a17919 bc5434be .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-selinux-root 2021/05/08 03:38 upstream d2b6f8a17919 bc5434be .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/08 02:32 upstream d2b6f8a17919 bc5434be .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/07 19:48 upstream d2b6f8a17919 f6da8120 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/07 17:38 upstream d2b6f8a17919 f6da8120 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/07 15:23 upstream d2b6f8a17919 f6da8120 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-selinux-root 2021/05/07 11:43 upstream d2b6f8a17919 f6da8120 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/07 08:17 upstream d2b6f8a17919 06585184 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/07 07:10 upstream d2b6f8a17919 06585184 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-selinux-root 2021/05/07 05:41 upstream d2b6f8a17919 06585184 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/06 22:12 upstream d2b6f8a17919 06585184 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/06 13:31 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/06 12:19 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/06 11:18 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/06 09:44 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/06 09:13 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/06 08:05 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-selinux-root 2021/05/06 05:44 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/06 03:25 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-selinux-root 2021/05/05 22:59 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/05 20:02 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/05 18:15 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/05 16:57 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/05 15:25 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/05 13:56 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/05 12:25 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/05 04:42 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/05 00:56 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/04 20:33 upstream d2b6f8a17919 09efdd63 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/04 08:13 upstream d2b6f8a17919 09efdd63 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/04 07:12 upstream d2b6f8a17919 09efdd63 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/04 03:10 upstream d2b6f8a17919 ad61f371 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/04 01:34 upstream d2b6f8a17919 ad61f371 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/05/04 00:32 upstream d2b6f8a17919 ad61f371 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/03 23:03 upstream d2b6f8a17919 ad61f371 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/03 20:47 upstream d2b6f8a17919 ad61f371 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-selinux-root 2021/05/03 19:18 upstream d2b6f8a17919 ad61f371 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/03 13:40 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/03 12:00 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce 2021/05/03 10:53 upstream d2b6f8a17919 77e2b668 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-root 2021/04/29 08:16 upstream d72cd4ad4174 77e2b668 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-386 2021/05/05 08:50 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-386 2021/05/05 06:13 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-upstream-kasan-gce-386 2021/05/04 23:04 upstream d2b6f8a17919 06c27ff5 .config log report info WARNING in io_rsrc_node_switch
ci-qemu2-arm64-mte 2021/05/02 15:06 upstream d72cd4ad4174 77e2b668 .config log report info WARNING in io_rsrc_node_switch