[syzbot] [udf?] WARNING in __find_get_block (2)

4 views
Skip to first unread message

syzbot

unread,
Nov 23, 2024, 4:14:25 PM11/23/24
Hello,

syzbot found the following issue on:

HEAD commit: cfba9f07a1d6 Add linux-next specific files for 20241122
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=178636e8580000
kernel config: https://syzkaller.appspot.com/x/.config?x=45719eec4c74e6ba
dashboard link: https://syzkaller.appspot.com/bug?extid=3c9f079f8fb1d7d331be
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/be35516c7ba5/disk-cfba9f07.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/70295210dc7d/vmlinux-cfba9f07.xz
kernel image: https://storage.googleapis.com/syzbot-assets/8b5d044072ee/bzImage-cfba9f07.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

------------[ cut here ]------------
VFS: brelse: Trying to free free buffer
WARNING: CPU: 0 PID: 12266 at fs/buffer.c:1229 __brelse fs/buffer.c:1229 [inline]
WARNING: CPU: 0 PID: 12266 at fs/buffer.c:1229 brelse include/linux/buffer_head.h:324 [inline]
WARNING: CPU: 0 PID: 12266 at fs/buffer.c:1229 bh_lru_install fs/buffer.c:1346 [inline]
WARNING: CPU: 0 PID: 12266 at fs/buffer.c:1229 __find_get_block+0x109d/0x1150 fs/buffer.c:1400
Modules linked in:
CPU: 0 UID: 0 PID: 12266 Comm: syz.6.1269 Not tainted 6.12.0-next-20241122-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__brelse fs/buffer.c:1229 [inline]
RIP: 0010:brelse include/linux/buffer_head.h:324 [inline]
RIP: 0010:bh_lru_install fs/buffer.c:1346 [inline]
RIP: 0010:__find_get_block+0x109d/0x1150 fs/buffer.c:1400
Code: 67 3e 9a e8 05 20 db ff e9 1b f7 ff ff e8 4b 2f 70 ff e9 87 f7 ff ff e8 41 2f 70 ff 90 48 c7 c7 20 e1 18 8c e8 c4 cd 30 ff 90 <0f> 0b 90 90 e9 6b f7 ff ff e8 25 2f 70 ff 48 c7 c7 c0 cf a8 8e 4c
RSP: 0018:ffffc90005d974a0 EFLAGS: 00010246
RAX: 678501cd73c0d900 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9000fba1000 RSI: 0000000000011153 RDI: 0000000000011154
RBP: ffffc90005d975d0 R08: ffffffff81601b32 R09: fffffbfff1cfa218
R10: dffffc0000000000 R11: fffffbfff1cfa218 R12: ffff88807bcf69f8
R13: ffff8880b86398b0 R14: ffff888034c6d828 R15: ffff88805ae4f6b8
FS: 00007fbd27ae76c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30210ff8 CR3: 0000000067510000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
bdev_getblk+0x33/0x550 fs/buffer.c:1425
__bread_gfp+0x86/0x400 fs/buffer.c:1485
sb_bread include/linux/buffer_head.h:346 [inline]
fat__get_entry fs/fat/dir.c:100 [inline]
fat_get_entry+0x78f/0xae0 fs/fat/dir.c:128
fat_get_short_entry fs/fat/dir.c:885 [inline]
fat_subdirs+0x227/0x3c0 fs/fat/dir.c:951
fat_read_root+0x5e5/0x8b0 fs/fat/inode.c:1345
fat_fill_super+0x205f/0x35a0 fs/fat/inode.c:1814
get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636
vfs_get_tree+0x90/0x2b0 fs/super.c:1814
do_new_mount+0x2be/0xb40 fs/namespace.c:3507
do_mount fs/namespace.c:3847 [inline]
__do_sys_mount fs/namespace.c:4057 [inline]
__se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fbd26d7ffba
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fbd27ae6e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fbd27ae6ef0 RCX: 00007fbd26d7ffba
RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 00007fbd27ae6eb0
RBP: 00000000200000c0 R08: 00007fbd27ae6ef0 R09: 0000000002010000
R10: 0000000002010000 R11: 0000000000000246 R12: 0000000020000000
R13: 00007fbd27ae6eb0 R14: 0000000000000336 R15: 0000000020000640
</TASK>


---
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 [email protected].

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,
Dec 17, 2024, 5:43:29 AM12/17/24
syzbot has found a reproducer for the following issue on:

HEAD commit: f44d154d6e3d Merge tag 'soc-fixes-6.13' of git://git.kerne..
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=14d627e8580000
kernel config: https://syzkaller.appspot.com/x/.config?x=1234f097ee657d8b
dashboard link: https://syzkaller.appspot.com/bug?extid=3c9f079f8fb1d7d331be
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=15e302df980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1265b4f8580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a0fb07264d5d/disk-f44d154d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/adf6a39fbd67/vmlinux-f44d154d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/d07b6ebb722e/bzImage-f44d154d.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/2fe321e2e902/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: [email protected]

------------[ cut here ]------------
VFS: brelse: Trying to free free buffer
WARNING: CPU: 1 PID: 5156 at fs/buffer.c:1229 __brelse fs/buffer.c:1229 [inline]
WARNING: CPU: 1 PID: 5156 at fs/buffer.c:1229 brelse include/linux/buffer_head.h:324 [inline]
WARNING: CPU: 1 PID: 5156 at fs/buffer.c:1229 bh_lru_install fs/buffer.c:1346 [inline]
WARNING: CPU: 1 PID: 5156 at fs/buffer.c:1229 __find_get_block+0x109d/0x1150 fs/buffer.c:1400
Modules linked in:
CPU: 1 UID: 0 PID: 5156 Comm: jbd2/sda1-8 Not tainted 6.13.0-rc3-syzkaller-00017-gf44d154d6e3d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:__brelse fs/buffer.c:1229 [inline]
RIP: 0010:brelse include/linux/buffer_head.h:324 [inline]
RIP: 0010:bh_lru_install fs/buffer.c:1346 [inline]
RIP: 0010:__find_get_block+0x109d/0x1150 fs/buffer.c:1400
Code: c7 3c 9a e8 d5 60 dc ff e9 1b f7 ff ff e8 5b 83 78 ff e9 87 f7 ff ff e8 51 83 78 ff 90 48 c7 c7 20 ee 18 8c e8 74 26 39 ff 90 <0f> 0b 90 90 e9 6b f7 ff ff e8 35 83 78 ff 48 c7 c7 40 c8 a8 8e 4c
RSP: 0018:ffffc9001048f440 EFLAGS: 00010246
RAX: 8c4056f058b05800 RBX: 0000000000000000 RCX: ffff888035151e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9001048f570 R08: ffffffff81601962 R09: fffffbfff1cfa210
R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: ffff88807a001828
R13: ffff8880b87398b0 R14: ffff88807f336910 R15: ffff88807f335a58
FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1a9566c130 CR3: 000000006602e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__getblk_slow fs/buffer.c:1127 [inline]
bdev_getblk+0x189/0x670 fs/buffer.c:1431
__getblk include/linux/buffer_head.h:380 [inline]
jbd2_journal_get_descriptor_buffer+0x1c3/0x4e0 fs/jbd2/journal.c:968
journal_submit_commit_record+0x11e/0xa90 fs/jbd2/commit.c:129
jbd2_journal_commit_transaction+0x3c10/0x6560 fs/jbd2/commit.c:877
kjournald2+0x41c/0x7b0 fs/jbd2/journal.c:201
kthread+0x2f0/0x390 kernel/kthread.c:389
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
</TASK>


---
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,
Dec 17, 2024, 5:35:03 PM12/17/24
syzbot has bisected this issue to:

commit 8a3f5711ad74db9881b289a6e34d7f3b700df720
Author: Yuezhang Mo <[email protected]>
Date: Thu Sep 12 08:57:06 2024 +0000

exfat: reduce FAT chain traversal

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=156b5730580000
start commit: f44d154d6e3d Merge tag 'soc-fixes-6.13' of git://git.kerne..
git tree: upstream
final oops: https://syzkaller.appspot.com/x/report.txt?x=176b5730580000
console output: https://syzkaller.appspot.com/x/log.txt?x=136b5730580000
Reported-by: [email protected]
Fixes: 8a3f5711ad74 ("exfat: reduce FAT chain traversal")

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Feb 16, 2025, 9:11:04 AMFeb 16
syzbot suspects this issue was fixed by commit:

commit 70465acbb0ce1bb69447acf32f136c8153cda0de
Author: Yuezhang Mo <[email protected]>
Date: Mon Dec 2 01:53:17 2024 +0000

exfat: fix exfat_find_empty_entry() not returning error on failure

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15d62bf8580000
start commit: f44d154d6e3d Merge tag 'soc-fixes-6.13' of git://git.kerne..
git tree: upstream
If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: exfat: fix exfat_find_empty_entry() not returning error on failure

syzbot

unread,
Mar 26, 2025, 9:51:20 PMMar 26
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages