syzbot


BUG: scheduling while atomic in drm_atomic_helper_wait_for_flip_done

Status: closed as dup on 2024/04/20 11:17
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+06fa1063cca8163ea541@syzkaller.appspotmail.com
First crash: 339d, last: 339d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
BUG: sleeping function called from invalid context in console_lock (2) serial C inconclusive inconclusive 7447 200d 1293d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
BUG: scheduling while atomic in ___down_common serial 2 322d 360d 0/28 closed as dup on 2024/01/21 10:21
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [dri?] BUG: scheduling while atomic in drm_atomic_helper_wait_for_flip_done 3 (4) 2024/08/07 14:04
[PATCH] tty: vt: check for atomic context in con_write() 9 (9) 2024/02/06 14:28

Sample crash report:
BUG: scheduling while atomic: syz-executor.0/29225/0x00000002
Modules linked in:
CPU: 1 PID: 29225 Comm: syz-executor.0 Not tainted 6.7.0-syzkaller-10085-g1b1934dbbdcf #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+0x8c/0x100 kernel/time/timer.c:2183
 do_wait_for_common kernel/sched/completion.c:95 [inline]
 __wait_for_common kernel/sched/completion.c:116 [inline]
 wait_for_common kernel/sched/completion.c:127 [inline]
 wait_for_completion_timeout+0x74/0x16c kernel/sched/completion.c:167
 drm_atomic_helper_wait_for_flip_done+0x6c/0xc4 drivers/gpu/drm/drm_atomic_helper.c:1719
 vkms_atomic_commit_tail+0x60/0xd0 drivers/gpu/drm/vkms/vkms_drv.c:81
 commit_tail+0xa4/0x18c drivers/gpu/drm/drm_atomic_helper.c:1832
 drm_atomic_helper_commit+0x164/0x178 drivers/gpu/drm/drm_atomic_helper.c:2072
 drm_atomic_commit+0xa8/0xe0 drivers/gpu/drm/drm_atomic.c:1514
 drm_client_modeset_commit_atomic+0x210/0x270 drivers/gpu/drm/drm_client_modeset.c:1051
 drm_client_modeset_commit_locked+0x5c/0x188 drivers/gpu/drm/drm_client_modeset.c:1154
 drm_client_modeset_commit+0x30/0x58 drivers/gpu/drm/drm_client_modeset.c:1180
 __drm_fb_helper_restore_fbdev_mode_unlocked drivers/gpu/drm/drm_fb_helper.c:251 [inline]
 __drm_fb_helper_restore_fbdev_mode_unlocked+0xa8/0xe8 drivers/gpu/drm/drm_fb_helper.c:230
 drm_fb_helper_set_par+0x30/0x4c drivers/gpu/drm/drm_fb_helper.c:1344
 fb_set_var+0x21c/0x488 drivers/video/fbdev/core/fbmem.c:312
 fbcon_switch+0x214/0x4d0 drivers/video/fbdev/core/fbcon.c:2110
 flush_scrollback drivers/tty/vt/vt.c:912 [inline]
 csi_J+0x254/0x260 drivers/tty/vt/vt.c:1527
 do_con_trol drivers/tty/vt/vt.c:2408 [inline]
 do_con_write+0x1a30/0x1e2c drivers/tty/vt/vt.c:2905
 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:1092
 tty_write+0x14/0x20 drivers/tty/tty_io.c:1113
 call_write_iter include/linux/fs.h:2085 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x1dc/0x2f4 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:595
BUG: scheduling while atomic: syz-executor.0/29225/0x00000000
Modules linked in:
CPU: 0 PID: 29225 Comm: syz-executor.0 Tainted: G        W          6.7.0-syzkaller-10085-g1b1934dbbdcf #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:595

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/18 08:33 upstream 1b1934dbbdcf 915053c7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: scheduling while atomic in drm_atomic_helper_wait_for_flip_done
* Struck through repros no longer work on HEAD.