audit: type=1800 audit(1640351076.655:9): pid=9955 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed" comm="syz-executor.4" name="SYSV00000000" dev="hugetlbfs" ino=0 res=0 ====================================================== WARNING: possible circular locking dependency detected 4.14.259-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/9949 is trying to acquire lock: ("dio/%s"sb->s_id){+.+.}, at: [] flush_workqueue+0xcb/0x1310 kernel/workqueue.c:2622 but task is already holding lock: (&sb->s_type->i_mutex_key#22){++++}, at: [] inode_lock include/linux/fs.h:719 [inline] (&sb->s_type->i_mutex_key#22){++++}, at: [] generic_file_write_iter+0x99/0x650 mm/filemap.c:3205 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&sb->s_type->i_mutex_key#22){++++}: 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 fat_file_fsync+0x73/0x1f0 fs/fat/file.c:165 vfs_fsync_range+0x103/0x260 fs/sync.c:196 generic_write_sync include/linux/fs.h:2684 [inline] dio_complete+0x561/0x8d0 fs/direct-io.c:330 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 -> #1 ((&dio->complete_work)){+.+.}: process_one_work+0x736/0x14a0 kernel/workqueue.c:2093 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 -> #0 ("dio/%s"sb->s_id){+.+.}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 flush_workqueue+0xfa/0x1310 kernel/workqueue.c:2625 drain_workqueue+0x177/0x3e0 kernel/workqueue.c:2790 destroy_workqueue+0x71/0x710 kernel/workqueue.c:4116 __alloc_workqueue_key+0xd50/0x1080 kernel/workqueue.c:4093 sb_init_dio_done_wq+0x34/0x80 fs/direct-io.c:624 do_blockdev_direct_IO fs/direct-io.c:1287 [inline] __blockdev_direct_IO+0x3df1/0xdcb0 fs/direct-io.c:1423 blockdev_direct_IO include/linux/fs.h:2994 [inline] fat_direct_IO+0x19b/0x320 fs/fat/inode.c:275 generic_file_direct_write+0x1df/0x420 mm/filemap.c:2958 __generic_file_write_iter+0x2a2/0x590 mm/filemap.c:3137 generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208 call_write_iter include/linux/fs.h:1780 [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 other info that might help us debug this: Chain exists of: "dio/%s"sb->s_id --> (&dio->complete_work) --> &sb->s_type->i_mutex_key#22 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&sb->s_type->i_mutex_key#22); lock((&dio->complete_work)); lock(&sb->s_type->i_mutex_key#22); lock("dio/%s"sb->s_id); *** DEADLOCK *** 2 locks held by syz-executor.0/9949: #0: (sb_writers#14){.+.+}, at: [] file_start_write include/linux/fs.h:2714 [inline] #0: (sb_writers#14){.+.+}, at: [] aio_write+0x408/0x560 fs/aio.c:1552 #1: (&sb->s_type->i_mutex_key#22){++++}, at: [] inode_lock include/linux/fs.h:719 [inline] #1: (&sb->s_type->i_mutex_key#22){++++}, at: [] generic_file_write_iter+0x99/0x650 mm/filemap.c:3205 stack backtrace: CPU: 0 PID: 9949 Comm: syz-executor.0 Not tainted 4.14.259-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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 flush_workqueue+0xfa/0x1310 kernel/workqueue.c:2625 drain_workqueue+0x177/0x3e0 kernel/workqueue.c:2790 destroy_workqueue+0x71/0x710 kernel/workqueue.c:4116 __alloc_workqueue_key+0xd50/0x1080 kernel/workqueue.c:4093 sb_init_dio_done_wq+0x34/0x80 fs/direct-io.c:624 do_blockdev_direct_IO fs/direct-io.c:1287 [inline] __blockdev_direct_IO+0x3df1/0xdcb0 fs/direct-io.c:1423 blockdev_direct_IO include/linux/fs.h:2994 [inline] fat_direct_IO+0x19b/0x320 fs/fat/inode.c:275 generic_file_direct_write+0x1df/0x420 mm/filemap.c:2958 __generic_file_write_iter+0x2a2/0x590 mm/filemap.c:3137 generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208 call_write_iter include/linux/fs.h:1780 [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 RIP: 0033:0x7f604a2e6e99 RSP: 002b:00007f6048c5c168 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f604a3f9f60 RCX: 00007f604a2e6e99 RDX: 0000000020000540 RSI: 0000000000001801 RDI: 00007f604a3d5000 RBP: 00007f604a340ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffce904a13f R14: 00007f6048c5c300 R15: 0000000000022000 tc_dump_action: action bad kind netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'. tc_dump_action: action bad kind netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'. tc_dump_action: action bad kind netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'. netlink: 12 bytes leftover after parsing attributes in process `syz-executor.4'. vhci_hcd: Failed attach request for unsupported USB speed: UNKNOWN overlayfs: unrecognized mount option "uppvrdir=./file1" or missing value hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 vhci_hcd: Failed attach request for unsupported USB speed: UNKNOWN hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: hidraw0: HID v0.04 Device [syz1] on syz1 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 overlayfs: unrecognized mount option "uppvrdir=./file1" or missing value hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 audit: type=1804 audit(1640351079.255:10): pid=10380 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir232633770/syzkaller.rVVOP3/15/bus" dev="sda1" ino=13894 res=1 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 vhci_hcd: Failed attach request for unsupported USB speed: UNKNOWN hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 hid-generic 0000:0000:0000.0002: hidraw0: HID v0.04 Device [syz1] on syz1 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 overlayfs: unrecognized mount option "uppvrdir=./file1" or missing value overlayfs: unrecognized mount option "uppvrdir=./file1" or missing value hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 hid-generic 0000:0000:0000.0003: hidraw0: HID v0.04 Device [syz1] on syz1 audit: type=1804 audit(1640351080.226:11): pid=10495 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir924457068/syzkaller.xqZvvf/14/bus" dev="sda1" ino=13941 res=1 audit: type=1804 audit(1640351080.686:12): pid=10545 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.0" name="/root/syzkaller-testdir232633770/syzkaller.rVVOP3/17/bus" dev="sda1" ino=13937 res=1 audit: type=1804 audit(1640351080.756:13): pid=10546 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir046575835/syzkaller.hipEYj/25/bus" dev="sda1" ino=13938 res=1 print_req_error: I/O error, dev loop5, sector 0 audit: type=1804 audit(1640351081.216:14): pid=10574 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.3" name="/root/syzkaller-testdir924457068/syzkaller.xqZvvf/15/bus" dev="sda1" ino=13988 res=1 BTRFS: device fsid 05f3dc6f-78ad-47d2-bbc1-25707524c592 devid 1 transid 7 /dev/loop3 BTRFS error (device loop3): unsupported checksum algorithm 3 BTRFS error (device loop3): superblock checksum mismatch BTRFS error (device loop3): open_ctree failed print_req_error: I/O error, dev loop4, sector 0 print_req_error: I/O error, dev loop2, sector 0 BTRFS error (device loop3): unsupported checksum algorithm 3 SQUASHFS error: squashfs_read_data failed to read block 0x0 BTRFS error (device loop3): superblock checksum mismatch squashfs: SQUASHFS error: unable to read squashfs_super_block print_req_error: I/O error, dev loop4, sector 0 BTRFS error (device loop3): open_ctree failed SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block BTRFS error (device loop3): unsupported checksum algorithm 3 BTRFS error (device loop3): superblock checksum mismatch BTRFS error (device loop3): open_ctree failed SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block BTRFS error (device loop3): unsupported checksum algorithm 3 BTRFS error (device loop3): superblock checksum mismatch BTRFS error (device loop3): open_ctree failed SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block SQUASHFS error: squashfs_read_data failed to read block 0x0 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: unable to read squashfs_super_block SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block SQUASHFS error: squashfs_read_data failed to read block 0x0 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 print_req_error: I/O error, dev loop0, sector 0 print_req_error: I/O error, dev loop3, sector 0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 SQUASHFS error: squashfs_read_data failed to read block 0x0 print_req_error: I/O error, dev loop4, sector 0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 print_req_error: I/O error, dev loop3, sector 0 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: unable to read squashfs_super_block SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop5 SQUASHFS error: squashfs_read_data failed to read block 0x0 squashfs: SQUASHFS error: unable to read squashfs_super_block squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop4 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop2 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop1 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop3 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop3 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop3 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop3 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop3 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop3 squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop0 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop3 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: Can't find a SQUASHFS superblock on loop3 squashfs: SQUASHFS error: unable to read xattr id index table squashfs: SQUASHFS error: unable to read xattr id index table