(kworker/u4:2,154,0):_ocfs2_free_clusters:2605 ERROR: status = -30
(kworker/u4:2,154,0):ocfs2_replay_truncate_records:5974 ERROR: status = -30
(kworker/u4:2,154,0):__ocfs2_flush_truncate_log:6055 ERROR: status = -30
(kworker/u4:2,154,0):ocfs2_truncate_log_worker:6089 ERROR: status = -30
BUG: workqueue leaked lock or atomic: kworker/u4:2/0x00000000/154
last function: ocfs2_truncate_log_worker
3 locks held by kworker/u4:2/154:
#0: ffff88807b1ee650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5938 [inline]
#0: ffff88807b1ee650 (sb_internal#3){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x49f/0x1110 fs/ocfs2/alloc.c:6052
#1: ffff888024b9a0e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a6/0x6f0 fs/ocfs2/journal.c:374
#2: ffff888077a68990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x12d5/0x1560 fs/jbd2/transaction.c:462
CPU: 1 PID: 154 Comm: kworker/u4:2 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Workqueue: ocfs2_wq ocfs2_truncate_log_worker
Call Trace:
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
process_one_work+0xc68/0xff0 kernel/workqueue.c:2325
worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
======================================================
WARNING: possible circular locking dependency detected
syzkaller #0 Not tainted
------------------------------------------------------
kworker/u4:2/154 is trying to acquire lock:
ffff888017879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x75c/0xff0 kernel/workqueue.c:-1
but task is already holding lock:
ffff888077a68990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x12d5/0x1560 fs/jbd2/transaction.c:462
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #5 (jbd2_handle){++++}-{0:0}:
wait_transaction_locked+0x1bb/0x270 fs/jbd2/transaction.c:178
add_transaction_credits+0x104/0xcb0 fs/jbd2/transaction.c:242
start_this_handle+0x723/0x1560 fs/jbd2/transaction.c:423
jbd2__journal_start+0x2b7/0x5a0 fs/jbd2/transaction.c:521
__ext4_journal_start_sb+0x167/0x360 fs/ext4/ext4_jbd2.c:105
__ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline]
ext4_dirty_inode+0x8b/0x100 fs/ext4/inode.c:6084
__mark_inode_dirty+0x2c8/0xc90 fs/fs-writeback.c:2480
generic_update_time+0x1cd/0x1f0 fs/inode.c:1881
inode_update_time fs/inode.c:1894 [inline]
file_update_time+0x3c0/0x440 fs/inode.c:2083
ext4_page_mkwrite+0x1bc/0x1250 fs/ext4/inode.c:6205
do_page_mkwrite+0x168/0x3c0 mm/memory.c:2922
do_shared_fault mm/memory.c:4328 [inline]
do_fault mm/memory.c:4396 [inline]
handle_pte_fault mm/memory.c:4650 [inline]
__handle_mm_fault mm/memory.c:4785 [inline]
handle_mm_fault+0x1e47/0x4440 mm/memory.c:4883
do_user_addr_fault+0x494/0xc90 arch/x86/mm/fault.c:1355
handle_page_fault arch/x86/mm/fault.c:1443 [inline]
exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1496
asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606
-> #4 (sb_pagefaults){.+.+}-{0:0}:
percpu_down_read+0x46/0x1b0 include/linux/percpu-rwsem.h:51
__sb_start_write include/linux/fs.h:1817 [inline]
sb_start_pagefault include/linux/fs.h:1916 [inline]
ext4_page_mkwrite+0x1a5/0x1250 fs/ext4/inode.c:6204
do_page_mkwrite+0x168/0x3c0 mm/memory.c:2922
wp_page_shared+0x163/0x6c0 mm/memory.c:3259
handle_pte_fault mm/memory.c:4668 [inline]
__handle_mm_fault mm/memory.c:4785 [inline]
handle_mm_fault+0x1fbd/0x4440 mm/memory.c:4883
do_user_addr_fault+0x494/0xc90 arch/x86/mm/fault.c:1355
handle_page_fault arch/x86/mm/fault.c:1443 [inline]
exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1496
asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606
-> #3 (&mm->mmap_lock){++++}-{3:3}:
__might_fault+0xb3/0x110 mm/memory.c:5357
_copy_to_user+0x29/0x130 lib/usercopy.c:35
copy_to_user include/linux/uaccess.h:200 [inline]
__tun_chr_ioctl+0x916/0x1f30 drivers/net/tun.c:3081
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
-> #2 (rtnl_mutex){+.+.}-{3:3}:
__mutex_lock_common+0x1e5/0x2400 kernel/locking/mutex.c:596
__mutex_lock kernel/locking/mutex.c:729 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:743
linkwatch_event+0xa/0x50 net/core/link_watch.c:251
process_one_work+0x867/0xff0 kernel/workqueue.c:2310
worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
-> #1 ((linkwatch_work).work){+.+.}-{0:0}:
process_one_work+0x7ba/0xff0 kernel/workqueue.c:2286
worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
-> #0 ((wq_completion)events_unbound){+.+.}-{0:0}:
check_prev_add kernel/locking/lockdep.c:3120 [inline]
check_prevs_add kernel/locking/lockdep.c:3239 [inline]
validate_chain kernel/locking/lockdep.c:3855 [inline]
__lock_acquire+0x38f7/0x7d40 kernel/locking/lockdep.c:5120
lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737
process_one_work+0x795/0xff0 kernel/workqueue.c:2285
worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
other info that might help us debug this:
Chain exists of:
(wq_completion)events_unbound --> sb_pagefaults --> jbd2_handle
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
rlock(jbd2_handle);
lock(sb_pagefaults);
lock(jbd2_handle);
lock((wq_completion)events_unbound);
*** DEADLOCK ***
3 locks held by kworker/u4:2/154:
#0: ffff88807b1ee650 (sb_internal#3){.+.+}-{0:0}, at: ocfs2_replay_truncate_records fs/ocfs2/alloc.c:5938 [inline]
#0: ffff88807b1ee650 (sb_internal#3){.+.+}-{0:0}, at: __ocfs2_flush_truncate_log+0x49f/0x1110 fs/ocfs2/alloc.c:6052
#1: ffff888024b9a0e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a6/0x6f0 fs/ocfs2/journal.c:374
#2: ffff888077a68990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x12d5/0x1560 fs/jbd2/transaction.c:462
stack backtrace:
CPU: 0 PID: 154 Comm: kworker/u4:2 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Workqueue: events_unbound cfg80211_wiphy_work
Call Trace:
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
check_noncircular+0x2f8/0x400 kernel/locking/lockdep.c:2178
check_prev_add kernel/locking/lockdep.c:3120 [inline]
check_prevs_add kernel/locking/lockdep.c:3239 [inline]
validate_chain kernel/locking/lockdep.c:3855 [inline]
__lock_acquire+0x38f7/0x7d40 kernel/locking/lockdep.c:5120
lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5737
process_one_work+0x795/0xff0 kernel/workqueue.c:2285
worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
kthread+0x42e/0x520 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287