syzbot


kernel BUG in f2fs_put_super (2)

Status: upstream: reported on 2024/12/23 22:15
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+fbef817617f48116dbdd@syzkaller.appspotmail.com
First crash: 7d01h, last: 7d01h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] kernel BUG in f2fs_put_super (2) 0 (1) 2024/12/23 22:15
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in f2fs_put_super f2fs 2 448d 477d 25/28 fixed on 2023/12/21 03:45

Sample crash report:
F2FS-fs (loop1): detect filesystem reference count leak during umount, type: 9, count: 2
------------[ cut here ]------------
kernel BUG at fs/f2fs/super.c:1667!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 7863 Comm: syz-executor Not tainted 6.13.0-rc3-syzkaller-00082-gbaaa2567a712 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:f2fs_put_super+0x1132/0x1150 fs/f2fs/super.c:1667
Code: fd 41 bf 0c 00 00 00 4c 89 e7 44 89 fe e8 56 5a 00 00 4c 89 e7 31 f6 48 c7 c2 00 ab 4f 8c 44 89 f9 49 89 c0 e8 1f c2 fd ff 90 <0f> 0b e8 c7 45 a5 fd 90 0f 0b e8 af 6b c6 07 66 2e 0f 1f 84 00 00
RSP: 0018:ffffc900045afae0 EFLAGS: 00010246
RAX: dab673f7b3e95800 RBX: 0000000000000002 RCX: dab673f7b3e95800
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900045afc18 R08: ffffffff817f09fc R09: 1ffff920008b5ed0
R10: dffffc0000000000 R11: fffff520008b5ed1 R12: ffff88807e130000
R13: dffffc0000000000 R14: ffff88805514e084 R15: 0000000000000009
FS:  00005555840ad500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe765b6f28 CR3: 000000006e1b6000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 generic_shutdown_super+0x139/0x2d0 fs/super.c:642
 kill_block_super+0x44/0x90 fs/super.c:1710
 kill_f2fs_super+0x344/0x690 fs/f2fs/super.c:4972
 deactivate_locked_super+0xc4/0x130 fs/super.c:473
 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373
 task_work_run+0x24f/0x310 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff2c2d87057
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffe765b76d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007ff2c2d87057
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe765b7790
RBP: 00007ffe765b7790 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe765b8810
R13: 00007ff2c2e01894 R14: 00007ffe765b8850 R15: 0000000000000011
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_put_super+0x1132/0x1150 fs/f2fs/super.c:1667
Code: fd 41 bf 0c 00 00 00 4c 89 e7 44 89 fe e8 56 5a 00 00 4c 89 e7 31 f6 48 c7 c2 00 ab 4f 8c 44 89 f9 49 89 c0 e8 1f c2 fd ff 90 <0f> 0b e8 c7 45 a5 fd 90 0f 0b e8 af 6b c6 07 66 2e 0f 1f 84 00 00
RSP: 0018:ffffc900045afae0 EFLAGS: 00010246
RAX: dab673f7b3e95800 RBX: 0000000000000002 RCX: dab673f7b3e95800
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900045afc18 R08: ffffffff817f09fc R09: 1ffff920008b5ed0
R10: dffffc0000000000 R11: fffff520008b5ed1 R12: ffff88807e130000
R13: dffffc0000000000 R14: ffff88805514e084 R15: 0000000000000009
FS:  00005555840ad500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4e760ce000 CR3: 000000006e1b6000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/19 22:04 upstream baaa2567a712 5905cb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in f2fs_put_super
* Struck through repros no longer work on HEAD.