[v6.1] kernel BUG in f2fs_evict_inode

2 views
Skip to first unread message

syzbot

unread,
Apr 11, 2023, 5:45:38 AM4/11/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 543aff194ab6 Linux 6.1.23
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15c1a80fc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=9ccbc3d5467efd1
dashboard link: https://syzkaller.appspot.com/bug?extid=da6ec584691ea5a03cda
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/7fe538fc87bf/disk-543aff19.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/8df93997601a/vmlinux-543aff19.xz
kernel image: https://storage.googleapis.com/syzbot-assets/03ad7e3bf859/Image-543aff19.gz.xz

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

------------[ cut here ]------------
kernel BUG at fs/f2fs/inode.c:869!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4342 Comm: syz-executor.0 Not tainted 6.1.23-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : f2fs_evict_inode+0x13ec/0x15ac fs/f2fs/inode.c:869
lr : f2fs_evict_inode+0x13ec/0x15ac fs/f2fs/inode.c:869
sp : ffff80001db17570
x29: ffff80001db17600 x28: dfff800000000000 x27: 0000000000000000
x26: 1fffe000257e82d0 x25: ffff00012bf41680 x24: ffff00012bf41210
x23: ffff00012bf41218 x22: ffff00012950e087 x21: 0000000000000102
x20: ffff0000da8f0000 x19: ffff00012bf411d0 x18: ffff80001db171e0
x17: ffff80001557d000 x16: ffff80000825d1ac x15: 00000000000197e3
x14: 00000000b38abcde x13: dfff800000000000 x12: 0000000000000001
x11: ff8080000a41ec34 x10: 0000000000000000 x9 : ffff80000a41ec34
x8 : ffff0000dde83680 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff800018791bf8 x4 : 0000000000000008 x3 : ffff80000a41e4d8
x2 : 0000000000000001 x1 : 0000000000000002 x0 : 0000000000000000
Call trace:
f2fs_evict_inode+0x13ec/0x15ac fs/f2fs/inode.c:869
evict+0x260/0x68c fs/inode.c:664
dispose_list fs/inode.c:697 [inline]
evict_inodes+0x6b4/0x74c fs/inode.c:747
generic_shutdown_super+0x9c/0x328 fs/super.c:480
kill_block_super+0x70/0xdc fs/super.c:1450
kill_f2fs_super+0x264/0x328 fs/f2fs/super.c:4612
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: c8097ea8 35ffffa9 17fffe2f 97835533 (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.

syzbot

unread,
Aug 15, 2023, 5:42:03 PM8/15/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 1321ab403b38 Linux 6.1.45
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17c47b69a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=98e020fdb0f6ab0f
dashboard link: https://syzkaller.appspot.com/bug?extid=da6ec584691ea5a03cda
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=17a60e27a80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13222b69a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3b9d65a68f82/disk-1321ab40.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/afca87deee2c/vmlinux-1321ab40.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c93e18288863/Image-1321ab40.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/1b1ec4c99964/mount_0.gz

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

F2FS-fs (loop0): recover fsync data on readonly fs
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
F2FS-fs (loop0): Corrupted max_depth of 3: 127
------------[ cut here ]------------
kernel BUG at fs/f2fs/inode.c:861!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4219 Comm: syz-executor191 Not tainted 6.1.45-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : f2fs_evict_inode+0x13ec/0x15ac fs/f2fs/inode.c:861
lr : f2fs_evict_inode+0x13ec/0x15ac fs/f2fs/inode.c:861
sp : ffff80001dda7650
x29: ffff80001dda76e0 x28: dfff800000000000 x27: 0000000000000000
x26: 1fffe0001bec72d0 x25: ffff0000df639680 x24: ffff0000df639210
x23: ffff0000df639218 x22: ffff0000cf326087 x21: 0000000000000102
x20: ffff0000d4f14000 x19: ffff0000df6391d0 x18: ffff80001dda72c0
x17: ffff80001589d000 x16: ffff80000825f190 x15: 000000000000b753
x14: 000000004f9f23aa x13: dfff800000000000 x12: 0000000000000001
x11: ff8080000a4304dc x10: 0000000000000000 x9 : ffff80000a4304dc
x8 : ffff0000d4dd5340 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff800018a54678 x4 : 0000000000000008 x3 : ffff80000a42fd80
x2 : 0000000000000001 x1 : 0000000000000002 x0 : 0000000000000000
Call trace:
f2fs_evict_inode+0x13ec/0x15ac fs/f2fs/inode.c:861
evict+0x260/0x68c fs/inode.c:664
dispose_list fs/inode.c:697 [inline]
evict_inodes+0x6b4/0x74c fs/inode.c:747
generic_shutdown_super+0x9c/0x328 fs/super.c:480
kill_block_super+0x70/0xdc fs/super.c:1459
kill_f2fs_super+0x264/0x328 fs/f2fs/super.c:4627
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0x554/0x1a88 kernel/exit.c:869
do_group_exit+0x194/0x22c kernel/exit.c:1019
__do_sys_exit_group kernel/exit.c:1030 [inline]
__se_sys_exit_group kernel/exit.c:1028 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1028
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
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:581
Code: c8097ea8 35ffffa9 17fffe2f 9783324c (d4210000)
---[ end trace 0000000000000000 ]---


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