syzbot


kernel BUG in may_delete

Status: upstream: reported C repro on 2024/04/03 23:51
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+292d0e141b92a314ddec@syzkaller.appspotmail.com
First crash: 72d, last: 10d
Bug presence (3)
Date Name Commit Repro Result
2024/04/04 android14-6.1 (ToT) ebcdb9dc211f C [report] kernel BUG in may_delete
2024/04/04 lts (merge base) 883d1a956208 C Didn't crash
2024/04/04 upstream (ToT) c85af715cac0 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 kernel BUG in may_delete C 34 5d02h 72d 0/2 upstream: reported C repro on 2024/04/03 23:36
android-5-15 kernel BUG in may_delete origin:downstream C 10 10d 72d 0/2 upstream: reported C repro on 2024/04/03 23:06
android-5-10 kernel BUG in may_delete C 151 4d19h 72d 0/2 upstream: reported C repro on 2024/04/04 00:03

Sample crash report:
EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback.
------------[ cut here ]------------
kernel BUG at fs/namei.c:2956!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 296 Comm: syz-executor304 Not tainted 6.1.75-syzkaller-00112-gaf361f9a1066 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:may_delete+0x6eb/0x6f0 fs/namei.c:2956
Code: 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 7f fe ff ff 4c 89 e7 e8 46 af f3 ff e9 72 fe ff ff e8 0c d4 ac ff 0f 0b e8 05 d4 ac ff <0f> 0b 0f 1f 00 55 48 89 e5 41 56 53 48 89 fb e8 f1 d3 ac ff 4c 8d
RSP: 0018:ffffc90000e37a58 EFLAGS: 00010293
RAX: ffffffff81c888cb RBX: ffff88811f11e360 RCX: ffff888109638000
RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000
RBP: ffffc90000e37ac0 R08: ffffffff81c8825f R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88811f122110
R13: 1ffff11023e24422 R14: ffff888100558168 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555b9d759068 CR3: 000000010e9cc000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vfs_rmdir+0x32/0x500 fs/namei.c:4178
 incfs_kill_sb+0x113/0x230 fs/incfs/vfs.c:1962
 deactivate_locked_super+0xad/0x110 fs/super.c:334
 deactivate_super+0xbe/0xf0 fs/super.c:365
 cleanup_mnt+0x485/0x510 fs/namespace.c:1186
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1193
 task_work_run+0x24d/0x2e0 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xbd5/0x2b80 kernel/exit.c:875
 do_group_exit+0x21a/0x2d0 kernel/exit.c:1025
 __do_sys_exit_group kernel/exit.c:1036 [inline]
 __se_sys_exit_group kernel/exit.c:1034 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1034
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb7744c2ac9
Code: Unable to access opcode bytes at 0x7fb7744c2a9f.
RSP: 002b:00007ffc49ab3cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fb7744c2ac9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007fb77453f370 R08: ffffffffffffffb8 R09: 00007ffc49ab3dd0
R10: 0000000000000e01 R11: 0000000000000246 R12: 00007fb77453f370
R13: 0000000000000000 R14: 00007fb7745400e0 R15: 00007fb774490d80
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:may_delete+0x6eb/0x6f0 fs/namei.c:2956
Code: 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 7f fe ff ff 4c 89 e7 e8 46 af f3 ff e9 72 fe ff ff e8 0c d4 ac ff 0f 0b e8 05 d4 ac ff <0f> 0b 0f 1f 00 55 48 89 e5 41 56 53 48 89 fb e8 f1 d3 ac ff 4c 8d
RSP: 0018:ffffc90000e37a58 EFLAGS: 00010293
RAX: ffffffff81c888cb RBX: ffff88811f11e360 RCX: ffff888109638000
RDX: 0000000000000000 RSI: 0000000000200000 RDI: 0000000000000000
RBP: ffffc90000e37ac0 R08: ffffffff81c8825f R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88811f122110
R13: 1ffff11023e24422 R14: ffff888100558168 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555b9d759068 CR3: 000000010e85a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/03 23:49 android14-6.1 af361f9a1066 51c4dcff .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 kernel BUG in may_delete
2024/06/04 11:14 android14-6.1 c36abc6d4212 a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/06/01 09:47 android14-6.1 92704e00b599 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/11 02:47 android14-6.1 4d55129aea65 f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/05 07:31 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/05 07:30 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/05 07:29 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/05 07:29 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/05 07:29 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/05 07:29 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/05 07:29 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/04 22:21 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/04 22:21 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/04 22:21 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/03 20:28 android14-6.1 1794308d463f dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/03 20:28 android14-6.1 1794308d463f dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/03 20:28 android14-6.1 1794308d463f dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/05/03 20:28 android14-6.1 1794308d463f dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/04/25 04:41 android14-6.1 c61278bb705a 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/04/21 06:26 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/04/11 10:36 android14-6.1 be55946e207c 33b9e058 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/04/05 02:02 android14-6.1 60534eef4739 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/04/05 02:02 android14-6.1 60534eef4739 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
2024/04/05 02:00 android14-6.1 60534eef4739 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in may_delete
* Struck through repros no longer work on HEAD.