ptrace attach of "/root/syz-executor.3"[10196] was attempted by "/root/syz-executor.3"[10200] ====================================================== WARNING: possible circular locking dependency detected 4.14.234-syzkaller #0 Not tainted ------------------------------------------------------ kworker/1:2/3458 is trying to acquire lock: (&sb->s_type->i_mutex_key#10){++++}, at: [] inode_lock include/linux/fs.h:719 [inline] (&sb->s_type->i_mutex_key#10){++++}, at: [] __generic_file_fsync+0x9e/0x190 fs/libfs.c:989 but task is already holding lock: ((&dio->complete_work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 ((&dio->complete_work)){+.+.}: process_one_work+0x736/0x14a0 kernel/workqueue.c:2092 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 -> #1 ("dio/%s"sb->s_id){+.+.}: flush_workqueue+0xfa/0x1310 kernel/workqueue.c:2624 drain_workqueue+0x177/0x3e0 kernel/workqueue.c:2789 destroy_workqueue+0x71/0x710 kernel/workqueue.c:4109 sb_init_dio_done_wq+0x61/0x80 fs/direct-io.c:635 do_blockdev_direct_IO fs/direct-io.c:1287 [inline] __blockdev_direct_IO+0x3df1/0xdcb0 fs/direct-io.c:1423 ext4_direct_IO_write fs/ext4/inode.c:3724 [inline] ext4_direct_IO+0x888/0x1b80 fs/ext4/inode.c:3865 generic_file_direct_write+0x1df/0x420 mm/filemap.c:2958 __generic_file_write_iter+0x2a2/0x590 mm/filemap.c:3137 ext4_file_write_iter+0x276/0xd20 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1778 [inline] aio_write+0x2ed/0x560 fs/aio.c:1553 io_submit_one fs/aio.c:1641 [inline] do_io_submit+0x847/0x1570 fs/aio.c:1709 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb -> #0 (&sb->s_type->i_mutex_key#10){++++}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 down_write+0x34/0x90 kernel/locking/rwsem.c:54 inode_lock include/linux/fs.h:719 [inline] __generic_file_fsync+0x9e/0x190 fs/libfs.c:989 ext4_sync_file+0x8ed/0x12c0 fs/ext4/fsync.c:118 vfs_fsync_range+0x103/0x260 fs/sync.c:196 generic_write_sync include/linux/fs.h:2682 [inline] dio_complete+0x561/0x8d0 fs/direct-io.c:330 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 other info that might help us debug this: Chain exists of: &sb->s_type->i_mutex_key#10 --> "dio/%s"sb->s_id --> (&dio->complete_work) Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock((&dio->complete_work)); lock("dio/%s"sb->s_id); lock((&dio->complete_work)); lock(&sb->s_type->i_mutex_key#10); *** DEADLOCK *** 2 locks held by kworker/1:2/3458: #0: ("dio/%s"sb->s_id){+.+.}, at: [] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087 #1: ((&dio->complete_work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091 stack backtrace: CPU: 1 PID: 3458 Comm: kworker/1:2 Not tainted 4.14.234-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: dio/sda1 dio_aio_complete_work Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 down_write+0x34/0x90 kernel/locking/rwsem.c:54 inode_lock include/linux/fs.h:719 [inline] __generic_file_fsync+0x9e/0x190 fs/libfs.c:989 ext4_sync_file+0x8ed/0x12c0 fs/ext4/fsync.c:118 vfs_fsync_range+0x103/0x260 fs/sync.c:196 generic_write_sync include/linux/fs.h:2682 [inline] dio_complete+0x561/0x8d0 fs/direct-io.c:330 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 WARNING: can't dereference registers at 0000000000000356 for ip entry_SYSCALL_64_after_hwframe+0x46/0xbb Unknown ioctl 35123 Unknown ioctl 35123 Unknown ioctl 35123 Unknown ioctl 35123 ptrace attach of "/root/syz-executor.4"[10304] was attempted by "/root/syz-executor.4"[10306] capability: warning: `syz-executor.5' uses 32-bit capabilities (legacy support in use) netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'. ptrace attach of "/root/syz-executor.2"[10390] was attempted by "/root/syz-executor.2"[10391] audit: type=1326 audit(1622244198.669:8): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10383 comm="syz-executor.1" exe="/root/syz-executor.1" sig=31 arch=c000003e syscall=202 compat=0 ip=0x4665d9 code=0x0 pci 0000:00:05.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem ptrace attach of "/root/syz-executor.5"[10507] was attempted by "/root/syz-executor.5"[10509] overlayfs: unrecognized mount option "{&" or missing value overlayfs: filesystem on './file0' not supported as upperdir hrtimer: interrupt took 29669 ns ptrace attach of "/root/syz-executor.1"[10663] was attempted by "/root/syz-executor.1"[10666] ptrace attach of "/root/syz-executor.1"[10833] was attempted by "/root/syz-executor.1"[10834] ptrace attach of "/root/syz-executor.1"[8026] was attempted by "/root/syz-executor.1"[10843] ptrace attach of "/root/syz-executor.1"[8026] was attempted by "/root/syz-executor.1"[10854] ptrace attach of "/root/syz-executor.1"[8026] was attempted by "/root/syz-executor.1"[10871] ptrace attach of "/root/syz-executor.5"[10881] was attempted by "/root/syz-executor.5"[10885] bridge: RTM_NEWNEIGH with invalid state 0x0 bridge: RTM_NEWNEIGH with invalid state 0x0 L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details. FAT-fs (loop0): bogus number of reserved sectors FAT-fs (loop0): Can't find a valid FAT filesystem FAT-fs (loop0): bogus number of reserved sectors FAT-fs (loop0): Can't find a valid FAT filesystem FAT-fs (loop3): Unrecognized mount option "flz_" or missing value netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'. __report_access: 3 callbacks suppressed ptrace attach of "/root/syz-executor.4"[8028] was attempted by "0^n$&~es1Ru*7 -\x5cbVlpiE )>5e5\x0bXSu1`^$_jůͩUf\x09׶6`lm\x0b:,Yg6h&fAT⽤Rt[y~ 1'8pfs5ջZǠ\x1b%gׇ̽!هX\x222є33}䫢'R#ōTQ\x5c]Sg\x0atLLʴȱo{ʚvVZ;غT]s>5\x0ck'2t 54{9ѲkՐ3dF3 ó]E\x0d_=}5#폞\x07Y}ǐ\x07-cxX֓N'$Bz%<̋Y\x1bԂqd%y^j`#I0Xt鵒]iHqf\x5ch:\x09VQy\x09<[MBW%b@x.\x0aXPv1`ҷZ(9`I9ZiO׶`*y:;\x0azd'g=3\x1b-\x0a526ޟχ\x0b%')U(ANAM>zfx wЎRA9#:JZfG2n`Ab:>i\x09;uSrP\x0b?\x5cqZ?A4m\x22?E3K !J_!m3^+->ZNWnMz~j]3`$a̚`f\x0c/g\x22.̳PoXKR\x0c\ ptrace attach of "/root/syz-executor.4"[8028] was attempted by "0^n$&~es1Ru*7 -\x5cbVlpiE )>5e5\x0bXSu1`^$_jůͩUf\x09׶6`lm\x0b:,Yg6h&fAT⽤Rt[y~ 1'8pfs5ջZǠ\x1b%gׇ̽!هX\x222є33}䫢'R#ōTQ\x5c]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E\x0d_=}5#폞\x07Y}ǐ\x07-cxX֓N'$Bz%<̋Y\x1bԂqd%y^j`#I0Xt鵒]iHqf\x5ch:\x09VQy\x09<[MBW%b@x.\x0aXPv1`ҷZ(9`I9ZiO׶`*y:;\x0azd'g=3\x1b-\x0a526ޟχ\x0b%')U(ANAM>zfx wЎRA9#:JZfG2n`Ab:>i\x09;uSrP\x0b?\x5cqZ?A4m\x22?E3K !J_!m3^+->ZNWnMz~j]3`$a̚`f\x0c/g\x22.̳PoXKR\x0c\ audit: type=1800 audit(1622244203.889:9): pid=11158 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14022 res=0 netlink: 72 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 72 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 72 bytes leftover after parsing attributes in process `syz-executor.2'. ptrace attach of "/root/syz-executor.4"[8028] was attempted by "0^n$&~es1Ru*7 -\x5cbVlpiE )>5e5\x0bXSu1`^$_jůͩUf\x09׶6`lm\x0b:,Yg6h&fAT⽤Rt[y~ 1'8pfs5ջZǠ\x1b%gׇ̽!هX\x222є33}䫢'R#ōTQ\x5c]Sg\x0atLLʴȱo{ʚvVZ;غT]s>5\x0ck'2t 54{9ѲkՐ3dF3 ó]E\x0d_=}5#폞\x07Y}ǐ\x07-cxX֓N'$Bz%<̋Y\x1bԂqd%y^j`#I0Xt鵒]iHqf\x5ch:\x09VQy\x09<[MBW%b@x.\x0aXPv1`ҷZ(9`I9ZiO׶`*y:;\x0azd'g=3\x1b-\x0a526ޟχ\x0b%')U(ANAM>zfx wЎRA9#:JZfG2n`Ab:>i\x09;uSrP\x0b?\x5cqZ?A4m\x22?E3K !J_!m3^+->ZNWnMz~j]3`$a̚`f\x0c/g\x22.̳PoXKR\x0c\ audit: type=1804 audit(1622244204.069:10): pid=11160 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir561451210/syzkaller.quMGmJ/87/bus" dev="sda1" ino=14022 res=1 ptrace attach of "/root/syz-executor.4"[8028] was attempted by "0^n$&~es1Ru*7 -\x5cbVlpiE )>5e5\x0bXSu1`^$_jůͩUf\x09׶6`lm\x0b:,Yg6h&fAT⽤Rt[y~ 1'8pfs5ջZǠ\x1b%gׇ̽!هX\x222є33}䫢'R#ōTQ\x5c]Sg\x0atLLʴȱo{ʚvVZ;غT]s>5\x0ck'2t 54{9ѲkՐ3dF3 ó]E\x0d_=}5#폞\x07Y}ǐ\x07-cxX֓N'$Bz%<̋Y\x1bԂqd%y^j`#I0Xt鵒]iHqf\x5ch:\x09VQy\x09<[MBW%b@x.\x0aXPv1`ҷZ(9`I9ZiO׶`*y:;\x0azd'g=3\x1b-\x0a526ޟχ\x0b%')U(ANAM>zfx wЎRA9#:JZfG2n`Ab:>i\x09;uSrP\x0b?\x5cqZ?A4m\x22?E3K !J_!m3^+->ZNWnMz~j]3`$a̚`f\x0c/g\x22.̳PoXKR\x0c\ audit: type=1804 audit(1622244204.239:11): pid=11160 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir561451210/syzkaller.quMGmJ/87/bus" dev="sda1" ino=14022 res=1 audit: type=1800 audit(1622244204.399:12): pid=11193 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.0" name="bus" dev="sda1" ino=14019 res=0 audit: type=1800 audit(1622244204.409:13): pid=11194 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14020 res=0 audit: type=1804 audit(1622244204.439:14): pid=11203 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir561451210/syzkaller.quMGmJ/88/bus" dev="sda1" ino=14020 res=1 audit: type=1804 audit(1622244204.539:15): pid=11202 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir555674837/syzkaller.kfd1tn/85/bus" dev="sda1" ino=14019 res=1 ptrace attach of "/root/syz-executor.4"[8028] was attempted by "0^n$&~es1Ru*7 -\x5cbVlpiE )>5e5\x0bXSu1`^$_jůͩUf\x09׶6`lm\x0b:,Yg6h&fAT⽤Rt[y~ 1'8pfs5ջZǠ\x1b%gׇ̽!هX\x222є33}䫢'R#ōTQ\x5c]Sg\x0atLLʴȱo{ʚvVZ;غT]s>5\x0ck'2t 54{9ѲkՐ3dF3 ó]E\x0d_=}5#폞\x07Y}ǐ\x07-cxX֓N'$Bz%<̋Y\x1bԂqd%y^j`#I0Xt鵒]iHqf\x5ch:\x09VQy\x09<[MBW%b@x.\x0aXPv1`ҷZ(9`I9ZiO׶`*y:;\x0azd'g=3\x1b-\x0a526ޟχ\x0b%')U(ANAM>zfx wЎRA9#:JZfG2n`Ab:>i\x09;uSrP\x0b?\x5cqZ?A4m\x22?E3K !J_!m3^+->ZNWnMz~j]3`$a̚`f\x0c/g\x22.̳PoXKR\x0c\ audit: type=1800 audit(1622244204.869:16): pid=11219 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14016 res=0 ptrace attach of "/root/syz-executor.0"[8025] was attempted by "0^n$&~es1Ru*7 -\x5cbVlpiE )>5e5\x0bXSu1`^$_jůͩUf\x09׶6`lm\x0b:,Yg6h&fAT⽤Rt[y~ 1'8pfs5ջZǠ\x1b%gׇ̽!هX\x222є33}䫢'R#ōTQ\x5c]Sg\x0atLLʴȱo{ʚvVZ;غT]s>5\x0ck'2t 54{9ѲkՐ3dF3 ó]E\x0d_=}5#폞\x07Y}ǐ\x07-cxX֓N'$Bz%<̋Y\x1bԂqd%y^j`#I0Xt鵒]iHqf\x5ch:\x09VQy\x09<[MBW%b@x.\x0aXPv1`ҷZ(9`I9ZiO׶`*y:;\x0azd'g=3\x1b-\x0a526ޟχ\x0b%')U(ANAM>zfx wЎRA9#:JZfG2n`Ab:>i\x09;uSrP\x0b?\x5cqZ?A4m\x22?E3K !J_!m3^+->ZNWnMz~j]3`$a̚`f\x0c/g\x22.̳PoXKR\x0c\ audit: type=1804 audit(1622244204.959:17): pid=11231 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir561451210/syzkaller.quMGmJ/89/bus" dev="sda1" ino=14016 res=1 ptrace attach of "/root/syz-executor.4"[8028] was attempted by "0^n$&~es1Ru*7 -\x5cbVlpiE )>5e5\x0bXSu1`^$_jůͩUf\x09׶6`lm\x0b:,Yg6h&fAT⽤Rt[y~ 1'8pfs5ջZǠ\x1b%gׇ̽!هX\x222є33}䫢'R#ōTQ\x5c]Sg\x0atLLʴȱo{ʚvVZ;غT]s>5\x0ck'2t 54{9ѲkՐ3dF3 ó]E\x0d_=}5#폞\x07Y}ǐ\x07-cxX֓N'$Bz%<̋Y\x1bԂqd%y^j`#I0Xt鵒]iHqf\x5ch:\x09VQy\x09<[MBW%b@x.\x0aXPv1`ҷZ(9`I9ZiO׶`*y:;\x0azd'g=3\x1b-\x0a526ޟχ\x0b%')U(ANAM>zfx wЎRA9#:JZfG2n`Ab:>i\x09;uSrP\x0b?\x5cqZ?A4m\x22?E3K !J_!m3^+->ZNWnMz~j]3`$a̚`f\x0c/g\x22.̳PoXKR\x0c\ audit: type=1800 audit(1622244205.139:18): pid=11255 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.3" name="bus" dev="sda1" ino=14016 res=0 ptrace attach of "/root/syz-executor.0"[8025] was attempted by "0^n$&~es1Ru*7 -\x5cbVlpiE )>5e5\x0bXSu1`^$_jůͩUf\x09׶6`lm\x0b:,Yg6h&fAT⽤Rt[y~ 1'8pfs5ջZǠ\x1b%gׇ̽!هX\x222є33}䫢'R#ōTQ\x5c]Sg\x0atLLʴȱo{ʚvVZ;غT]s>5\x0ck'2t 54{9ѲkՐ3dF3 ó]E\x0d_=}5#폞\x07Y}ǐ\x07-cxX֓N'$Bz%<̋Y\x1bԂqd%y^j`#I0Xt鵒]iHqf\x5ch:\x09VQy\x09<[MBW%b@x.\x0aXPv1`ҷZ(9`I9ZiO׶`*y:;\x0azd'g=3\x1b-\x0a526ޟχ\x0b%')U(ANAM>zfx wЎRA9#:JZfG2n`Ab:>i\x09;uSrP\x0b?\x5cqZ?A4m\x22?E3K !J_!m3^+->ZNWnMz~j]3`$a̚`f\x0c/g\x22.̳PoXKR\x0c\