[v5.15] WARNING in btrfs_sync_log (2)

0 views
Skip to first unread message

syzbot

unread,
Sep 9, 2023, 4:33:10 PM9/9/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: aff03380bda4 Linux 5.15.131
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1323ce2c680000
kernel config: https://syzkaller.appspot.com/x/.config?x=deb2c375928f6168
dashboard link: https://syzkaller.appspot.com/bug?extid=527d0ac92e795965bcf1
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/a1b31fbb7be5/disk-aff03380.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/13a2ea527c11/vmlinux-aff03380.xz
kernel image: https://storage.googleapis.com/syzbot-assets/fc6620249c65/Image-aff03380.gz.xz

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

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:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 0 PID: 25400 at fs/btrfs/tree-log.c:3210 btrfs_sync_log+0x15f0/0x2294 fs/btrfs/tree-log.c:3210
Modules linked in:
CPU: 0 PID: 25400 Comm: syz-executor.5 Not tainted 5.15.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_sync_log+0x15f0/0x2294 fs/btrfs/tree-log.c:3210
lr : btrfs_sync_log+0x15f0/0x2294 fs/btrfs/tree-log.c:3210
sp : ffff800022787300
x29: ffff800022787760 x28: ffff000125b35630 x27: 1fffe00024b66ac6
x26: 00000000fffffff4 x25: 0000000000000000 x24: ffff0000d83d4000
x23: dfff800000000000 x22: 00000000fffffff4 x21: 0000000000000009
x20: ffff0000d83d4338 x19: 00000000fffffff4 x18: 0000000000000001
x17: ff80800008334dcc x16: ffff8000119649dc x15: ffff800008334dcc
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000001a073 x10: ffff80001cebb000 x9 : ec1b356c7745f100
x8 : ec1b356c7745f100 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800022786a78 x4 : ffff8000149dfd00 x3 : ffff80000854cdec
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
btrfs_sync_log+0x15f0/0x2294 fs/btrfs/tree-log.c:3210
btrfs_sync_file+0x924/0xe60 fs/btrfs/file.c:2349
vfs_fsync_range+0x168/0x188 fs/sync.c:188
generic_write_sync include/linux/fs.h:2913 [inline]
btrfs_file_write_iter+0x758/0xad8 fs/btrfs/file.c:2093
call_write_iter include/linux/fs.h:2103 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x87c/0xb3c fs/read_write.c:594
ksys_write+0x15c/0x26c fs/read_write.c:647
__do_sys_write fs/read_write.c:659 [inline]
__se_sys_write fs/read_write.c:656 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:656
__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:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 83040
hardirqs last enabled at (83039): [<ffff80000832aa0c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (83040): [<ffff800011960070>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (83014): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (83014): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (82747): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (82747): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (82747): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace 7c6f9cac73ce8198 ]---
BTRFS: error (device loop5) in btrfs_sync_log:3210: errno=-12 Out of memory
BTRFS info (device loop5): forced readonly


---
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 bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

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

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

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

syzbot

unread,
Sep 9, 2023, 5:07:01 PM9/9/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: aff03380bda4 Linux 5.15.131
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12e74478680000
kernel config: https://syzkaller.appspot.com/x/.config?x=deb2c375928f6168
dashboard link: https://syzkaller.appspot.com/bug?extid=527d0ac92e795965bcf1
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=13d3a2bfa80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16f7e6bfa80000
mounted in repro: https://storage.googleapis.com/syzbot-assets/60ba29455f6a/mount_0.gz

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

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:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3973 at fs/btrfs/tree-log.c:3210 btrfs_sync_log+0x15f0/0x2294 fs/btrfs/tree-log.c:3210
Modules linked in:
CPU: 1 PID: 3973 Comm: syz-executor272 Not tainted 5.15.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_sync_log+0x15f0/0x2294 fs/btrfs/tree-log.c:3210
lr : btrfs_sync_log+0x15f0/0x2294 fs/btrfs/tree-log.c:3210
sp : ffff80001ca17300
x29: ffff80001ca17760 x28: ffff0000dbdfb160 x27: 1fffe0001b7bf62c
x26: 00000000fffffff4 x25: 0000000000000000 x24: ffff0000c789a000
x23: dfff800000000000 x22: 00000000fffffff4 x21: 0000000000000009
x20: ffff0000c789a338 x19: 00000000fffffff4 x18: 0000000000000001
x17: ff80800008334dcc x16: ffff8000119649dc x15: ffff800008334dcc
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000832c874 x10: 0000000000000000 x9 : cad2696e4cfe3900
x8 : cad2696e4cfe3900 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001ca16a78 x4 : ffff8000149dfd00 x3 : ffff80000854cdec
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
btrfs_sync_log+0x15f0/0x2294 fs/btrfs/tree-log.c:3210
btrfs_sync_file+0x924/0xe60 fs/btrfs/file.c:2349
vfs_fsync_range+0x168/0x188 fs/sync.c:188
generic_write_sync include/linux/fs.h:2913 [inline]
btrfs_file_write_iter+0x758/0xad8 fs/btrfs/file.c:2093
call_write_iter include/linux/fs.h:2103 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x87c/0xb3c fs/read_write.c:594
ksys_write+0x15c/0x26c fs/read_write.c:647
__do_sys_write fs/read_write.c:659 [inline]
__se_sys_write fs/read_write.c:656 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:656
__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:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 84906
hardirqs last enabled at (84905): [<ffff80000832aa0c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (84906): [<ffff800011960070>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (84880): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (84880): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (84849): [<ffff8000081b56a0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (84849): [<ffff8000081b56a0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (84849): [<ffff8000081b56a0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace 48a262ef670547d1 ]---
BTRFS: error (device loop0) in btrfs_sync_log:3210: errno=-12 Out of memory
BTRFS info (device loop0): forced readonly


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