[v6.1] kernel BUG in insert_state

2 views
Skip to first unread message

syzbot

unread,
Feb 16, 2025, 8:39:20 PM2/16/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0cbb5f65e52f Linux 6.1.128
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1412c5b0580000
kernel config: https://syzkaller.appspot.com/x/.config?x=abb6e3847403ee03
dashboard link: https://syzkaller.appspot.com/bug?extid=6a7319ed74eea021cf05
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/fc67b93cdf77/disk-0cbb5f65.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/833d6a619b95/vmlinux-0cbb5f65.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2f8b026bdbd9/Image-0cbb5f65.gz.xz

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

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
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:381!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 6733 Comm: syz.5.498 Not tainted 6.1.128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
pc : insert_state+0x35c/0x360 fs/btrfs/extent-io-tree.c:403
lr : set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
lr : insert_state+0x35c/0x360 fs/btrfs/extent-io-tree.c:403
sp : ffff8000231573d0
x29: ffff8000231573d0 x28: 00000000fffe5eff x27: 1fffe0001ddcfd09
x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000fff
x23: 0000000000001000 x22: 00000000fffffff4 x21: 0000000000000fff
x20: ffff0000e2e75760 x19: ffff0000eee7e840 x18: ffff8000231567c0
x17: 0000000000000000 x16: ffff80001231f9fc x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a3d40e0
x8 : ffff0000ccac1bc0 x7 : 0000000000000001 x6 : 0000000000000001
x5 : 00000000ffffffff x4 : 0000000000000a20 x3 : 0000000000000a20
x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000
Call trace:
set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
insert_state+0x35c/0x360 fs/btrfs/extent-io-tree.c:403
__set_extent_bit+0xe70/0x1650 fs/btrfs/extent-io-tree.c:1115
set_record_extent_bits+0x68/0x98 fs/btrfs/extent-io-tree.c:1607
qgroup_reserve_data+0x214/0x90c fs/btrfs/qgroup.c:3795
btrfs_qgroup_reserve_data+0x40/0xec fs/btrfs/qgroup.c:3838
btrfs_check_data_free_space+0x130/0x20c fs/btrfs/delalloc-space.c:152
btrfs_buffered_write+0x4ac/0xfec fs/btrfs/file.c:1242
btrfs_do_write_iter+0x3a0/0x1108 fs/btrfs/file.c:1686
btrfs_file_write_iter+0x2c/0x3c fs/btrfs/file.c:1707
call_write_iter include/linux/fs.h:2265 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x610/0x91c fs/read_write.c:584
ksys_write+0x15c/0x26c fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:646
__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: aa1903e0 979681ae 17ffff56 97848098 (d4210000)
---[ end trace 0000000000000000 ]---


---
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,
Feb 16, 2025, 9:13:19 PM2/16/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 0cbb5f65e52f Linux 6.1.128
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13d5a898580000
kernel config: https://syzkaller.appspot.com/x/.config?x=abb6e3847403ee03
dashboard link: https://syzkaller.appspot.com/bug?extid=6a7319ed74eea021cf05
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=101357df980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1618b5a4580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/c1d4caa3e75e/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=15d5a898580000)

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

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
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:381!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4290 Comm: syz-executor991 Not tainted 6.1.128-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
pc : insert_state+0x35c/0x360 fs/btrfs/extent-io-tree.c:403
lr : set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
lr : insert_state+0x35c/0x360 fs/btrfs/extent-io-tree.c:403
sp : ffff8000211773d0
x29: ffff8000211773d0 x28: 00000000fffe5eff x27: 1fffe0001a9d3399
x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000fff
x23: 0000000000001000 x22: 00000000fffffff4 x21: 0000000000000fff
x20: ffff0000e22b1400 x19: ffff0000d4e99cc0 x18: ffff8000211767c0
x17: 0000000000000000 x16: ffff80001231f9fc x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a3d40e0
x8 : ffff0000c6829bc0 x7 : 0000000000000001 x6 : 0000000000000001
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.
Reply all
Reply to author
Forward
0 new messages