netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. BTRFS error (device loop3): open_ctree failed IPv6: ADDRCONF(NETDEV_UP): vlan71: link is not ready ====================================================== WARNING: possible circular locking dependency detected 4.14.222-syzkaller #0 Not tainted ------------------------------------------------------ kworker/0:0/28708 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 __alloc_workqueue_key+0xd50/0x1080 kernel/workqueue.c:4086 sb_init_dio_done_wq+0x34/0x80 fs/direct-io.c:624 do_blockdev_direct_IO fs/direct-io.c:1286 [inline] __blockdev_direct_IO+0x3dea/0xdc60 fs/direct-io.c:1422 ext4_direct_IO_write fs/ext4/inode.c:3725 [inline] ext4_direct_IO+0x888/0x1b80 fs/ext4/inode.c:3866 generic_file_direct_write+0x1df/0x420 mm/filemap.c:2958 __generic_file_write_iter+0x2a2/0x590 mm/filemap.c:3137 ext4_file_write_iter+0x7c5/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/0:0/28708: #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: 0 PID: 28708 Comm: kworker/0:0 Not tainted 4.14.222-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 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. IPv6: ADDRCONF(NETDEV_UP): vlan73: link is not ready print_req_error: I/O error, dev loop5, sector 1 Buffer I/O error on dev loop5, logical block 1, async page read print_req_error: I/O error, dev loop5, sector 2 Buffer I/O error on dev loop5, logical block 2, async page read print_req_error: I/O error, dev loop5, sector 3 Buffer I/O error on dev loop5, logical block 3, async page read print_req_error: I/O error, dev loop5, sector 4 Buffer I/O error on dev loop5, logical block 4, async page read print_req_error: I/O error, dev loop5, sector 5 Buffer I/O error on dev loop5, logical block 5, async page read BTRFS info (device loop3): unrecognized mount option 't' netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. print_req_error: I/O error, dev loop2, sector 0 BTRFS error (device loop3): open_ctree failed IPv6: ADDRCONF(NETDEV_UP): vlan75: link is not ready BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. IPv6: ADDRCONF(NETDEV_UP): vlan6: link is not ready BTRFS info (device loop3): unrecognized mount option 't' FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 11878 Comm: syz-executor.2 Not tainted 4.14.222-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 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 should_failslab+0xd6/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc_node mm/slab.c:3297 [inline] kmem_cache_alloc_node+0x263/0x410 mm/slab.c:3640 __alloc_skb+0x5c/0x510 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:980 [inline] netlink_alloc_large_skb net/netlink/af_netlink.c:1159 [inline] netlink_sendmsg+0x901/0xb80 net/netlink/af_netlink.c:1853 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x465ef9 RSP: 002b:00007f9a06a18188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9 RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000007 RBP: 00007f9a06a181d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffe1a86b79f R14: 00007f9a06a18300 R15: 0000000000022000 BTRFS error (device loop3): open_ctree failed BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed netlink: 40 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready BTRFS info (device loop3): unrecognized mount option 't' netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS error (device loop3): open_ctree failed BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS info (device loop3): unrecognized mount option 't' netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS error (device loop3): open_ctree failed IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS info (device loop3): unrecognized mount option 't' IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready BTRFS error (device loop3): open_ctree failed BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready BTRFS info (device loop3): unrecognized mount option 't' IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready BTRFS error (device loop3): open_ctree failed BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed BTRFS info (device loop3): unrecognized mount option 't' nla_parse: 14 callbacks suppressed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS error (device loop3): open_ctree failed IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS info (device loop3): unrecognized mount option 't' netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS error (device loop3): open_ctree failed IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed netlink: 24 bytes leftover after parsing attributes in process `syz-executor.2'. IPv6: ADDRCONF(NETDEV_UP): vlan8: link is not ready BTRFS info (device loop3): unrecognized mount option 't' BTRFS error (device loop3): open_ctree failed