EXT4-fs: Warning: mounting with data=journal disables delayed allocation, dioread_nolock, O_DIRECT and fast_commit support! EXT4-fs (loop3): encrypted files will use data=ordered instead of data journaling mode EXT4-fs (loop3): mounted filesystem with journalled data mode. Quota mode: journalled. ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.3.15/4454 is trying to acquire lock: ffff88804e85c0a8 (&dquot->dq_lock ){+.+.}-{3:3} , at: dquot_acquire+0x63/0x520 fs/quota/dquot.c:488 but task is already holding lock: ffff888077c5c990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x2014/0x2240 fs/jbd2/transaction.c:463 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #4 ( jbd2_handle){++++}-{0:0}: wait_transaction_locked+0x1bf/0x270 fs/jbd2/transaction.c:177 add_transaction_credits fs/jbd2/transaction.c:241 [inline] start_this_handle+0x7e7/0x2240 fs/jbd2/transaction.c:422 jbd2__journal_start+0x2b7/0x5a0 fs/jbd2/transaction.c:520 jbd2_journal_start+0x26/0x30 fs/jbd2/transaction.c:559 ocfs2_start_trans+0x3b0/0x6f0 fs/ocfs2/journal.c:386 ocfs2_release_dquot+0x474/0xbf0 fs/ocfs2/quota_global.c:749 quota_release_workfn+0x361/0x5e0 fs/quota/dquot.c:875 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 -> #3 (&journal->j_trans_barrier){.+.+}-{3:3}: down_read+0x42/0x2d0 kernel/locking/rwsem.c:1520 ocfs2_start_trans+0x3a4/0x6f0 fs/ocfs2/journal.c:384 ocfs2_modify_bh+0xe0/0x4c0 fs/ocfs2/quota_local.c:101 ocfs2_local_read_info+0xdba/0x12d0 fs/ocfs2/quota_local.c:788 dquot_load_quota_sb+0x72f/0xa80 fs/quota/dquot.c:2495 dquot_load_quota_inode+0x2d3/0x5c0 fs/quota/dquot.c:2532 ocfs2_enable_quotas+0x1c0/0x4a0 fs/ocfs2/super.c:927 ocfs2_fill_super+0x4126/0x5050 fs/ocfs2/super.c:1140 mount_bdev+0x28a/0x3c0 fs/super.c:1454 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa50 fs/namespace.c:3108 do_mount fs/namespace.c:3482 [inline] __do_sys_mount fs/namespace.c:3690 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3667 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #2 (sb_internal#3){.+.+}-{0:0}: percpu_down_read include/linux/percpu-rwsem.h:51 [inline] __sb_start_write include/linux/fs.h:1899 [inline] sb_start_intwrite include/linux/fs.h:2021 [inline] ocfs2_start_trans+0x2a5/0x6f0 fs/ocfs2/journal.c:382 ocfs2_acquire_dquot+0x69a/0xb80 fs/ocfs2/quota_global.c:848 dqget+0x713/0xbb0 fs/quota/dquot.c:1013 __dquot_initialize+0x3a9/0xd00 fs/quota/dquot.c:1542 ocfs2_get_init_inode+0x144/0x1b0 fs/ocfs2/namei.c:202 ocfs2_mknod+0xbd1/0x2500 fs/ocfs2/namei.c:310 ocfs2_create+0x1b6/0x4b0 fs/ocfs2/namei.c:675 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0x11b9/0x2f10 fs/namei.c:3835 do_filp_open+0x1ee/0x420 fs/namei.c:3865 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #1 (&ocfs2_quota_ip_alloc_sem_key){++++}-{3:3}: down_write+0x36/0x60 kernel/locking/rwsem.c:1573 ocfs2_create_local_dquot+0x19a/0x1900 fs/ocfs2/quota_local.c:1254 ocfs2_acquire_dquot+0x7e6/0xb80 fs/ocfs2/quota_global.c:871 dqget+0x713/0xbb0 fs/quota/dquot.c:1013 __dquot_initialize+0x3a9/0xd00 fs/quota/dquot.c:1542 ocfs2_get_init_inode+0x144/0x1b0 fs/ocfs2/namei.c:202 ocfs2_mknod+0xbd1/0x2500 fs/ocfs2/namei.c:310 ocfs2_create+0x1b6/0x4b0 fs/ocfs2/namei.c:675 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0x11b9/0x2f10 fs/namei.c:3835 do_filp_open+0x1ee/0x420 fs/namei.c:3865 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #0 (&dquot->dq_lock){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a03/0x7ea0 kernel/locking/lockdep.c:5171 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12d/0xb40 kernel/locking/mutex.c:747 dquot_acquire+0x63/0x520 fs/quota/dquot.c:488 ext4_acquire_dquot+0x2e3/0x4a0 fs/ext4/super.c:6873 dqget+0x713/0xbb0 fs/quota/dquot.c:1013 __dquot_initialize+0x3a9/0xd00 fs/quota/dquot.c:1542 ext4_create+0x92/0x470 fs/ext4/namei.c:2877 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0x11b9/0x2f10 fs/namei.c:3835 do_filp_open+0x1ee/0x420 fs/namei.c:3865 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 other info that might help us debug this: Chain exists of: &dquot->dq_lock --> &journal->j_trans_barrier --> jbd2_handle Possible unsafe locking scenario: CPU0 CPU1 ---- ---- rlock(jbd2_handle); lock( &journal->j_trans_barrier); lock(jbd2_handle); lock(&dquot->dq_lock); *** DEADLOCK *** 3 locks held by syz.3.15/4454: #0: ffff88805332e460 (sb_writers#4){.+.+}-{0:0} , at: mnt_want_write+0x3d/0x90 fs/namespace.c:402 #1: ffff888073f55440 (&type->i_mutex_dir_key#3){++++}-{3:3} , at: inode_lock include/linux/fs.h:766 [inline] , at: open_last_lookups fs/namei.c:3598 [inline] , at: path_openat+0x7e8/0x2f10 fs/namei.c:3835 #2: ffff888077c5c990 (jbd2_handle ){++++}-{0:0} , at: start_this_handle+0x2014/0x2240 fs/jbd2/transaction.c:463 stack backtrace: CPU: 0 PID: 4454 Comm: syz.3.15 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 check_noncircular+0x2f8/0x400 kernel/locking/lockdep.c:2215 check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a03/0x7ea0 kernel/locking/lockdep.c:5171 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12d/0xb40 kernel/locking/mutex.c:747 dquot_acquire+0x63/0x520 fs/quota/dquot.c:488 ext4_acquire_dquot+0x2e3/0x4a0 fs/ext4/super.c:6873 dqget+0x713/0xbb0 fs/quota/dquot.c:1013 __dquot_initialize+0x3a9/0xd00 fs/quota/dquot.c:1542 ext4_create+0x92/0x470 fs/ext4/namei.c:2877 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0x11b9/0x2f10 fs/namei.c:3835 do_filp_open+0x1ee/0x420 fs/namei.c:3865 do_sys_openat2+0x14b/0x4f0 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fb4af7a9b59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb4b06be028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb4afa35fa0 RCX: 00007fb4af7a9b59 RDX: 0000000000143041 RSI: 0000200000003180 RDI: ffffffffffffff9c RBP: 00007fb4af83a18b R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000001d8 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb4afa36038 R14: 00007fb4afa35fa0 R15: 00007ffd5fac5c48 kcov: kcov_task_exit: t = ffff88802d16bc00, kcov->t = ffff88802d16bc00 ffff88801d794000 name hci2 bus 0 hci2: err 0x13 hci2 ffff88801d794000 hci2: hci2: err 0x13 hci2: cancelling interleave scan hci2 state 0 -> 0 All LE pending actions cleared hdev hci2 hcon ffff88807a0aa000 reason 22 hcon ffff88807a0aa000 conn ffff88807b456000, err 103 hci2 hcon ffff88807a0aa000 chan ffff888023992c00 hci2 hcon ffff88807a0aa000 handle 201 hcon ffff88807a0aa000 hci2: conn ffff88807a0aa000 device: 'hci2:201': device_unregister kernfs runtime_status: removing kernfs control: removing kernfs runtime_suspended_time: removing kernfs runtime_active_time: removing kernfs autosuspend_delay_ms: removing kernfs power: removing kernfs device: removing kernfs subsystem: removing kernfs hci2:201: removing kernfs uevent: removing PM: Removing info for No Bus:hci2:201 kobject: 'hci2:201' (ffff88807a0aa618): kobject_uevent_env kobject: 'hci2:201' (ffff88807a0aa618): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/hci2:201' kernfs hci2:201: removing kobject: 'hci2:201' (ffff88807a0aa618): kobject_cleanup, parent 0000000000000000 kobject: 'hci2:201' (ffff88807a0aa618): calling ktype release kobject: 'hci2:201': free name hci2 orig refcnt 10 hcon ffff888076076000 reason 22 hcon ffff888076076000 conn ffff88807b455800, err 103 hci2 hcon ffff888076076000 chan ffff888023992d00 hci2 hcon ffff888076076000 handle 200 hcon ffff888076076000 hci2: conn ffff888076076000 device: 'hci2:200': device_unregister kernfs runtime_status: removing kernfs control: removing kernfs runtime_suspended_time: removing kernfs runtime_active_time: removing kernfs autosuspend_delay_ms: removing kernfs power: removing kernfs device: removing kernfs subsystem: removing kernfs hci2:200: removing kernfs uevent: removing PM: Removing info for No Bus:hci2:200 kobject: 'hci2:200' (ffff888076076618): kobject_uevent_env kobject: 'hci2:200' (ffff888076076618): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/hci2:200' kernfs hci2:200: removing kobject: 'hci2:200' (ffff888076076618): kobject_cleanup, parent 0000000000000000 kobject: 'hci2:200' (ffff888076076618): calling ktype release kobject: 'hci2:200': free name hci2 orig refcnt 7 hdev hci2 event 4 hdev 0000000000000000 len 8 hci2: Cleanup of MSFT extension hdev hci2 event 8 hci2 orig refcnt 6 channel 3 len 6 channel 3 len 8 hdev hci2 event 2 hdev 0000000000000000 len 8 kernfs runtime_status: removing kernfs control: removing kernfs runtime_suspended_time: removing kernfs runtime_active_time: removing kernfs autosuspend_delay_ms: removing kernfs power: removing kernfs device: removing kernfs subsystem: removing kernfs rfkill7: removing kernfs uevent: removing kernfs name: removing kernfs type: removing kernfs index: removing kernfs persistent: removing kernfs state: removing kernfs soft: removing kernfs hard: removing kernfs hard_block_reasons: removing PM: Removing info for No Bus:rfkill7 kobject: 'rfkill7' (ffff88801d689110): kobject_uevent_env kobject: 'rfkill7' (ffff88801d689110): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/rfkill7' kernfs rfkill7: removing kobject: 'rfkill7' (ffff88801d689110): kobject_cleanup, parent 0000000000000000 kobject: 'rfkill7' (ffff88801d689110): calling ktype release kobject: 'rfkill7': free name kernfs runtime_status: removing kernfs control: removing kernfs runtime_suspended_time: removing kernfs runtime_active_time: removing kernfs autosuspend_delay_ms: removing kernfs power: removing kernfs subsystem: removing kernfs hci2: removing kernfs uevent: removing PM: Removing info for No Bus:hci2 kobject: 'hci2' (ffff88801d795888): kobject_uevent_env kobject: 'hci2' (ffff88801d795888): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2' kernfs hci2: removing hci2 orig refcnt 2 kobject: 'hci2' (ffff88801d795888): kobject_cleanup, parent 0000000000000000 kobject: 'hci2' (ffff88801d795888): calling ktype release All LE connection parameters were removed hci2: Unregister MSFT extension kobject: 'hci2': free name