syzbot


WARNING in io_uring_setup

Status: fixed on 2019/05/27 12:48
Reported-by: syzbot+cd714a07c6de2bc34293@syzkaller.appspotmail.com
Fix commit: 917257daa0fe io_uring: only test SQPOLL cpu after we've verified it
First crash: 2037d, last: 2017d
Cause bisection: introduced by (bisect log) :
commit 6c271ce2f1d572f7fa225700a13cfe7ced492434
Author: Jens Axboe <axboe@kernel.dk>
Date: Thu Jan 10 18:22:30 2019 +0000

  io_uring: add submission polling

Crash: WARNING in io_uring_setup (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] io_uring: fix SQPOLL cpu validation 2 (2) 2019/04/30 16:20
WARNING in io_uring_setup 3 (4) 2019/04/29 10:54
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in io_uring_setup (2) fs io-uring C done 40 1280d 1290d 20/28 fixed on 2021/11/10 00:50

Sample crash report:
WARNING: CPU: 0 PID: 8200 at include/linux/cpumask.h:121 cpu_max_bits_warn include/linux/cpumask.h:121 [inline]
WARNING: CPU: 0 PID: 8200 at include/linux/cpumask.h:121 cpumask_check include/linux/cpumask.h:128 [inline]
WARNING: CPU: 0 PID: 8200 at include/linux/cpumask.h:121 cpumask_test_cpu include/linux/cpumask.h:344 [inline]
WARNING: CPU: 0 PID: 8200 at include/linux/cpumask.h:121 io_sq_offload_start fs/io_uring.c:2244 [inline]
WARNING: CPU: 0 PID: 8200 at include/linux/cpumask.h:121 io_uring_create fs/io_uring.c:2855 [inline]
WARNING: CPU: 0 PID: 8200 at include/linux/cpumask.h:121 io_uring_setup+0x13cd/0x1a30 fs/io_uring.c:2907
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 8200 Comm: syz-executor618 Not tainted 5.1.0-rc5 #68
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x2cb/0x65c kernel/panic.c:214
 __warn.cold+0x20/0x45 kernel/panic.c:571
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973
RIP: 0010:cpu_max_bits_warn include/linux/cpumask.h:121 [inline]
RIP: 0010:cpumask_check include/linux/cpumask.h:128 [inline]
RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:344 [inline]
RIP: 0010:io_sq_offload_start fs/io_uring.c:2244 [inline]
RIP: 0010:io_uring_create fs/io_uring.c:2855 [inline]
RIP: 0010:io_uring_setup+0x13cd/0x1a30 fs/io_uring.c:2907
Code: 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 84 18 fe ff ff 48 8b bd e8 fe ff ff e8 2d 80 e0 ff e9 07 fe ff ff e8 73 70 a8 ff <0f> 0b e9 bc f8 ff ff e8 67 70 a8 ff 49 8d 84 24 88 00 00 00 48 89
RSP: 0018:ffff88808eb5fdc0 EFLAGS: 00010293
RAX: ffff888094dc8280 RBX: 00000000fffffffe RCX: ffffffff81c814f7
RDX: 0000000000000000 RSI: ffffffff81c81c3d RDI: 0000000000000005
RBP: ffff88808eb5fef0 R08: ffff888094dc8280 R09: ffffed101226a89c
R10: ffffed101226a89b R11: ffff8880913544df R12: ffff88808e38c4c0
R13: ffff88808eb5fec8 R14: ffff88808e38c550 R15: ffff88808e38c514
 __do_sys_io_uring_setup fs/io_uring.c:2920 [inline]
 __se_sys_io_uring_setup fs/io_uring.c:2917 [inline]
 __x64_sys_io_uring_setup+0x54/0x80 fs/io_uring.c:2917
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440239
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe3a7ff708 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440239
RDX: 0000000000400b60 RSI: 0000000020000040 RDI: 000000000000014a
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000401ac0
R13: 0000000000401b50 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3601):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/15 11:44 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/04/15 11:43 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/04/15 11:42 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce-root
2019/04/15 11:26 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce
2019/04/15 09:35 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce-root
2019/04/15 09:34 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/04/15 09:34 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/04/15 09:17 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce
2019/04/13 02:31 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/04/12 23:39 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/04/12 23:23 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-root
2019/04/12 23:06 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-root
2019/04/12 22:12 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/04/12 21:58 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/04/15 11:45 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce-386
2019/04/15 10:55 upstream dc4060a5dc25 505ab413 .config console log report syz C ci-upstream-kasan-gce-386
2019/04/15 12:05 linux-next f9221a7a1014 505ab413 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/04/13 01:36 linux-next bcb67f0fbce9 c402d8f1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/04/13 01:20 linux-next bcb67f0fbce9 c402d8f1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/05/03 05:39 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-smack-root
2019/05/03 04:31 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-root
2019/05/03 03:48 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce
2019/05/03 02:41 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-root
2019/05/03 01:10 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce
2019/05/03 00:39 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/02 23:35 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-smack-root
2019/05/02 22:33 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce
2019/05/02 22:26 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce
2019/05/02 21:23 upstream b7a5b22b0547 e9039493 .config console log report ci-upstream-kasan-gce-root
2019/05/02 16:35 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/02 15:27 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/02 14:35 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/02 13:35 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/02 12:33 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/02 11:35 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/02 08:39 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-smack-root
2019/05/02 07:38 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/02 05:33 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/02 04:09 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/02 03:07 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/02 02:26 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/02 01:19 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/02 00:13 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-root
2019/05/01 22:41 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-smack-root
2019/05/01 20:53 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce
2019/05/01 19:33 upstream f2bc9c908dfe 7516d9fa .config console log report ci-upstream-kasan-gce-smack-root
2019/05/01 16:41 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-smack-root
2019/05/01 16:13 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce
2019/05/01 15:13 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-root
2019/05/01 13:50 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-smack-root
2019/05/01 12:37 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-root
2019/05/01 10:48 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-smack-root
2019/05/01 10:14 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/01 09:11 upstream f2bc9c908dfe 618456b4 .config console log report ci-upstream-kasan-gce-selinux-root
2019/05/01 07:46 upstream bf3bd966dfd7 618456b4 .config console log report ci-upstream-kasan-gce
2019/05/01 22:58 upstream 459e3a21535a 7516d9fa .config console log report ci-upstream-kasan-gce-386
2019/05/03 09:55 linux-next e8b243ea3b19 1bfa09b9 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/03 09:40 linux-next e8b243ea3b19 1bfa09b9 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/03 08:31 linux-next e8b243ea3b19 1bfa09b9 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/02 19:50 linux-next e8b243ea3b19 e9039493 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/02 10:28 linux-next bf2c8035bd8b 7516d9fa .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/02 09:24 linux-next bf2c8035bd8b 7516d9fa .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/02 06:37 linux-next bf2c8035bd8b 7516d9fa .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/02 05:10 linux-next bf2c8035bd8b 7516d9fa .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/02 01:26 linux-next bf2c8035bd8b 7516d9fa .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.