syzbot


BUG: scheduling while atomic: syz-executor/ADDR

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+20191dc583eff8602d2d@syzkaller.appspotmail.com
Fix commit: 72ff2bf04db2 crypto: aesni - xts_crypt() return if walk.nbytes is 0
First crash: 581d, last: 520d

Cause bisection: introduced by (bisect log) :
commit 2481104fe98d5b016fdd95d649b1235f21e491ba
Author: Ard Biesheuvel <ardb@kernel.org>
Date: Thu Dec 31 16:41:55 2020 +0000

  crypto: x86/aes-ni-xts - rewrite and drop indirections via glue helper

Crash: BUG: sleeping function called from invalid context in __fdget_pos (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: scheduling while atomic: syz-executor/ADDR (2) 11 306d 308d 0/24 closed as dup on 2022/04/02 11:01
android-54 BUG: scheduling while atomic: syz-executor/ADDR C 56 465d 595d 0/2 upstream: reported C repro on 2021/06/13 04:56
Last patch testing requests:
Created Duration User Patch Repo Result
2021/08/09 06:01 16m chouhan.shreyansh630@gmail.com patch linux-next OK
2021/08/09 05:58 0m chouhan.shreyansh630@gmail.com patch upstream error
2021/07/30 08:49 16m chouhan.shreyansh630@gmail.com patch upstream OK
2021/07/26 08:46 11m chouhan.shreyansh630@gmail.com upstream report log

Sample crash report:
RBP: 00007ffd23488340 R08: 0000000000000000 R09: 00007ffd234884c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 0000000000000000 R14: 00000000004ae018 R15: 0000000000400488
syz-executor607[8444]: segfault at 4b0e48 ip 0000000000408e15 sp 00007ffd234882e0 error 7 in syz-executor607098311[401000+82000]
Code: 0a 00 00 74 08 84 c9 0f 85 46 02 00 00 45 31 e4 0f 1f 44 00 00 64 8b 04 25 18 00 00 00 ba 01 00 00 00 85 c0 0f 85 d5 01 00 00 <0f> b1 15 2c 80 0a 00 4c 8b 33 4d 85 f6 75 3b e9 72 01 00 00 0f 1f
BUG: scheduling while atomic: syz-executor607/8444/0x00000002
no locks held by syz-executor607/8444.
Modules linked in:
Preemption disabled at:
[<ffffffff812aa3e4>] kernel_fpu_begin_mask+0x64/0x260 arch/x86/kernel/fpu/core.c:126
Kernel panic - not syncing: scheduling while atomic
CPU: 1 PID: 8444 Comm: syz-executor607 Not tainted 5.13.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x141/0x1d7 lib/dump_stack.c:120
 panic+0x306/0x73d kernel/panic.c:231
 __schedule_bug.cold+0x10c/0x143 kernel/sched/core.c:4880
 schedule_debug kernel/sched/core.c:4909 [inline]
 __schedule+0x19df/0x23e0 kernel/sched/core.c:5038
 schedule+0xcf/0x270 kernel/sched/core.c:5226
 exit_to_user_mode_loop kernel/entry/common.c:163 [inline]
 exit_to_user_mode_prepare+0x14d/0x290 kernel/entry/common.c:209
 irqentry_exit_to_user_mode+0x5/0x40 kernel/entry/common.c:315
 exc_page_fault+0xc6/0x180 arch/x86/mm/fault.c:1534
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:577
RIP: 0033:0x408e15
Code: 0a 00 00 74 08 84 c9 0f 85 46 02 00 00 45 31 e4 0f 1f 44 00 00 64 8b 04 25 18 00 00 00 ba 01 00 00 00 85 c0 0f 85 d5 01 00 00 <0f> b1 15 2c 80 0a 00 4c 8b 33 4d 85 f6 75 3b e9 72 01 00 00 0f 1f
RSP: 002b:00007ffd234882e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000004ae108 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 00000000004ae108 RDI: 0000000000000001
RBP: 0000000000000001 R08: 0000000000000000 R09: 00007ffd234884c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00000000004ae018 R15: 0000000000400488
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-net-kasan-gce 2021/06/26 18:28 net-next ff8744b5eb11 9d2ab5df .config console log report syz C BUG: scheduling while atomic: syz-executor/ADDR
ci-upstream-kasan-gce-root 2021/08/18 09:23 upstream 794c7931a242 a2fe1cb5 .config console log report info BUG: scheduling while atomic: syz-executor/ADDR
ci-upstream-kasan-gce-root 2021/08/18 09:17 upstream 794c7931a242 a2fe1cb5 .config console log report info BUG: scheduling while atomic: syz-executor/ADDR
ci-upstream-net-this-kasan-gce 2021/08/26 17:08 net 733c99ee8be9 b599f2fc .config console log report info BUG: scheduling while atomic: syz-executor/ADDR
ci-upstream-net-kasan-gce 2021/07/18 15:16 net-next 23d2b94043ca f115ae98 .config console log report info BUG: scheduling while atomic: syz-executor/ADDR
* Struck through repros no longer work on HEAD.