syzbot


INFO: task hung in fb_open

Status: closed as dup on 2020/07/27 23:07
Reported-by: syzbot+a4ae1442ccc637162dc1@syzkaller.appspotmail.com
First crash: 1817d, last: 1562d
Cause bisection: introduced by (bisect log) :
commit 979c11ef39cee79d6f556091a357890962be2580
Author: Ayan Kumar Halder <ayan.halder@arm.com>
Date: Tue Jul 17 17:13:46 2018 +0000

  drm/sun4i: Substitute sun4i_backend_format_is_yuv() with format->is_yuv

Crash: no output from test machine (log)
Repro: C syz .config
  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: vmalloc-out-of-bounds Write in bitfill_aligned fbdev C 475 1580d 1815d
Discussions (1)
Title Replies (including bot) Last reply
INFO: task hung in fb_open 2 (4) 2019/12/05 16:45
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in fb_open (2) 1 1356d 1356d 0/1 auto-closed as invalid on 2021/07/05 14:58
linux-4.19 INFO: task hung in fb_open 108 1578d 1815d 0/1 auto-closed as invalid on 2020/11/26 05:30
linux-4.14 INFO: task hung in fb_open C error 241 1520d 1816d 0/1 upstream: reported C repro on 2019/12/03 09:19
upstream INFO: task hung in fb_open (2) fbdev 2 1520d 1520d 0/28 auto-closed as invalid on 2020/12/23 12:44

Sample crash report:
INFO: task syz-executor870:7063 blocked for more than 143 seconds.
      Not tainted 5.7.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor870 D28120  7063   7061 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:3367 [inline]
 __schedule+0x937/0x1ff0 kernel/sched/core.c:4083
 __sched_text_start+0x8/0x8
 schedule+0xd0/0x2a0 kernel/sched/core.c:4158
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4217
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 mutex_trylock+0x2c0/0x2c0 kernel/locking/mutex.c:126
 atomic64_cmpxchg include/asm-generic/atomic-instrumented.h:1463 [inline]
 atomic_long_cmpxchg_release include/asm-generic/atomic-long.h:424 [inline]
 __mutex_unlock_slowpath+0xe2/0x660 kernel/locking/mutex.c:1249
 spin_unlock include/linux/spinlock.h:393 [inline]
 chrdev_open+0xc4/0x5c0 fs/char_dev.c:402
 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 get_fb_info.part.0+0x80/0x80 drivers/video/fbdev/core/fbmem.c:68
 chrdev_open+0x219/0x5c0 fs/char_dev.c:414
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_file_open+0x84/0x410 security/security.c:1548
 do_dentry_open+0x4ba/0x1290 fs/open.c:797
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_inode_permission+0xc4/0xf0 security/security.c:1253
 chown_common+0x550/0x550 fs/open.c:629
 inode_permission+0xab/0x500 fs/namei.c:450
 do_open fs/namei.c:3229 [inline]
 path_openat+0x1e59/0x27d0 fs/namei.c:3346
 path_lookupat.isra.0+0x530/0x530 fs/namei.c:2332
 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934
 do_filp_open+0x192/0x260 fs/namei.c:3373
 may_open_dev+0xf0/0xf0 fs/namei.c:2821
 atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:694 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:78 [inline]
 do_raw_spin_lock+0x129/0x2e0 kernel/locking/spinlock_debug.c:113
 __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock+0x24/0x40 kernel/locking/spinlock.c:183
 spin_unlock include/linux/spinlock.h:393 [inline]
 __alloc_fd+0x46d/0x600 fs/file.c:534
 do_sys_openat2+0x585/0x7d0 fs/open.c:1148
 file_open_root+0x400/0x400 fs/open.c:1129
 lock_is_held include/linux/lockdep.h:406 [inline]
 rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121
 do_sys_open+0xc3/0x140 fs/open.c:1164
 filp_open+0x70/0x70 fs/open.c:1117
 fpregs_mark_activate+0x320/0x320 arch/x86/include/asm/trace/fpu.h:57
 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
INFO: task syz-executor870:7064 blocked for more than 143 seconds.
      Not tainted 5.7.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor870 D28120  7064   7060 0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3367 [inline]
 __schedule+0x937/0x1ff0 kernel/sched/core.c:4083
 __sched_text_start+0x8/0x8
 schedule+0xd0/0x2a0 kernel/sched/core.c:4158
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4217
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 mutex_trylock+0x2c0/0x2c0 kernel/locking/mutex.c:126
 atomic64_cmpxchg include/asm-generic/atomic-instrumented.h:1463 [inline]
 atomic_long_cmpxchg_release include/asm-generic/atomic-long.h:424 [inline]
 __mutex_unlock_slowpath+0xe2/0x660 kernel/locking/mutex.c:1249
 spin_unlock include/linux/spinlock.h:393 [inline]
 chrdev_open+0xc4/0x5c0 fs/char_dev.c:402
 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 get_fb_info.part.0+0x80/0x80 drivers/video/fbdev/core/fbmem.c:68
 chrdev_open+0x219/0x5c0 fs/char_dev.c:414
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_file_open+0x84/0x410 security/security.c:1548
 do_dentry_open+0x4ba/0x1290 fs/open.c:797
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_inode_permission+0xc4/0xf0 security/security.c:1253
 chown_common+0x550/0x550 fs/open.c:629
 inode_permission+0xab/0x500 fs/namei.c:450
 do_open fs/namei.c:3229 [inline]
 path_openat+0x1e59/0x27d0 fs/namei.c:3346
 path_lookupat.isra.0+0x530/0x530 fs/namei.c:2332
 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934
 do_filp_open+0x192/0x260 fs/namei.c:3373
 may_open_dev+0xf0/0xf0 fs/namei.c:2821
 atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:694 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:78 [inline]
 do_raw_spin_lock+0x129/0x2e0 kernel/locking/spinlock_debug.c:113
 __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock+0x24/0x40 kernel/locking/spinlock.c:183
 spin_unlock include/linux/spinlock.h:393 [inline]
 __alloc_fd+0x46d/0x600 fs/file.c:534
 do_sys_openat2+0x585/0x7d0 fs/open.c:1148
 file_open_root+0x400/0x400 fs/open.c:1129
 lock_is_held include/linux/lockdep.h:406 [inline]
 rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121
 do_sys_open+0xc3/0x140 fs/open.c:1164
 filp_open+0x70/0x70 fs/open.c:1117
 fpregs_mark_activate+0x320/0x320 arch/x86/include/asm/trace/fpu.h:57
 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
INFO: task syz-executor870:7065 blocked for more than 143 seconds.
      Not tainted 5.7.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor870 D27856  7065   7057 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:3367 [inline]
 __schedule+0x937/0x1ff0 kernel/sched/core.c:4083
 __sched_text_start+0x8/0x8
 schedule+0xd0/0x2a0 kernel/sched/core.c:4158
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4217
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 mutex_trylock+0x2c0/0x2c0 kernel/locking/mutex.c:126
 atomic64_cmpxchg include/asm-generic/atomic-instrumented.h:1463 [inline]
 atomic_long_cmpxchg_release include/asm-generic/atomic-long.h:424 [inline]
 __mutex_unlock_slowpath+0xe2/0x660 kernel/locking/mutex.c:1249
 spin_unlock include/linux/spinlock.h:393 [inline]
 chrdev_open+0xc4/0x5c0 fs/char_dev.c:402
 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 get_fb_info.part.0+0x80/0x80 drivers/video/fbdev/core/fbmem.c:68
 chrdev_open+0x219/0x5c0 fs/char_dev.c:414
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_file_open+0x84/0x410 security/security.c:1548
 do_dentry_open+0x4ba/0x1290 fs/open.c:797
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_inode_permission+0xc4/0xf0 security/security.c:1253
 chown_common+0x550/0x550 fs/open.c:629
 inode_permission+0xab/0x500 fs/namei.c:450
 do_open fs/namei.c:3229 [inline]
 path_openat+0x1e59/0x27d0 fs/namei.c:3346
 path_lookupat.isra.0+0x530/0x530 fs/namei.c:2332
 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934
 do_filp_open+0x192/0x260 fs/namei.c:3373
 may_open_dev+0xf0/0xf0 fs/namei.c:2821
 atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:694 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:78 [inline]
 do_raw_spin_lock+0x129/0x2e0 kernel/locking/spinlock_debug.c:113
 __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock+0x24/0x40 kernel/locking/spinlock.c:183
 spin_unlock include/linux/spinlock.h:393 [inline]
 __alloc_fd+0x46d/0x600 fs/file.c:534
 do_sys_openat2+0x585/0x7d0 fs/open.c:1148
 file_open_root+0x400/0x400 fs/open.c:1129
 lock_is_held include/linux/lockdep.h:406 [inline]
 rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121
 do_sys_open+0xc3/0x140 fs/open.c:1164
 filp_open+0x70/0x70 fs/open.c:1117
 fpregs_mark_activate+0x320/0x320 arch/x86/include/asm/trace/fpu.h:57
 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
INFO: task syz-executor870:7066 blocked for more than 143 seconds.
      Not tainted 5.7.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor870 D28120  7066   7062 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:3367 [inline]
 __schedule+0x937/0x1ff0 kernel/sched/core.c:4083
 __sched_text_start+0x8/0x8
 schedule+0xd0/0x2a0 kernel/sched/core.c:4158
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4217
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 mutex_trylock+0x2c0/0x2c0 kernel/locking/mutex.c:126
 atomic64_cmpxchg include/asm-generic/atomic-instrumented.h:1463 [inline]
 atomic_long_cmpxchg_release include/asm-generic/atomic-long.h:424 [inline]
 __mutex_unlock_slowpath+0xe2/0x660 kernel/locking/mutex.c:1249
 spin_unlock include/linux/spinlock.h:393 [inline]
 chrdev_open+0xc4/0x5c0 fs/char_dev.c:402
 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 get_fb_info.part.0+0x80/0x80 drivers/video/fbdev/core/fbmem.c:68
 chrdev_open+0x219/0x5c0 fs/char_dev.c:414
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_file_open+0x84/0x410 security/security.c:1548
 do_dentry_open+0x4ba/0x1290 fs/open.c:797
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_inode_permission+0xc4/0xf0 security/security.c:1253
 chown_common+0x550/0x550 fs/open.c:629
 inode_permission+0xab/0x500 fs/namei.c:450
 do_open fs/namei.c:3229 [inline]
 path_openat+0x1e59/0x27d0 fs/namei.c:3346
 path_lookupat.isra.0+0x530/0x530 fs/namei.c:2332
 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934
 do_filp_open+0x192/0x260 fs/namei.c:3373
 may_open_dev+0xf0/0xf0 fs/namei.c:2821
 atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:694 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:78 [inline]
 do_raw_spin_lock+0x129/0x2e0 kernel/locking/spinlock_debug.c:113
 __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock+0x24/0x40 kernel/locking/spinlock.c:183
 spin_unlock include/linux/spinlock.h:393 [inline]
 __alloc_fd+0x46d/0x600 fs/file.c:534
 do_sys_openat2+0x585/0x7d0 fs/open.c:1148
 file_open_root+0x400/0x400 fs/open.c:1129
 lock_is_held include/linux/lockdep.h:406 [inline]
 rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121
 do_sys_open+0xc3/0x140 fs/open.c:1164
 filp_open+0x70/0x70 fs/open.c:1117
 fpregs_mark_activate+0x320/0x320 arch/x86/include/asm/trace/fpu.h:57
 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
INFO: task syz-executor870:7067 blocked for more than 143 seconds.
      Not tainted 5.7.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor870 D28120  7067   7059 0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3367 [inline]
 __schedule+0x937/0x1ff0 kernel/sched/core.c:4083
 __sched_text_start+0x8/0x8
 schedule+0xd0/0x2a0 kernel/sched/core.c:4158
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:4217
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 mutex_trylock+0x2c0/0x2c0 kernel/locking/mutex.c:126
 atomic64_cmpxchg include/asm-generic/atomic-instrumented.h:1463 [inline]
 atomic_long_cmpxchg_release include/asm-generic/atomic-long.h:424 [inline]
 __mutex_unlock_slowpath+0xe2/0x660 kernel/locking/mutex.c:1249
 spin_unlock include/linux/spinlock.h:393 [inline]
 chrdev_open+0xc4/0x5c0 fs/char_dev.c:402
 lock_downgrade+0x840/0x840 kernel/locking/lockdep.c:4579
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 lock_fb_info include/linux/fb.h:637 [inline]
 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
 get_fb_info.part.0+0x80/0x80 drivers/video/fbdev/core/fbmem.c:68
 chrdev_open+0x219/0x5c0 fs/char_dev.c:414
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_file_open+0x84/0x410 security/security.c:1548
 do_dentry_open+0x4ba/0x1290 fs/open.c:797
 cdev_put.part.0+0x50/0x50 fs/char_dev.c:364
 security_inode_permission+0xc4/0xf0 security/security.c:1253
 chown_common+0x550/0x550 fs/open.c:629
 inode_permission+0xab/0x500 fs/namei.c:450
 do_open fs/namei.c:3229 [inline]
 path_openat+0x1e59/0x27d0 fs/namei.c:3346
 path_lookupat.isra.0+0x530/0x530 fs/namei.c:2332
 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4934
 do_filp_open+0x192/0x260 fs/namei.c:3373
 may_open_dev+0xf0/0xf0 fs/namei.c:2821
 atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:694 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:78 [inline]
 do_raw_spin_lock+0x129/0x2e0 kernel/locking/spinlock_debug.c:113
 __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline]
 _raw_spin_unlock+0x24/0x40 kernel/locking/spinlock.c:183
 spin_unlock include/linux/spinlock.h:393 [inline]
 __alloc_fd+0x46d/0x600 fs/file.c:534
 do_sys_openat2+0x585/0x7d0 fs/open.c:1148
 file_open_root+0x400/0x400 fs/open.c:1129
 lock_is_held include/linux/lockdep.h:406 [inline]
 rcu_read_lock_sched_held+0x9c/0xd0 kernel/rcu/update.c:121
 do_sys_open+0xc3/0x140 fs/open.c:1164
 filp_open+0x70/0x70 fs/open.c:1117
 fpregs_mark_activate+0x320/0x320 arch/x86/include/asm/trace/fpu.h:57
 trace_hardirqs_off_caller+0x55/0x230 kernel/trace/trace_preemptirq.c:73
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3

Showing all locks held in the system:
1 lock held by khungtaskd/1137:
 #0: ffffffff899bea80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5754
1 lock held by in:imklog/6726:
 #0: ffff8880996270f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:826
2 locks held by syz-executor870/7058:
1 lock held by syz-executor870/7063:
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: lock_fb_info include/linux/fb.h:637 [inline]
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
1 lock held by syz-executor870/7064:
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: lock_fb_info include/linux/fb.h:637 [inline]
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
1 lock held by syz-executor870/7065:
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: lock_fb_info include/linux/fb.h:637 [inline]
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
1 lock held by syz-executor870/7066:
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: lock_fb_info include/linux/fb.h:637 [inline]
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418
1 lock held by syz-executor870/7067:
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: lock_fb_info include/linux/fb.h:637 [inline]
 #0: ffff8880a3b8b078 (&fb_info->lock){+.+.}-{3:3}, at: fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1418

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 1137 Comm: khungtaskd Not tainted 5.7.0-rc5-syzkaller #0
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+0x188/0x20d lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101
 lapic_can_unplug_cpu.cold+0x3b/0x3b
 nmi_trigger_cpumask_backtrace+0x231/0x27e lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline]
 watchdog+0xa8c/0x1010 kernel/hung_task.c:289
 reset_hung_task_detector+0x30/0x30 kernel/hung_task.c:243
 kthread+0x388/0x470 kernel/kthread.c:268
 kthread_mod_delayed_work+0x1a0/0x1a0 kernel/kthread.c:1090
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 7058 Comm: syz-executor870 Not tainted 5.7.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:vga16fb_fillrect+0x9d3/0x1960 drivers/video/fbdev/vga16fb.c:922
Code: 08 e8 31 ea af fd 31 ff 89 de 31 ed e8 96 eb af fd 85 db 4d 89 ec 74 22 e8 1a ea af fd 45 88 34 24 83 c5 01 89 df 49 83 c4 01 <89> ee e8 f6 ea af fd 39 eb 75 e3 4c 03 6c 24 08 e8 f8 e9 af fd 44
RSP: 0018:ffffc90001ab75a0 EFLAGS: 00000282
RAX: ffff8880a91d21c0 RBX: 0000000000000050 RCX: ffffffff83c3496a
RDX: 0000000000000000 RSI: ffffffff83c34956 RDI: 0000000000000050
RBP: 0000000000000019 R08: ffff8880a91d21c0 R09: ffffed10147713cc
R10: ffff8880a3b89e5f R11: ffffed10147713cb R12: ffff8880000a0019
R13: ffff8880000a0000 R14: 0000000000000000 R15: 00000000e9124d8e
FS:  0000000001a2b880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cc080 CR3: 00000000a966d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 memcpy+0x39/0x60 mm/kasan/common.c:107
 bit_clear_margins+0x2d5/0x4a0 drivers/video/fbdev/core/bitblit.c:232
 bit_bmove+0x210/0x210 drivers/video/fbdev/core/bitblit.c:59
 vesafb_probe.cold+0x1162/0x1162
 fbcon_clear_margins+0x1de/0x240 drivers/video/fbdev/core/fbcon.c:1381
 fbcon_switch+0xcde/0x16f0 drivers/video/fbdev/core/fbcon.c:2363
 fbcon_set_def_font+0x370/0x370 drivers/video/fbdev/core/fbcon.c:2710
 fbcon_cursor+0x477/0x650 drivers/video/fbdev/core/fbcon.c:1411
 bit_clear+0x4e0/0x4e0 drivers/video/fbdev/core/fbcon.h:140
 is_console_locked+0x5/0x10 kernel/printk/printk.c:2346
 fbcon_set_origin+0x26/0x50 drivers/video/fbdev/core/fbcon.c:2938
 redraw_screen+0x2ae/0x770 drivers/tty/vt/vt.c:1015
 vesafb_probe.cold+0x1162/0x1162
 respond_string+0x290/0x290 include/linux/tty_flip.h:27
 fbcon_set_palette+0x3b1/0x4a0 drivers/video/fbdev/core/fbcon.c:2764
 fbcon_modechanged+0x581/0x720 drivers/video/fbdev/core/fbcon.c:3000
 fbcon_update_vcs+0x3a/0x50 drivers/video/fbdev/core/fbcon.c:3047
 fb_set_var+0xad0/0xd40 drivers/video/fbdev/core/fbmem.c:1056
 fb_blank+0x190/0x190 drivers/video/fbdev/core/fbmem.c:1081
 mark_held_locks+0xe0/0xe0 kernel/locking/lockdep.c:3620
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
 _raw_spin_unlock_irqrestore+0x62/0xe0 kernel/locking/spinlock.c:191
 do_fb_ioctl+0x390/0x6e0 drivers/video/fbdev/core/fbmem.c:1109
 fb_mmap+0x550/0x550 drivers/video/fbdev/core/fbmem.c:1383
 tomoyo_execute_permission+0x470/0x470 security/tomoyo/file.c:168
 __sanitizer_cov_trace_switch+0x45/0x70 kernel/kcov.c:310
 ioctl_fioasync fs/ioctl.c:601 [inline]
 do_vfs_ioctl+0x50c/0x1360 fs/ioctl.c:704
 atomic64_add_return include/asm-generic/atomic-instrumented.h:881 [inline]
 atomic_long_add_return_release include/asm-generic/atomic-long.h:70 [inline]
 __up_read kernel/locking/rwsem.c:1434 [inline]
 up_read+0x1ab/0x750 kernel/locking/rwsem.c:1574
 down_read_nested+0x420/0x420 include/linux/compiler.h:199
 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1185
 do_fb_ioctl+0x6e0/0x6e0 drivers/video/fbdev/core/fbmem.c:1169
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x11a/0x180 fs/ioctl.c:771
 __do_sys_ioctl fs/ioctl.c:780 [inline]
 __se_sys_ioctl fs/ioctl.c:778 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:778
 __trace_hardirqs_on_caller kernel/locking/lockdep.c:3657 [inline]
 lockdep_hardirqs_on+0x463/0x620 kernel/locking/lockdep.c:3702
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x441469
Code: e8 ac e8 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffcc884a288 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441469
RDX: 0000000020000340 RSI: 0000000000004601 RDI: 0000000000000003
RBP: 00000000006cb018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000004 R11: 0000000000000246 R12: 00000000004021e0
R13: 0000000000402270 R14: 0000000000000000 R15: 0000000000000000

Crashes (552):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/12 04:32 upstream 152036d1379f 9eb09c40 .config console log report syz C ci-upstream-kasan-gce
2020/05/12 04:20 upstream 152036d1379f 9eb09c40 .config console log report syz C ci-upstream-kasan-gce-root
2020/04/25 14:44 upstream 5ef58e290782 b8bb8e5f .config console log report syz C ci-upstream-kasan-gce
2020/04/23 11:51 upstream c578ddb39e56 2e44d63e .config console log report syz C ci-upstream-kasan-gce
2020/04/15 01:36 upstream 8632e9b5645b 3f3c5574 .config console log report syz C ci-upstream-kasan-gce
2020/04/11 20:04 upstream 5b8b9d0c6d0e a8c6a3f8 .config console log report syz C ci-upstream-kasan-gce
2020/04/11 10:49 upstream ab6f762f0f53 a8c6a3f8 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/04/10 04:41 upstream 5d30bcacd91a a8c6a3f8 .config console log report syz C ci-upstream-kasan-gce
2020/03/27 13:09 upstream f3e69428b5e2 7d95711b .config console log report syz C ci-upstream-kasan-gce
2020/03/27 12:03 upstream f3e69428b5e2 7d95711b .config console log report syz C ci-upstream-kasan-gce
2020/03/21 20:36 upstream 5ad0ec0b8652 4288d95e .config console log report syz C ci-upstream-kasan-gce
2020/03/20 02:40 upstream cd607737f3b8 2c31c529 .config console log report syz C ci-upstream-kasan-gce
2020/03/12 01:42 upstream e3a36eb6dfae e7caca8e .config console log report syz C ci-upstream-kasan-gce
2020/03/03 05:31 upstream 63623fd44972 c88c7b75 .config console log report syz C ci-upstream-kasan-gce
2020/03/03 02:48 upstream 63623fd44972 c88c7b75 .config console log report syz C ci-upstream-kasan-gce
2020/02/02 06:12 upstream 94f2630b1897 2274ad39 .config console log report syz C ci-upstream-kasan-gce
2020/02/01 17:49 upstream 26dca6dbd62d 0eb59c27 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/01/25 08:18 upstream 6381b442836e 2e95ab33 .config console log report syz C ci-upstream-kasan-gce
2020/01/17 04:16 upstream f5ae2ea6347a 3de7aabb .config console log report syz C ci-upstream-kasan-gce
2020/01/11 16:08 upstream bef1d88263ff 4c04afaa .config console log report syz C ci-upstream-kasan-gce-root
2020/01/11 15:10 upstream bef1d88263ff 4c04afaa .config console log report syz C ci-upstream-kasan-gce
2019/12/03 02:56 upstream 596cf45cbf6e ab342da3 .config console log report syz C ci-upstream-kasan-gce
2020/04/25 15:13 upstream 5ef58e290782 b8bb8e5f .config console log report syz C ci-upstream-kasan-gce-386
2020/04/24 12:08 upstream c578ddb39e56 2e44d63e .config console log report syz C ci-upstream-kasan-gce-386
2020/04/18 17:14 upstream 90280eaa88ac 365fba24 .config console log report syz C ci-upstream-kasan-gce-386
2020/04/13 00:47 upstream 4f8a3cc1183c 36b0b050 .config console log report syz C ci-upstream-kasan-gce-386
2020/03/30 06:52 upstream e595dd94515e 05736b29 .config console log report syz C ci-upstream-kasan-gce-386
2020/03/30 05:31 upstream e595dd94515e 05736b29 .config console log report syz C ci-upstream-kasan-gce-386
2020/03/22 10:34 upstream b74b991fb8b9 78267cec .config console log report syz C ci-upstream-kasan-gce-386
2020/03/20 09:14 upstream cd607737f3b8 2c31c529 .config console log report syz C ci-upstream-kasan-gce-386
2020/03/20 02:12 upstream cd607737f3b8 2c31c529 .config console log report syz C ci-upstream-kasan-gce-386
2020/03/16 17:52 upstream fb33c6510d55 749688d2 .config console log report syz C ci-upstream-kasan-gce-386
2020/03/12 05:43 upstream e3a36eb6dfae e7caca8e .config console log report syz C ci-upstream-kasan-gce-386
2020/03/02 22:12 upstream 63623fd44972 c88c7b75 .config console log report syz C ci-upstream-kasan-gce-386
2020/02/04 15:29 upstream 322bf2d3446a 93e5e335 .config console log report syz C ci-upstream-kasan-gce-386
2020/02/02 06:23 upstream 94f2630b1897 2274ad39 .config console log report syz C ci-upstream-kasan-gce-386
2020/01/25 23:15 upstream d5d359b0ac3f 2e95ab33 .config console log report syz C ci-upstream-kasan-gce-386
2020/01/25 08:48 upstream 6381b442836e 2e95ab33 .config console log report syz C ci-upstream-kasan-gce-386
2020/01/19 20:22 upstream 8f8972a3127f 0342f8c7 .config console log report syz C ci-upstream-kasan-gce-386
2020/01/17 15:43 upstream f4353c3e2aaf 3de7aabb .config console log report syz C ci-upstream-kasan-gce-386
2020/01/17 03:37 upstream f5ae2ea6347a 3de7aabb .config console log report syz C ci-upstream-kasan-gce-386
2020/08/13 22:11 upstream 990f227371a4 54ce1ed6 .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/13 20:40 upstream 990f227371a4 54ce1ed6 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 18:07 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 06:55 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/26 05:32 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 02:43 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/25 05:16 upstream f37e99aca03f 554af388 .config console log report ci-upstream-kasan-gce
2020/07/24 19:59 upstream f37e99aca03f 554af388 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/23 09:09 upstream 8c26c87b0532 340ea530 .config console log report ci-upstream-kasan-gce
2020/07/22 07:34 upstream 4fa640dc5230 128cd85f .config console log report ci-upstream-kasan-gce
2020/07/21 02:00 upstream 5714ee50bb43 4285ffa3 .config console log report ci-upstream-kasan-gce-root
2020/07/20 20:58 upstream 5714ee50bb43 4285ffa3 .config console log report ci-upstream-kasan-gce-root
2020/07/20 07:18 upstream 92188b41f139 9c812472 .config console log report ci-upstream-kasan-gce-root
2020/07/18 13:48 upstream 6a70f89cc58f 9c812472 .config console log report ci-upstream-kasan-gce
2020/07/18 01:30 upstream 8882572675c1 9c812472 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/17 21:29 upstream 8882572675c1 9c812472 .config console log report ci-upstream-kasan-gce
2020/07/17 10:37 upstream f8456690ba8e 54b3c45e .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/16 11:38 upstream 994e99a96c9b f3bec699 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/15 06:25 upstream e9919e11e219 609fb517 .config console log report ci-upstream-kasan-gce-root
2020/07/14 12:35 upstream 0dc589da873b ce4c95b3 .config console log report ci-upstream-kasan-gce
2020/07/13 20:37 upstream 11ba468877bb f90ec899 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/12 20:29 upstream 0aea6d5c5be3 115e1930 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/12 05:21 upstream a581387e415b 18d18b59 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/12 02:03 upstream a581387e415b 18d18b59 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/11 18:52 upstream a581387e415b 18d18b59 .config console log report ci-upstream-kasan-gce
2020/07/11 14:37 upstream a581387e415b 18d18b59 .config console log report ci-upstream-kasan-gce
2020/07/10 12:28 upstream 42f82040ee66 edf162e8 .config console log report ci-upstream-kasan-gce-root
2020/07/10 03:30 upstream 0bddd227f3dc bc238812 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/09 10:21 upstream 0bddd227f3dc bc238812 .config console log report ci-upstream-kasan-gce-root
2020/07/08 19:35 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/07/08 18:29 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/07/08 15:52 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/07/08 14:50 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/07/08 13:42 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/07/08 11:49 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/07/08 10:47 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/07/08 08:41 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/07/08 02:19 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-root
2020/07/07 23:11 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce
2020/05/23 22:06 upstream 423b8baf18a8 9682898d .config console log report ci-upstream-kasan-gce-smack-root
2020/07/26 22:53 upstream 04300d66f0a0 51265195 .config console log report ci-upstream-kasan-gce-386
2020/07/25 10:09 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-386
2020/07/17 15:26 upstream 8882572675c1 9c812472 .config console log report ci-upstream-kasan-gce-386
2020/07/12 09:51 upstream 0aea6d5c5be3 115e1930 .config console log report ci-upstream-kasan-gce-386
2020/07/12 00:13 upstream a581387e415b 18d18b59 .config console log report ci-upstream-kasan-gce-386
2020/07/15 16:28 linux-next ca0e494af5ed f3bec699 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/15 06:14 linux-next 5fb3d6042387 609fb517 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.