======================================================
WARNING: possible circular locking dependency detected
syzkaller #0 Not tainted
------------------------------------------------------
syz-executor/5597 is trying to acquire lock:
ffff888061512888 (&jfs_ip->commit_mutex){+.+.}-{4:4}, at: jfs_commit_inode+0x1ca/0x530 fs/jfs/inode.c:108
but task is already holding lock:
ffff8880358fc950 (&(log)->loglock){+.+.}-{4:4}, at: jfs_umount+0x17f/0x3d0 fs/jfs/jfs_umount.c:66
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #2 (&(log)->loglock){+.+.}-{4:4}:
__mutex_lock_common kernel/locking/rtmutex_api.c:534 [inline]
mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:553
lmLog+0x78/0xa30 fs/jfs/jfs_logmgr.c:234
xtLog fs/jfs/jfs_txnmgr.c:1710 [inline]
txLog fs/jfs/jfs_txnmgr.c:1398 [inline]
txCommit+0x19ab/0x5410 fs/jfs/jfs_txnmgr.c:1266
jfs_create+0x8f4/0xb10 fs/jfs/namei.c:157
lookup_open fs/namei.c:4511 [inline]
open_last_lookups fs/namei.c:4611 [inline]
path_openat+0x13b4/0x38a0 fs/namei.c:4855
do_file_open+0x23e/0x4a0 fs/namei.c:4887
do_sys_openat2+0x113/0x200 fs/open.c:1364
do_sys_open fs/open.c:1370 [inline]
__do_sys_openat fs/open.c:1386 [inline]
__se_sys_openat fs/open.c:1381 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1381
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
-> #1 (&jfs_ip->commit_mutex/1){+.+.}-{4:4}:
__mutex_lock_common kernel/locking/rtmutex_api.c:534 [inline]
mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:553
jfs_create+0x249/0xb10 fs/jfs/namei.c:102
lookup_open fs/namei.c:4511 [inline]
open_last_lookups fs/namei.c:4611 [inline]
path_openat+0x13b4/0x38a0 fs/namei.c:4855
do_file_open+0x23e/0x4a0 fs/namei.c:4887
do_sys_openat2+0x113/0x200 fs/open.c:1364
do_sys_open fs/open.c:1370 [inline]
__do_sys_openat fs/open.c:1386 [inline]
__se_sys_openat fs/open.c:1381 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1381
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
-> #0 (&jfs_ip->commit_mutex){+.+.}-{4:4}:
check_prev_add kernel/locking/lockdep.c:3165 [inline]
check_prevs_add kernel/locking/lockdep.c:3284 [inline]
validate_chain kernel/locking/lockdep.c:3908 [inline]
__lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
__mutex_lock_common kernel/locking/rtmutex_api.c:534 [inline]
mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:553
jfs_commit_inode+0x1ca/0x530 fs/jfs/inode.c:108
jfs_write_inode+0x145/0x220 fs/jfs/inode.c:138
write_inode fs/fs-writeback.c:1584 [inline]
__writeback_single_inode+0x75d/0x10e0 fs/fs-writeback.c:1827
writeback_single_inode+0x488/0xd60 fs/fs-writeback.c:1883
write_inode_now+0x1c2/0x290 fs/fs-writeback.c:2974
iput_final fs/inode.c:1950 [inline]
iput+0x8c1/0xe80 fs/inode.c:2009
jfs_umount+0x198/0x3d0 fs/jfs/jfs_umount.c:72
jfs_put_super+0x8c/0x190 fs/jfs/super.c:194
generic_shutdown_super+0x13d/0x2d0 fs/super.c:646
kill_block_super+0x44/0x90 fs/super.c:1725
deactivate_locked_super+0xbc/0x130 fs/super.c:476
cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312
task_work_run+0x1d9/0x270 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline]
do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
other info that might help us debug this:
Chain exists of:
&jfs_ip->commit_mutex --> &jfs_ip->commit_mutex/1 --> &(log)->loglock
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(&(log)->loglock);
lock(&jfs_ip->commit_mutex/1);
lock(&(log)->loglock);
lock(&jfs_ip->commit_mutex);
*** DEADLOCK ***
2 locks held by syz-executor/5597:
#0: ffff8880640500d0 (&type->s_umount_key#85){+.+.}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880640500d0 (&type->s_umount_key#85){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:73 [inline]
#0: ffff8880640500d0 (&type->s_umount_key#85){+.+.}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:508
#1: ffff8880358fc950 (&(log)->loglock){+.+.}-{4:4}, at: jfs_umount+0x17f/0x3d0 fs/jfs/jfs_umount.c:66
stack backtrace:
CPU: 1 UID: 0 PID: 5597 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)}
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_circular_bug+0x2e1/0x300 kernel/locking/lockdep.c:2043
check_noncircular+0x12e/0x150 kernel/locking/lockdep.c:2175
check_prev_add kernel/locking/lockdep.c:3165 [inline]
check_prevs_add kernel/locking/lockdep.c:3284 [inline]
validate_chain kernel/locking/lockdep.c:3908 [inline]
__lock_acquire+0x15a5/0x2cf0 kernel/locking/lockdep.c:5237
lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868
__mutex_lock_common kernel/locking/rtmutex_api.c:534 [inline]
mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:553
jfs_commit_inode+0x1ca/0x530 fs/jfs/inode.c:108
jfs_write_inode+0x145/0x220 fs/jfs/inode.c:138
write_inode fs/fs-writeback.c:1584 [inline]
__writeback_single_inode+0x75d/0x10e0 fs/fs-writeback.c:1827
writeback_single_inode+0x488/0xd60 fs/fs-writeback.c:1883
write_inode_now+0x1c2/0x290 fs/fs-writeback.c:2974
iput_final fs/inode.c:1950 [inline]
iput+0x8c1/0xe80 fs/inode.c:2009
jfs_umount+0x198/0x3d0 fs/jfs/jfs_umount.c:72
jfs_put_super+0x8c/0x190 fs/jfs/super.c:194
generic_shutdown_super+0x13d/0x2d0 fs/super.c:646
kill_block_super+0x44/0x90 fs/super.c:1725
deactivate_locked_super+0xbc/0x130 fs/super.c:476
cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312
task_work_run+0x1d9/0x270 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline]
do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd1ad9de017
Code: a2 c7 05 dc 06 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffeab758778 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fd1ada72120 RCX: 00007fd1ad9de017
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffeab758830
RBP: 00007ffeab758830 R08: 00007ffeab759830 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeab7598c0
R13: 00007fd1ada72120 R14: 00000000000264a0 R15: 00007ffeab759900
Oops: general protection fault, probably for non-canonical address 0xdffffc000000015b: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000ad8-0x0000000000000adf]
CPU: 1 UID: 0 PID: 5597 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)}
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline]
RIP: 0010:do_raw_spin_lock+0x73/0x2f0 kernel/locking/spinlock_debug.c:115
Code: c7 44 24 30 20 f6 a0 81 4c 8d 64 24 20 49 c1 ec 03 48 b8 f1 f1 f1 f1 f8 f3 f3 f3 49 89 04 14 4c 8d 77 04 4c 89 f0 48 c1 e8 03 <0f> b6 04 10 84 c0 0f 85 f3 01 00 00 41 8b 06 3d ad 4e ad de 0f 85
RSP: 0018:ffffc900050d7260 EFLAGS: 00010003
RAX: 000000000000015b RBX: 0000000000000ad8 RCX: 0000000080000003
RDX: dffffc0000000000 RSI: ffffffff8ba74d40 RDI: 0000000000000ad8
RBP: ffffc900050d7320 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1f11c3f R12: 1ffff92000a1ae50
R13: ffffc900050d7420 R14: 0000000000000adc R15: 0000000000000ad8
FS: 0000555572bc5500(0000) GS:ffff888126279000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbea90ac000 CR3: 00000000547ee000 CR4: 00000000003526f0
Call Trace:
class_raw_spinlock_constructor include/linux/spinlock.h:535 [inline]
remove_waiter+0x138/0xb10 kernel/locking/rtmutex.c:1561
__rt_mutex_slowlock kernel/locking/rtmutex.c:1751 [inline]
__rt_mutex_slowlock_locked kernel/locking/rtmutex.c:1779 [inline]
rt_mutex_slowlock+0x72d/0x780 kernel/locking/rtmutex.c:1819
__rt_mutex_lock kernel/locking/rtmutex.c:1834 [inline]
__mutex_lock_common kernel/locking/rtmutex_api.c:535 [inline]
mutex_lock_nested+0x168/0x1d0 kernel/locking/rtmutex_api.c:553
lmLog+0x78/0xa30 fs/jfs/jfs_logmgr.c:234
diLog fs/jfs/jfs_txnmgr.c:1454 [inline]
txLog fs/jfs/jfs_txnmgr.c:1406 [inline]
txCommit+0x16fb/0x5410 fs/jfs/jfs_txnmgr.c:1266
jfs_commit_inode+0x2ef/0x530 fs/jfs/inode.c:114
jfs_write_inode+0x145/0x220 fs/jfs/inode.c:138
write_inode fs/fs-writeback.c:1584 [inline]
__writeback_single_inode+0x75d/0x10e0 fs/fs-writeback.c:1827
writeback_single_inode+0x488/0xd60 fs/fs-writeback.c:1883
write_inode_now+0x1c2/0x290 fs/fs-writeback.c:2974
iput_final fs/inode.c:1950 [inline]
iput+0x8c1/0xe80 fs/inode.c:2009
jfs_umount+0x198/0x3d0 fs/jfs/jfs_umount.c:72
jfs_put_super+0x8c/0x190 fs/jfs/super.c:194
generic_shutdown_super+0x13d/0x2d0 fs/super.c:646
kill_block_super+0x44/0x90 fs/super.c:1725
deactivate_locked_super+0xbc/0x130 fs/super.c:476
cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312
task_work_run+0x1d9/0x270 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:67 [inline]
exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline]
do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd1ad9de017
Code: a2 c7 05 dc 06 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffeab758778 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007fd1ada72120 RCX: 00007fd1ad9de017
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffeab758830
RBP: 00007ffeab758830 R08: 00007ffeab759830 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffeab7598c0
R13: 00007fd1ada72120 R14: 00000000000264a0 R15: 00007ffeab759900
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline]
RIP: 0010:do_raw_spin_lock+0x73/0x2f0 kernel/locking/spinlock_debug.c:115
Code: c7 44 24 30 20 f6 a0 81 4c 8d 64 24 20 49 c1 ec 03 48 b8 f1 f1 f1 f1 f8 f3 f3 f3 49 89 04 14 4c 8d 77 04 4c 89 f0 48 c1 e8 03 <0f> b6 04 10 84 c0 0f 85 f3 01 00 00 41 8b 06 3d ad 4e ad de 0f 85
RSP: 0018:ffffc900050d7260 EFLAGS: 00010003
RAX: 000000000000015b RBX: 0000000000000ad8 RCX: 0000000080000003
RDX: dffffc0000000000 RSI: ffffffff8ba74d40 RDI: 0000000000000ad8
RBP: ffffc900050d7320 R08: 0000000000000001 R09: 0000000000000000
R10: dffffc0000000000 R11: fffffbfff1f11c3f R12: 1ffff92000a1ae50
R13: ffffc900050d7420 R14: 0000000000000adc R15: 0000000000000ad8
FS: 0000555572bc5500(0000) GS:ffff888126279000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbea90ac000 CR3: 00000000547ee000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
0: c7 44 24 30 20 f6 a0 movl $0x81a0f620,0x30(%rsp)
7: 81
8: 4c 8d 64 24 20 lea 0x20(%rsp),%r12
d: 49 c1 ec 03 shr $0x3,%r12
11: 48 b8 f1 f1 f1 f1 f8 movabs $0xf3f3f3f8f1f1f1f1,%rax
18: f3 f3 f3
1b: 49 89 04 14 mov %rax,(%r12,%rdx,1)
1f: 4c 8d 77 04 lea 0x4(%rdi),%r14
23: 4c 89 f0 mov %r14,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 0f b6 04 10 movzbl (%rax,%rdx,1),%eax <-- trapping instruction
2e: 84 c0 test %al,%al
30: 0f 85 f3 01 00 00 jne 0x229
36: 41 8b 06 mov (%r14),%eax
39: 3d ad 4e ad de cmp $0xdead4ead,%eax
3e: 0f .byte 0xf
3f: 85 .byte 0x85