syzbot


WARNING in btrfs_rename2

Status: upstream: reported C repro on 2023/04/10 13:43
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+cbe7d68e31e00d4e309a@syzkaller.appspotmail.com
First crash: 620d, last: 7d12h
Bug presence (2)
Date Name Commit Repro Result
2023/07/09 linux-5.15.y (ToT) d54cfc420586 C [report] WARNING in btrfs_rename2
2023/07/09 upstream (ToT) 1c7873e33645 C Didn't crash
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/12/13 23:54 13m retest repro linux-5.15.y report log
2024/10/04 16:21 14m retest repro linux-5.15.y report log
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/10/15 07:57 0m fix candidate upstream error job log
2024/04/01 20:41 0m fix candidate upstream error job log
2024/01/20 22:33 0m fix candidate upstream error job log
2023/12/13 19:17 49m fix candidate upstream error job log
2023/10/31 13:33 0m fix candidate upstream error job log
2023/09/05 16:36 4m fix candidate upstream error job log

Sample crash report:
 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: 4057 at fs/btrfs/inode.c:9870 btrfs_rename fs/btrfs/inode.c:9870 [inline]
WARNING: CPU: 0 PID: 4057 at fs/btrfs/inode.c:9870 btrfs_rename2+0x2e90/0x3f80 fs/btrfs/inode.c:9966
Modules linked in:
CPU: 0 PID: 4057 Comm: syz-executor741 Not tainted 5.15.120-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_rename fs/btrfs/inode.c:9870 [inline]
pc : btrfs_rename2+0x2e90/0x3f80 fs/btrfs/inode.c:9966
lr : btrfs_rename fs/btrfs/inode.c:9870 [inline]
lr : btrfs_rename2+0x2e90/0x3f80 fs/btrfs/inode.c:9966
sp : ffff80001ce27600
x29: ffff80001ce27820 x28: ffff0000d9615948 x27: ffff0000df8cfa80
x26: dfff800000000000 x25: ffff7000039c4ee8 x24: 0000000000000000
x23: 0000000000000001 x22: 1fffe0001bf00b13 x21: ffff0000cb6f59d0
x20: ffff0000df805898 x19: 00000000fffffff4 x18: 0000000000000001
x17: ff80800008335ea8 x16: 0000000000000000 x15: ffff800008335ea8
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000832d950 x10: 0000000000000000 x9 : 0428addfefce4200
x8 : 0428addfefce4200 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001ce26d78 x4 : ffff8000149cfca0 x3 : ffff800008335ff4
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_rename fs/btrfs/inode.c:9870 [inline]
 btrfs_rename2+0x2e90/0x3f80 fs/btrfs/inode.c:9966
 vfs_rename+0x9e0/0xe80 fs/namei.c:4736
 do_renameat2+0x980/0x1040 fs/namei.c:4887
 __do_sys_renameat2 fs/namei.c:4920 [inline]
 __se_sys_renameat2 fs/namei.c:4917 [inline]
 __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:4917
 __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: 72504
hardirqs last  enabled at (72503): [<ffff80000832bae8>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (72504): [<ffff800011957088>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last  enabled at (72484): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (72484): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (72435): [<ffff8000081b573c>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (72435): [<ffff8000081b573c>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (72435): [<ffff8000081b573c>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace 14ea487444ea1fe2 ]---
BTRFS: error (device loop0) in btrfs_rename:9870: errno=-12 Out of memory
BTRFS info (device loop0): forced readonly

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/08 16:21 linux-5.15.y d54cfc420586 668cb1fa .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_rename2
2023/04/15 06:15 linux-5.15.y 4fdad925aa1a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_rename2
2023/04/14 01:50 linux-5.15.y 4fdad925aa1a 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_rename2
2023/07/08 15:49 linux-5.15.y d54cfc420586 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_rename2
2023/04/19 03:15 linux-5.15.y 4fdad925aa1a d931e9f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_rename2
2023/04/10 13:43 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_rename2
* Struck through repros no longer work on HEAD.