audit: type=1804 audit(1588824951.952:3491): pid=16064 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=ToMToU comm="syz-executor.2" name="/root/syzkaller-testdir746841727/syzkaller.DyXlAv/885/bus" dev="sda1" ino=16083 res=1 netlink: 68 bytes leftover after parsing attributes in process `syz-executor.3'. INFO: task syz-executor.0:16044 blocked for more than 140 seconds. Not tainted 4.19.121-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.0 D29464 16044 6459 0x00000004 Call Trace: schedule+0x8d/0x1b0 kernel/sched/core.c:3559 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3617 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1300 kernel/locking/mutex.c:1072 fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1457 chrdev_open+0x219/0x5c0 fs/char_dev.c:423 do_dentry_open+0x4a8/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x1031/0x4200 fs/namei.c:3537 do_filp_open+0x1a1/0x280 fs/namei.c:3567 do_sys_open+0x3c0/0x500 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c829 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f02dc1fcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00000000004f73e0 RCX: 000000000045c829 RDX: 0000000000000000 RSI: 0000000020000180 RDI: ffffffffffffff9c RBP: 000000000078bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000007a0 R14: 00000000004ca544 R15: 00007f02dc1fd6d4 Showing all locks held in the system: 1 lock held by khungtaskd/1079: #0: 00000000a55818f3 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4440 4 locks held by kworker/u4:4/2356: 1 lock held by in:imklog/6094: #0: 00000000b6df43cd (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xe3/0x100 fs/file.c:767 3 locks held by syz-executor.0/16034: 1 lock held by syz-executor.0/16044: #0: 00000000c9d81648 (&fb_info->lock){+.+.}, at: fb_open+0xd3/0x430 drivers/video/fbdev/core/fbmem.c:1457 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1079 Comm: khungtaskd Not tainted 4.19.121-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+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1eb lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x962/0xe40 kernel/hung_task.c:287 kthread+0x34a/0x420 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 16034 Comm: syz-executor.0 Not tainted 4.19.121-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:23 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:67 [inline] RIP: 0010:write_comp_data+0x9/0x70 kernel/kcov.c:122 Code: 80 dc 12 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 0f 1f 84 00 00 00 00 00 65 4c 8b 04 25 40 ee 01 00 <65> 8b 05 d0 23 9a 7e a9 00 01 1f 00 75 51 41 8b 80 d8 12 00 00 83 RSP: 0018:ffff8880404d72c0 EFLAGS: 00000282 RAX: 0000000000040000 RBX: 0000000000000002 RCX: ffffffff837b76ea RDX: 0000000000000001 RSI: 0000000000000002 RDI: 0000000000000004 RBP: 0000000000000001 R08: ffff88804dc2a480 R09: ffffed10432cd2bc R10: ffffed10432cd2bb R11: ffff8882196695df R12: ffff8880000a0001 R13: ffff8880000a0000 R14: 0000000000000000 R15: 0000000079f2c926 FS: 00007f02dc21e700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffed95b3a48 CR3: 00000000875a3000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vga16fb_fillrect+0x9da/0x1960 drivers/video/fbdev/vga16fb.c:922 bit_clear_margins+0x2d5/0x4a0 drivers/video/fbdev/core/bitblit.c:232 fbcon_clear_margins+0x2d8/0x370 drivers/video/fbdev/core/fbcon.c:1342 fbcon_switch+0xe0f/0x1970 drivers/video/fbdev/core/fbcon.c:2324 redraw_screen+0x37d/0x870 drivers/tty/vt/vt.c:1010 fbcon_modechanged+0x5eb/0x8f0 drivers/video/fbdev/core/fbcon.c:2972 fbcon_event_notify+0x1b2/0x1d54 drivers/video/fbdev/core/fbcon.c:3347 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93 __blocking_notifier_call_chain kernel/notifier.c:317 [inline] __blocking_notifier_call_chain kernel/notifier.c:304 [inline] blocking_notifier_call_chain kernel/notifier.c:328 [inline] blocking_notifier_call_chain+0x85/0xa0 kernel/notifier.c:325 fb_set_var+0xc39/0xe00 drivers/video/fbdev/core/fbmem.c:1042 do_fb_ioctl+0x450/0x9c0 drivers/video/fbdev/core/fbmem.c:1115 fb_ioctl+0xdd/0x130 drivers/video/fbdev/core/fbmem.c:1230 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcda/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c829 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f02dc21dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004e4860 RCX: 000000000045c829 RDX: 0000000020000000 RSI: 0000000000004601 RDI: 0000000000000004 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000002f2 R14: 00000000004c54c8 R15: 00007f02dc21e6d4