[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.10.62' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 148.478397] [ 148.480085] ====================================================== [ 148.486393] WARNING: possible circular locking dependency detected [ 148.492709] 4.19.196-syzkaller #0 Not tainted [ 148.497208] ------------------------------------------------------ [ 148.503522] kworker/0:2/4382 is trying to acquire lock: [ 148.508880] 00000000490d175d (&sb->s_type->i_mutex_key#17){+.+.}, at: __generic_file_fsync+0xb0/0x1f0 [ 148.518795] [ 148.518795] but task is already holding lock: [ 148.524771] 00000000595c2088 ((work_completion)(&dio->complete_work)){+.+.}, at: process_one_work+0x79c/0x1570 [ 148.534931] [ 148.534931] which lock already depends on the new lock. [ 148.534931] [ 148.543248] [ 148.543248] the existing dependency chain (in reverse order) is: [ 148.550862] [ 148.550862] -> #2 ((work_completion)(&dio->complete_work)){+.+.}: [ 148.558615] worker_thread+0x64c/0x1130 [ 148.563111] kthread+0x33f/0x460 [ 148.567002] ret_from_fork+0x24/0x30 [ 148.571230] [ 148.571230] -> #1 ((wq_completion)"dio/%s"sb->s_id){+.+.}: [ 148.578479] drain_workqueue+0x1a5/0x460 [ 148.583062] destroy_workqueue+0x75/0x790 [ 148.587731] __alloc_workqueue_key+0xb76/0xed0 [ 148.592832] sb_init_dio_done_wq+0x34/0x90 [ 148.597586] __blockdev_direct_IO+0x5f55/0xef40 [ 148.602775] fat_direct_IO+0x1d1/0x370 [ 148.607280] generic_file_direct_write+0x208/0x4a0 [ 148.612740] __generic_file_write_iter+0x2d0/0x610 [ 148.618193] generic_file_write_iter+0x3f8/0x730 [ 148.623479] aio_write+0x37f/0x5c0 [ 148.627540] io_submit_one+0xecd/0x20c0 [ 148.632034] __se_sys_io_submit+0x11b/0x4a0 [ 148.636876] do_syscall_64+0xf9/0x620 [ 148.641198] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 148.646897] [ 148.646897] -> #0 (&sb->s_type->i_mutex_key#17){+.+.}: [ 148.653671] down_write+0x34/0x90 [ 148.657647] __generic_file_fsync+0xb0/0x1f0 [ 148.662576] fat_file_fsync+0x73/0x200 [ 148.666986] vfs_fsync_range+0x13a/0x220 [ 148.671567] dio_complete+0x763/0xac0 [ 148.675891] process_one_work+0x864/0x1570 [ 148.680648] worker_thread+0x64c/0x1130 [ 148.685143] kthread+0x33f/0x460 [ 148.689029] ret_from_fork+0x24/0x30 [ 148.693255] [ 148.693255] other info that might help us debug this: [ 148.693255] [ 148.701398] Chain exists of: [ 148.701398] &sb->s_type->i_mutex_key#17 --> (wq_completion)"dio/%s"sb->s_id --> (work_completion)(&dio->complete_work) [ 148.701398] [ 148.716763] Possible unsafe locking scenario: [ 148.716763] [ 148.722816] CPU0 CPU1 [ 148.727472] ---- ---- [ 148.732130] lock((work_completion)(&dio->complete_work)); [ 148.737834] lock((wq_completion)"dio/%s"sb->s_id); [ 148.745539] lock((work_completion)(&dio->complete_work)); [ 148.753761] lock(&sb->s_type->i_mutex_key#17); [ 148.758603] [ 148.758603] *** DEADLOCK *** [ 148.758603] [ 148.764757] 2 locks held by kworker/0:2/4382: [ 148.769240] #0: 000000003d700b0a ((wq_completion)"dio/%s"sb->s_id){+.+.}, at: process_one_work+0x767/0x1570 [ 148.779229] #1: 00000000595c2088 ((work_completion)(&dio->complete_work)){+.+.}, at: process_one_work+0x79c/0x1570 [ 148.789817] [ 148.789817] stack backtrace: [ 148.794318] CPU: 0 PID: 4382 Comm: kworker/0:2 Not tainted 4.19.196-syzkaller #0 [ 148.801845] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 148.811205] Workqueue: dio/loop0 dio_aio_complete_work [ 148.816481] Call Trace: [ 148.819071] dump_stack+0x1fc/0x2ef [ 148.822706] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 148.828497] __lock_acquire+0x30c9/0x3ff0 [ 148.832633] ? pagevec_lookup_range_tag+0x3b/0x80 [ 148.837474] ? mark_held_locks+0xf0/0xf0 [ 148.841524] ? __filemap_fdatawait_range+0x356/0x510 [ 148.846624] ? wait_on_page_bit+0x3f0/0x3f0 [ 148.850932] ? delete_from_page_cache_batch+0xcc0/0xcc0 [ 148.856279] lock_acquire+0x170/0x3c0 [ 148.860079] ? __generic_file_fsync+0xb0/0x1f0 [ 148.864659] down_write+0x34/0x90 [ 148.868095] ? __generic_file_fsync+0xb0/0x1f0 [ 148.872672] __generic_file_fsync+0xb0/0x1f0 [ 148.877084] fat_file_fsync+0x73/0x200 [ 148.880961] ? fat_trim_fs+0x1030/0x1030 [ 148.885003] vfs_fsync_range+0x13a/0x220 [ 148.889044] dio_complete+0x763/0xac0 [ 148.892826] process_one_work+0x864/0x1570 [ 148.897045] ? pwq_dec_nr_in_flight+0x2d0/0x2d0 [ 148.901699] worker_thread+0x64c/0x1130 [ 148.905657] ? __kthread_parkme+0x133/0x1e0 [ 148.910004] ? process_one_work+0x1570/0x1570 [ 148.914480] kthread+0x33f/0x460 [ 148.917826] ? kthread_park+0x180/0x180 [ 148.921783] ret_from_fork+0x24/0x30 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 149.518519] Page cache invalidation failure on direct I/O. Possible data corruption due to collision with buffered I/O! [ 149.530653] File: /root/file0/bus PID: 3545 Comm: kworker/1:2 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program