syzbot


BUG: scheduling while atomic in ___down_common

Status: closed as dup on 2024/01/21 10:21
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+f05d8824f038fad0babb@syzkaller.appspotmail.com
First crash: 364d, last: 322d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
BUG: scheduling while atomic in drm_atomic_helper_wait_for_flip_done serial 1 339d 339d

Sample crash report:
BUG: scheduling while atomic: syz-executor.1/10431/0x00000002
Modules linked in:
CPU: 1 PID: 10431 Comm: syz-executor.1 Not tainted 6.8.0-rc2-syzkaller-00419-gb555d191561a #0
Hardware name: linux,dummy-virt (DT)
Call trace:
 dump_backtrace+0x94/0xec arch/arm64/kernel/stacktrace.c:291
 show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:298
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x48/0x60 lib/dump_stack.c:106
 dump_stack+0x18/0x24 lib/dump_stack.c:113
 __schedule_bug+0x50/0x68 kernel/sched/core.c:5943
 schedule_debug kernel/sched/core.c:5970 [inline]
 __schedule+0x7f4/0x8a8 kernel/sched/core.c:6620
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0x34/0xc8 kernel/sched/core.c:6817
 schedule_timeout+0xf4/0x100 kernel/time/timer.c:2159
 ___down_common+0xec/0x15c kernel/locking/semaphore.c:225
 __down_common kernel/locking/semaphore.c:246 [inline]
 __down+0x18/0x24 kernel/locking/semaphore.c:254
 down+0x50/0x6c kernel/locking/semaphore.c:63
 console_lock+0x2c/0x8c kernel/printk/printk.c:2640
 do_con_write+0x7c/0x1e2c drivers/tty/vt/vt.c:2862
 con_write+0x18/0x68 drivers/tty/vt/vt.c:3251
 gsmld_write+0x64/0xd0 drivers/tty/n_gsm.c:3724
 iterate_tty_write drivers/tty/tty_io.c:1021 [inline]
 file_tty_write.constprop.0+0x134/0x28c drivers/tty/tty_io.c:1096
 tty_write+0x14/0x20 drivers/tty/tty_io.c:1117
 call_write_iter include/linux/fs.h:2085 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x23c/0x358 fs/read_write.c:590
 ksys_write+0x70/0x104 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __arm64_sys_write+0x1c/0x28 fs/read_write.c:652
 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline]
 invoke_syscall+0x48/0x114 arch/arm64/kernel/syscall.c:51
 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:136
 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:155
 el0_svc+0x34/0xd8 arch/arm64/kernel/entry-common.c:678
 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:696
 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:598
BUG: scheduling while atomic: syz-executor.1/10431/0x00000000
Modules linked in:
CPU: 0 PID: 10431 Comm: syz-executor.1 Tainted: G        W          6.8.0-rc2-syzkaller-00419-gb555d191561a #0
Hardware name: linux,dummy-virt (DT)
Call trace:
 dump_backtrace+0x94/0xec arch/arm64/kernel/stacktrace.c:291
 show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:298
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x48/0x60 lib/dump_stack.c:106
 dump_stack+0x18/0x24 lib/dump_stack.c:113
 __schedule_bug+0x50/0x68 kernel/sched/core.c:5943
 schedule_debug kernel/sched/core.c:5970 [inline]
 __schedule+0x7f4/0x8a8 kernel/sched/core.c:6620
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0x34/0xc8 kernel/sched/core.c:6817
 futex_wait_queue+0x70/0x9c kernel/futex/waitwake.c:370
 __futex_wait+0xc8/0x15c kernel/futex/waitwake.c:669
 futex_wait+0x84/0x108 kernel/futex/waitwake.c:697
 do_futex+0xf8/0x1a0 kernel/futex/syscalls.c:102
 __do_sys_futex kernel/futex/syscalls.c:179 [inline]
 __se_sys_futex kernel/futex/syscalls.c:160 [inline]
 __arm64_sys_futex+0x7c/0x1a4 kernel/futex/syscalls.c:160
 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline]
 invoke_syscall+0x48/0x114 arch/arm64/kernel/syscall.c:51
 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:136
 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:155
 el0_svc+0x34/0xd8 arch/arm64/kernel/entry-common.c:678
 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:696
 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:598

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/04 06:51 upstream b555d191561a a67b2c42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: scheduling while atomic in ___down_common
2023/12/24 06:47 upstream 3f82f1c3a036 fb427a07 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: scheduling while atomic in ___down_common
* Struck through repros no longer work on HEAD.