syzbot


WARNING in btrfs_add_link

Status: auto-obsoleted due to no activity on 2023/07/21 23:31
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+b531e31d583db14070d4@syzkaller.appspotmail.com
First crash: 555d, last: 534d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) [merge commit]:
commit 4bbf3422df78029f03161640dcb1e9d1ed64d1ea
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Fri Nov 11 01:31:15 2022 +0000

  Merge tag 'net-6.1-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in btrfs_add_link 0 (2) 2022/10/28 21:50
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_add_link 1 363d 363d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:04
Last patch testing requests (5)
Created Duration User Patch Repo Result
2023/07/21 22:51 37m retest repro upstream OK log
2023/05/16 01:57 20m retest repro upstream OK log
2023/05/12 21:07 30m retest repro upstream report log
2023/02/15 09:32 15m retest repro upstream report log
2023/02/15 09:32 54m retest repro upstream report log

Sample crash report:
BTRFS info (device loop0): using free space tree
BTRFS info (device loop0): enabling ssd optimizations
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3682 at fs/btrfs/inode.c:6568 btrfs_add_link+0xa18/0xcb0 fs/btrfs/inode.c:6568
Modules linked in:
CPU: 1 PID: 3682 Comm: syz-executor237 Not tainted 6.1.0-rc3-syzkaller-00332-g089d1c31224e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:btrfs_add_link+0xa18/0xcb0 fs/btrfs/inode.c:6568
Code: 12 1b fe 44 89 e6 bf e2 ff ff ff e8 42 0f 1b fe 41 83 fc e2 74 6a e8 67 12 1b fe 44 89 e6 48 c7 c7 c0 c2 37 8a e8 b6 83 e8 05 <0f> 0b bb 01 00 00 00 e8 4c 12 1b fe 41 89 d8 44 89 e1 ba a8 19 00
RSP: 0018:ffffc9000433f500 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff888077484000 RCX: 0000000000000000
RDX: ffff888075969d40 RSI: ffffffff81622b98 RDI: fffff52000867e92
RBP: ffffc9000433f610 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff88807006d788 R14: 0000000000000108 R15: ffff88807e5f0000
FS:  0000555556a80300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcedb1a298 CR3: 000000007ba38000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 btrfs_create_new_inode+0x1b83/0x29a0 fs/btrfs/inode.c:6504
 btrfs_create_common+0x1d5/0x260 fs/btrfs/inode.c:6639
 btrfs_create+0x112/0x160 fs/btrfs/inode.c:6679
 lookup_open.isra.0+0xf05/0x12a0 fs/namei.c:3413
 open_last_lookups fs/namei.c:3481 [inline]
 path_openat+0x996/0x2860 fs/namei.c:3710
 do_filp_open+0x1b6/0x400 fs/namei.c:3740
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_openat fs/open.c:1342 [inline]
 __se_sys_openat fs/open.c:1337 [inline]
 __x64_sys_openat+0x13f/0x1f0 fs/open.c:1337
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fce6a1b8ee9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff08dfbe18 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fce6a1b8ee9
RDX: 000000000000275a RSI: 00000000200001c0 RDI: 00000000ffffff9c
RBP: 00007fff08dfbe40 R08: 0000000000000002 R09: 00007fff08dfbe50
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007fce6a2016b8 R14: 00007fff08dfbe60 R15: 0000000000000004
 </TASK>

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/07 09:05 upstream 089d1c31224e 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in btrfs_add_link
2022/11/06 10:46 upstream b208b9fbbcba 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_add_link
2022/10/28 21:49 upstream b229b6ca5abb 8168b69e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in btrfs_add_link
2022/11/01 10:50 upstream b229b6ca5abb a1d8560a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btrfs_add_link
2022/10/28 21:30 upstream b229b6ca5abb 8168b69e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in btrfs_add_link
2022/10/18 06:55 upstream 55be6084c8e0 754863b4 .config console log report info ci-upstream-kasan-gce-root WARNING in btrfs_add_link
2022/10/24 00:31 linux-next 4d48f589d294 23bf86af .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root WARNING in btrfs_add_link
* Struck through repros no longer work on HEAD.