[v5.15] kernel BUG in ocfs2_iget

5 views
Skip to first unread message

syzbot

unread,
Nov 23, 2024, 6:28:21 PM11/23/24
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0a51d2d4527b Linux 5.15.173
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10a169c0580000
kernel config: https://syzkaller.appspot.com/x/.config?x=a6b3013b6f1a102b
dashboard link: https://syzkaller.appspot.com/bug?extid=647084ad32e990962697
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/731bd13b5412/disk-0a51d2d4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a53b07f54a18/vmlinux-0a51d2d4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5f1392034bb8/Image-0a51d2d4.gz.xz

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

(syz.0.65,4386,0):ocfs2_read_locked_inode:536 ERROR: bug expression: !!(fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) != !!(args->fi_flags & OCFS2_FI_FLAG_SYSFILE)
(syz.0.65,4386,1):ocfs2_read_locked_inode:536 ERROR: Inode 21: system file state is ambiguous
------------[ cut here ]------------
kernel BUG at fs/ocfs2/inode.c:536!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4386 Comm: syz.0.65 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
pc : ocfs2_iget+0x1c48/0x1e94 fs/ocfs2/inode.c:159
lr : ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
lr : ocfs2_iget+0x1c48/0x1e94 fs/ocfs2/inode.c:159
sp : ffff800020466ac0
x29: ffff800020466d00 x28: ffff70000408cd60 x27: dfff800000000000
x26: 0000000000000000 x25: ffff0000ebe2da00 x24: 1ffff0000408cd70
x23: dfff800000000000 x22: 1000000000000000 x21: ffff800020466c00
x20: ffff800020466c60 x19: ffff800020466c20 x18: 0000000000000001
x17: 0000000000000002 x16: ffff800011ab8a34 x15: 00000000ffffffff
x14: ffff0000f51051c0 x13: 0000000000000001 x12: 0000000000080000
x11: 000000000004e417 x10: ffff80002157b000 x9 : f5bc7ca8d5a8c400
x8 : f5bc7ca8d5a8c400 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff8000204660f8 x4 : ffff800014ba05e0 x3 : ffff800008555e80
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000005d
Call trace:
ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
ocfs2_iget+0x1c48/0x1e94 fs/ocfs2/inode.c:159
_ocfs2_get_system_file_inode fs/ocfs2/sysfile.c:142 [inline]
ocfs2_get_system_file_inode+0x304/0x6b8 fs/ocfs2/sysfile.c:112
ocfs2_init_global_system_inodes+0x2bc/0x618 fs/ocfs2/super.c:458
ocfs2_initialize_super fs/ocfs2/super.c:2276 [inline]
ocfs2_fill_super+0x394c/0x498c fs/ocfs2/super.c:995
mount_bdev+0x274/0x370 fs/super.c:1400
ocfs2_mount+0x44/0x58 fs/ocfs2/super.c:1187
legacy_get_tree+0xd4/0x16c fs/fs_context.c:611
vfs_get_tree+0x90/0x274 fs/super.c:1530
do_new_mount+0x278/0x8fc fs/namespace.c:3012
path_mount+0x594/0x101c fs/namespace.c:3342
do_mount fs/namespace.c:3355 [inline]
__do_sys_mount fs/namespace.c:3563 [inline]
__se_sys_mount fs/namespace.c:3540 [inline]
__arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: 913e8063 aa1303e0 52804302 94052186 (d4210000)
---[ end trace 83f083d617b89368 ]---


---
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 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,
Nov 23, 2024, 7:11:22 PM11/23/24
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 0a51d2d4527b Linux 5.15.173
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1419575f980000
kernel config: https://syzkaller.appspot.com/x/.config?x=a6b3013b6f1a102b
dashboard link: https://syzkaller.appspot.com/bug?extid=647084ad32e990962697
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10c076e8580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=177969c0580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/0faa6db8b7d6/mount_0.gz

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

(syz-executor139,4026,0):ocfs2_read_locked_inode:536 ERROR: bug expression: !!(fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) != !!(args->fi_flags & OCFS2_FI_FLAG_SYSFILE)
(syz-executor139,4026,0):ocfs2_read_locked_inode:536 ERROR: Inode 21: system file state is ambiguous
------------[ cut here ]------------
kernel BUG at fs/ocfs2/inode.c:536!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4026 Comm: syz-executor139 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
pc : ocfs2_iget+0x1c48/0x1e94 fs/ocfs2/inode.c:159
lr : ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
lr : ocfs2_iget+0x1c48/0x1e94 fs/ocfs2/inode.c:159
sp : ffff80001d0d6ac0
x29: ffff80001d0d6d00 x28: ffff700003a1ad60 x27: dfff800000000000
x26: 0000000000000000 x25: ffff0000dd0f0a00 x24: 1ffff00003a1ad70
x23: dfff800000000000 x22: 1000000000000000 x21: ffff80001d0d6c00
x20: ffff80001d0d6c60 x19: ffff80001d0d6c20 x18: 1fffe00036831b8e
x17: 1fffe00036831b8e x16: ffff800011ab8a34 x15: ffff800014b5fa40
x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 3278074dc1e66400
x8 : 3278074dc1e66400 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000a98269c
x2 : ffff0001b418dd10 x1 : 0000000100000000 x0 : 0000000000000064
---[ end trace cbbc119434d833be ]---


---
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.

syzbot

unread,
Nov 29, 2024, 6:27:30 PM11/29/24
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e4d90d63d385 Linux 6.1.119
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12776f78580000
kernel config: https://syzkaller.appspot.com/x/.config?x=393f8074c5fb7ad6
dashboard link: https://syzkaller.appspot.com/bug?extid=bebfdda2f80b5aa13c61
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3986cbf4f35a/disk-e4d90d63.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d2963d16cebb/vmlinux-e4d90d63.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a877a1a23701/Image-e4d90d63.gz.xz

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

(syz.4.278,5504,1):ocfs2_read_locked_inode:536 ERROR: bug expression: !!(fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) != !!(args->fi_flags & OCFS2_FI_FLAG_SYSFILE)
(syz.4.278,5504,1):ocfs2_read_locked_inode:536 ERROR: Inode 70: system file state is ambiguous
------------[ cut here ]------------
kernel BUG at fs/ocfs2/inode.c:536!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 5504 Comm: syz.4.278 Not tainted 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
pc : ocfs2_iget+0x1de4/0x20d0 fs/ocfs2/inode.c:159
lr : ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
lr : ocfs2_iget+0x1de4/0x20d0 fs/ocfs2/inode.c:159
sp : ffff800021e36b20
x29: ffff800021e36d60 x28: ffff7000043c6d6c x27: dfff800000000000
x26: 0000000000000000 x25: ffff0000f723dc00 x24: 1ffff000043c6d7c
x23: dfff800000000000 x22: 1000000000000000 x21: ffff800021e36c60
x20: ffff800021e36cc0 x19: ffff800021e36c80 x18: 1fffe000367a0576
x17: ffff800015a7d000 x16: ffff800012325074 x15: ffff0001b3d02bbc
x14: 1ffff00002b500b2 x13: dfff800000000000 x12: 0000000000080000
x11: 000000000001b349 x10: ffff80002ad2f000 x9 : 35d07f4cd2190d00
x8 : 35d07f4cd2190d00 x7 : ffff800008277348 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff800008585a08
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000005e
Call trace:
ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
ocfs2_iget+0x1de4/0x20d0 fs/ocfs2/inode.c:159
_ocfs2_get_system_file_inode fs/ocfs2/sysfile.c:142 [inline]
ocfs2_get_system_file_inode+0x304/0x6b8 fs/ocfs2/sysfile.c:112
ocfs2_init_global_system_inodes+0x2bc/0x618 fs/ocfs2/super.c:457
ocfs2_initialize_super fs/ocfs2/super.c:2250 [inline]
ocfs2_fill_super+0x350c/0x48c4 fs/ocfs2/super.c:994
mount_bdev+0x274/0x370 fs/super.c:1443
ocfs2_mount+0x44/0x58 fs/ocfs2/super.c:1186
legacy_get_tree+0xd4/0x16c fs/fs_context.c:632
vfs_get_tree+0x90/0x274 fs/super.c:1573
do_new_mount+0x278/0x8fc fs/namespace.c:3056
path_mount+0x590/0xe5c fs/namespace.c:3386
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount fs/namespace.c:3584 [inline]
__arm64_sys_mount+0x45c/0x594 fs/namespace.c:3584
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: 91038063 aa1303e0 52804302 940524a1 (d4210000)
---[ end trace 0000000000000000 ]---

syzbot

unread,
Dec 1, 2024, 2:23:26 AM12/1/24
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: e4d90d63d385 Linux 6.1.119
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16e3df78580000
kernel config: https://syzkaller.appspot.com/x/.config?x=393f8074c5fb7ad6
dashboard link: https://syzkaller.appspot.com/bug?extid=bebfdda2f80b5aa13c61
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=171c5d30580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=167d40df980000
mounted in repro: https://storage.googleapis.com/syzbot-assets/cdcc35deb0e4/mount_0.gz

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

(syz-executor246,4295,1):ocfs2_read_locked_inode:536 ERROR: bug expression: !!(fe->i_flags & cpu_to_le32(OCFS2_SYSTEM_FL)) != !!(args->fi_flags & OCFS2_FI_FLAG_SYSFILE)
(syz-executor246,4295,0):ocfs2_read_locked_inode:536 ERROR: Inode 66: system file state is ambiguous
------------[ cut here ]------------
kernel BUG at fs/ocfs2/inode.c:536!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4295 Comm: syz-executor246 Not tainted 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
pc : ocfs2_iget+0x1de4/0x20d0 fs/ocfs2/inode.c:159
lr : ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
lr : ocfs2_iget+0x1de4/0x20d0 fs/ocfs2/inode.c:159
sp : ffff800021136ca0
x29: ffff800021136ee0 x28: ffff700004226d9c x27: dfff800000000000
x26: 0000000000000000 x25: ffff0000e3041400 x24: 1ffff00004226dac
x23: dfff800000000000 x22: 1000000000000000 x21: ffff800021136de0
x20: ffff800021136e40 x19: ffff800021136e00 x18: 1fffe0003679c376
x17: 646f6e49203a524f x16: ffff800012325074 x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : 4ab582a38854a900
x8 : 4ab582a38854a900 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800021136478 x4 : ffff800015b630e0 x3 : ffff800008585a08
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000064
Call trace:
ocfs2_read_locked_inode fs/ocfs2/inode.c:533 [inline]
ocfs2_iget+0x1de4/0x20d0 fs/ocfs2/inode.c:159
ocfs2_init_global_system_inodes+0x160/0x618 fs/ocfs2/super.c:445
ocfs2_initialize_super fs/ocfs2/super.c:2250 [inline]
ocfs2_fill_super+0x350c/0x48c4 fs/ocfs2/super.c:994
mount_bdev+0x274/0x370 fs/super.c:1443
ocfs2_mount+0x44/0x58 fs/ocfs2/super.c:1186
legacy_get_tree+0xd4/0x16c fs/fs_context.c:632
vfs_get_tree+0x90/0x274 fs/super.c:1573
do_new_mount+0x278/0x8fc fs/namespace.c:3056
path_mount+0x590/0xe5c fs/namespace.c:3386
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount fs/namespace.c:3584 [inline]
__arm64_sys_mount+0x45c/0x594 fs/namespace.c:3584
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: 91038063 aa1303e0 52804302 940524a1 (d4210000)
---[ end trace 0000000000000000 ]---


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