[v6.1] kernel BUG in txLock

2 views
Skip to first unread message

syzbot

unread,
Mar 16, 2025, 10:14:33 AM3/16/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 344a09659766 Linux 6.1.131
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1187c83f980000
kernel config: https://syzkaller.appspot.com/x/.config?x=1eebf09bc04ebd78
dashboard link: https://syzkaller.appspot.com/bug?extid=23326f0427e911545a4a
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b27698580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/bccba205a29a/disk-344a0965.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bdca79b3b5db/vmlinux-344a0965.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6c2271a91ef3/bzImage-344a0965.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/18c7a8c13236/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=1687c83f980000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+23326f...@syzkaller.appspotmail.com

Locker's tblock: ffffc900026891e0: 90cae620 ffffffff 00000000 00000000
Locker's tblock: ffffc900026891f0: 8b469380 ffffffff 00000200 00000000
Locker's tblock: ffffc90002689200: 02689200 ffffc900 02689200 ffffc900
Locker's tblock: ffffc90002689210: 00000004 0000001c 00000008 00000000
Tlock: ffffc900028aa1f8: 00030006 20208040 2f8792e8 ffff8880
Tlock: ffffc900028aa208: 70f516b0 ffff8880 03140000 05002000
Tlock: ffffc900028aa218: 06030a00 0000020d 00000000 00000000
Tlock: ffffc900028aa228: 00000000 00000000 00000000 00000000
Tlock: ffffc900028aa238: 00000000 00000000
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_txnmgr.c:834!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4478 Comm: syz.0.25 Not tainted 6.1.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:txLock+0x1ec8/0x21a0 fs/jfs/jfs_txnmgr.c:834
Code: 8b 48 c7 c6 c0 99 46 8b ba 01 00 00 00 b9 10 00 00 00 41 b8 04 00 00 00 4c 8b 4c 24 20 6a 00 6a 48 e8 8c cb 2f 01 48 83 c4 10 <0f> 0b e8 91 40 76 fe 4c 89 f7 48 c7 c6 c0 a1 46 8b e8 02 ce b5 fe
RSP: 0018:ffffc900035970c0 EFLAGS: 00010286
RAX: b74e55d84d56bd00 RBX: 0000000000000010 RCX: ffff88802cad1dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003597210 R08: ffffffff816e7f1c R09: fffff520006b2d41
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200051543f
R13: ffff888070f50000 R14: 000000000000003f R15: ffffc900028aa1fa
FS: 00007fb09cf2d6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb09cf2cf98 CR3: 0000000029840000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
dtInsert+0xaef/0x6c80 fs/jfs/jfs_dtree.c:883
jfs_create+0x7b2/0xbb0 fs/jfs/namei.c:137
lookup_open fs/namei.c:3482 [inline]
open_last_lookups fs/namei.c:3550 [inline]
path_openat+0x12f1/0x2e60 fs/namei.c:3780
do_filp_open+0x230/0x480 fs/namei.c:3810
do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
do_sys_open fs/open.c:1334 [inline]
__do_sys_openat fs/open.c:1350 [inline]
__se_sys_openat fs/open.c:1345 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1345
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb09c18d169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb09cf2d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fb09c3a6080 RCX: 00007fb09c18d169
RDX: 000000000000275a RSI: 00004000000010c0 RDI: ffffffffffffff9c
RBP: 00007fb09c20e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fb09c3a6080 R15: 00007ffd49542a88
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:txLock+0x1ec8/0x21a0 fs/jfs/jfs_txnmgr.c:834
Code: 8b 48 c7 c6 c0 99 46 8b ba 01 00 00 00 b9 10 00 00 00 41 b8 04 00 00 00 4c 8b 4c 24 20 6a 00 6a 48 e8 8c cb 2f 01 48 83 c4 10 <0f> 0b e8 91 40 76 fe 4c 89 f7 48 c7 c6 c0 a1 46 8b e8 02 ce b5 fe
RSP: 0018:ffffc900035970c0 EFLAGS: 00010286
RAX: b74e55d84d56bd00 RBX: 0000000000000010 RCX: ffff88802cad1dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003597210 R08: ffffffff816e7f1c R09: fffff520006b2d41
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200051543f
R13: ffff888070f50000 R14: 000000000000003f R15: ffffc900028aa1fa
FS: 00007fb09cf2d6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb09cf2cf98 CR3: 0000000029840000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Apr 17, 2025, 12:11:28 AM4/17/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 420102835862 Linux 6.1.134
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1753cb98580000
kernel config: https://syzkaller.appspot.com/x/.config?x=febe6f728099e2de
dashboard link: https://syzkaller.appspot.com/bug?extid=23326f0427e911545a4a
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=100748cc580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=108be470580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e3e9df5cb900/disk-42010283.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/256b543066fd/vmlinux-42010283.xz
kernel image: https://storage.googleapis.com/syzbot-assets/030db118e6aa/bzImage-42010283.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/0ddeabde1577/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=15283a3f980000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+23326f...@syzkaller.appspotmail.com

Locker's tblock: ffffc90002669310: 02669310 ffffc900 02669310 ffffc900
Locker's tblock: ffffc90002669320: 00000004 0000001c 00000007 00000000
Tlock: ffffc9000288a0d8: 00010005 20208040 302f1ba0 ffff8880
Tlock: ffffc9000288a0e8: 723616b0 ffff8880 03140000 05002000
Tlock: ffffc9000288a0f8: 06030a00 0000020d 00000000 00000000
Tlock: ffffc9000288a108: 00000000 00000000 00000000 00000000
Tlock: ffffc9000288a118: 00000000 00000000
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_txnmgr.c:834!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4274 Comm: syz-executor358 Not tainted 6.1.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:txLock+0x1ec8/0x21a0 fs/jfs/jfs_txnmgr.c:834
Code: 8b 48 c7 c6 80 9d 46 8b ba 01 00 00 00 b9 10 00 00 00 41 b8 04 00 00 00 4c 8b 4c 24 20 6a 00 6a 48 e8 9c e2 2f 01 48 83 c4 10 <0f> 0b e8 31 30 76 fe 4c 89 f7 48 c7 c6 80 a5 46 8b e8 02 be b5 fe
RSP: 0018:ffffc90003d36ec0 EFLAGS: 00010286
RAX: 1c6c73bd0b14ec00 RBX: 0000000000000010 RCX: ffff888079628000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003d37010 R08: ffffffff816e804c R09: fffff520007a6d01
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200051141b
R13: ffff8880723cdc80 R14: 000000000000001b R15: ffffc9000288a0da
FS: 00007f4b194b16c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4b194b2000 CR3: 00000000197e6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
dtSplitRoot+0x429/0x18e0 fs/jfs/jfs_dtree.c:1927
dtSplitUp fs/jfs/jfs_dtree.c:993 [inline]
dtInsert+0x12b9/0x6d10 fs/jfs/jfs_dtree.c:871
jfs_create+0x7b2/0xbb0 fs/jfs/namei.c:137
lookup_open fs/namei.c:3482 [inline]
open_last_lookups fs/namei.c:3550 [inline]
path_openat+0x12f1/0x2e60 fs/namei.c:3780
do_filp_open+0x230/0x480 fs/namei.c:3810
do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
do_sys_open fs/open.c:1334 [inline]
__do_sys_open fs/open.c:1342 [inline]
__se_sys_open fs/open.c:1338 [inline]
__x64_sys_open+0x221/0x270 fs/open.c:1338
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f4b194f4c99
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f4b194b1218 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f4b195826c8 RCX: 00007f4b194f4c99
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000200000000400
RBP: 00007f4b195826c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000100
R13: 0030656c69662f2e R14: 0000200000000080 R15: 00007f4b1954906b
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:txLock+0x1ec8/0x21a0 fs/jfs/jfs_txnmgr.c:834
Code: 8b 48 c7 c6 80 9d 46 8b ba 01 00 00 00 b9 10 00 00 00 41 b8 04 00 00 00 4c 8b 4c 24 20 6a 00 6a 48 e8 9c e2 2f 01 48 83 c4 10 <0f> 0b e8 31 30 76 fe 4c 89 f7 48 c7 c6 80 a5 46 8b e8 02 be b5 fe
RSP: 0018:ffffc90003d36ec0 EFLAGS: 00010286
RAX: 1c6c73bd0b14ec00 RBX: 0000000000000010 RCX: ffff888079628000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003d37010 R08: ffffffff816e804c R09: fffff520007a6d01
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200051141b
R13: ffff8880723cdc80 R14: 000000000000001b R15: ffffc9000288a0da
FS: 00007f4b194b16c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4b194b2000 CR3: 00000000197e6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
Reply all
Reply to author
Forward
0 new messages