syzbot


general protection fault in btrfs_orphan_cleanup

Status: upstream: reported C repro on 2023/04/28 06:01
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+2e15a1e4284bf8517741@syzkaller.appspotmail.com
First crash: 308d, last: 63d
Cause bisection: introduced by (bisect log) [no-op ignored commit]:
commit 5132411985e14b8dda69173abee8ea9ba942698f
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: Fri Dec 14 11:29:43 2018 +0000

  kvm: selftests: ucall: improve ucall placement in memory, fix unsigned comparison

Crash: BUG: unable to handle kernel NULL pointer dereference in btrfs_release_extent_buffer_pages (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit a1912f712188291f9d7d434fba155461f1ebef66
Author: Josef Bacik <josef@toxicpanda.com>
Date: Wed Nov 22 17:17:55 2023 +0000

  btrfs: remove code for inode_cache and recovery mount options

  
Discussions (5)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] general protection fault in btrfs_orphan_cleanup 0 (3) 2024/01/30 18:24
[syzbot] Monthly btrfs report (Jan 2024) 0 (1) 2024/01/10 09:16
[syzbot] Monthly btrfs report (Dec 2023) 0 (1) 2023/12/06 10:05
[syzbot] Monthly btrfs report (Nov 2023) 0 (1) 2023/11/05 13:07
[syzbot] Monthly btrfs report (Oct 2023) 0 (1) 2023/10/04 14:48
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/08/27 07:42 55m retest repro upstream OK log
2023/08/27 07:42 2h00m retest repro upstream OK log
2023/08/27 07:42 1h18m retest repro upstream OK log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/01/30 12:09 6h13m bisect fix upstream job log (1)
2023/12/28 16:12 1h36m bisect fix upstream job log (0) log
2023/11/27 16:55 1h48m bisect fix upstream job log (0) log
2023/10/28 09:17 1h37m bisect fix upstream job log (0) log
2023/09/24 01:00 1h42m bisect fix upstream job log (0) log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/08/30 04:33 6h52m bisect upstream job log (1) log
2023/04/30 06:54 8h18m bisect upstream error job log (0)
marked invalid by nogikh@google.com

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7]
CPU: 0 PID: 5860 Comm: syz-executor269 Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:iput+0x40/0x8f0 fs/inode.c:1763
Code: 06 2a 91 ff 48 85 ed 0f 84 56 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 9d d8 00 00 00 48 89 d9 48 c1 e9 03 48 89 4c 24 08 <80> 3c 01 00 74 08 48 89 df e8 f2 f4 e8 ff 48 89 1c 24 48 8b 1b 48
RSP: 0018:ffffc9000aa87a10 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 00000000000000d6 RCX: 000000000000001a
RDX: 0000000000000000 RSI: 0000000000000004 RDI: fffffffffffffffe
RBP: fffffffffffffffe R08: dffffc0000000000 R09: ffffed100dab82ef
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88806e6e0000
R13: fffffffffffffffc R14: 00000000fffffffe R15: dffffc0000000000
FS:  00007fbc4e794700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbc55c5d908 CR3: 0000000071785000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_orphan_cleanup+0xa55/0xcf0 fs/btrfs/inode.c:3629
 create_snapshot+0x520/0x7e0 fs/btrfs/ioctl.c:852
 btrfs_mksubvol+0x5d0/0x750 fs/btrfs/ioctl.c:994
 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1040
 __btrfs_ioctl_snap_create+0x338/0x450 fs/btrfs/ioctl.c:1293
 btrfs_ioctl_snap_create+0x136/0x190 fs/btrfs/ioctl.c:1320
 btrfs_ioctl+0xbbc/0xd40
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbc55c0cda9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbc4e7942f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fbc55c987f0 RCX: 00007fbc55c0cda9
RDX: 0000000020001380 RSI: 0000000050009401 RDI: 0000000000000007
RBP: 00007fbc55c645ec R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0030656c69662f2e
R13: 00007fbc55c635f0 R14: 697265765f666572 R15: 00007fbc55c987f8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:iput+0x40/0x8f0 fs/inode.c:1763
Code: 06 2a 91 ff 48 85 ed 0f 84 56 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 9d d8 00 00 00 48 89 d9 48 c1 e9 03 48 89 4c 24 08 <80> 3c 01 00 74 08 48 89 df e8 f2 f4 e8 ff 48 89 1c 24 48 8b 1b 48
RSP: 0018:ffffc9000aa87a10 EFLAGS: 00010203
RAX: dffffc0000000000 RBX: 00000000000000d6 RCX: 000000000000001a
RDX: 0000000000000000 RSI: 0000000000000004 RDI: fffffffffffffffe
RBP: fffffffffffffffe R08: dffffc0000000000 R09: ffffed100dab82ef
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88806e6e0000
R13: fffffffffffffffc R14: 00000000fffffffe R15: dffffc0000000000
FS:  00007fbc4e794700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005578470fb7a0 CR3: 0000000071785000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	2a 91 ff 48 85 ed    	sub    -0x127ab701(%rcx),%dl
   6:	0f 84 56 03 00 00    	je     0x362
   c:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  13:	fc ff df
  16:	48 8d 9d d8 00 00 00 	lea    0xd8(%rbp),%rbx
  1d:	48 89 d9             	mov    %rbx,%rcx
  20:	48 c1 e9 03          	shr    $0x3,%rcx
  24:	48 89 4c 24 08       	mov    %rcx,0x8(%rsp)
* 29:	80 3c 01 00          	cmpb   $0x0,(%rcx,%rax,1) <-- trapping instruction
  2d:	74 08                	je     0x37
  2f:	48 89 df             	mov    %rbx,%rdi
  32:	e8 f2 f4 e8 ff       	callq  0xffe8f529
  37:	48 89 1c 24          	mov    %rbx,(%rsp)
  3b:	48 8b 1b             	mov    (%rbx),%rbx
  3e:	48                   	rex.W

Crashes (109):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/30 06:42 upstream 1ae78a14516b 62df2017 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/07/05 02:19 upstream 24be4d0b46bb f99c2404 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/05/05 03:11 upstream 1a5304fecee5 518a39a6 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/07/20 03:59 upstream bfa3037d8280 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in btrfs_orphan_cleanup
2023/07/19 00:37 upstream 74f1456c4a5f 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/07/18 20:56 upstream 74f1456c4a5f 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in btrfs_orphan_cleanup
2023/07/16 18:55 upstream 831fe284d827 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/07/16 09:17 upstream 831fe284d827 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in btrfs_orphan_cleanup
2023/07/15 03:54 upstream bde7f150276b 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/07/14 17:15 upstream 4b810bf037e5 d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/07/13 10:29 upstream eb26cbb1a754 bfb20202 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in btrfs_orphan_cleanup
2023/07/12 19:13 upstream 3f01e9fed845 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in btrfs_orphan_cleanup
2023/07/11 14:49 upstream 3f01e9fed845 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/07/10 06:46 upstream 06c2afb862f9 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/07/10 01:08 upstream c192ac735768 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/07/05 22:17 upstream d528014517f2 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/07/05 15:16 upstream d528014517f2 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/06/30 07:44 upstream b19edac5992d 01298212 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/28 18:09 upstream b19edac5992d ca69c785 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/27 11:04 upstream 1ef6663a587b 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/27 01:24 upstream c0a572d9d32f 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/06/26 22:41 upstream c0a572d9d32f 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/06/24 07:32 upstream 61dabacdad4e 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/06/23 13:50 upstream 8a28a0b6f1a1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/21 17:41 upstream e660abd551f1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/06/21 15:21 upstream e660abd551f1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in btrfs_orphan_cleanup
2023/06/20 09:54 upstream 692b7dc87ca6 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/19 14:05 upstream 45a3e24f65e9 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/19 00:13 upstream 8c1f0c38b310 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/06/18 02:11 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in btrfs_orphan_cleanup
2023/06/17 01:08 upstream 40f71e7cd3c6 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/14 14:59 upstream b6dad5178cea d2ee9228 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/13 23:03 upstream fb054096aea0 d2ee9228 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/06/12 14:05 upstream 858fd168a95c 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/12 03:09 upstream 4c605260bc60 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/11 18:59 upstream 4c605260bc60 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/11 06:48 upstream 022ce8862dff 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/10 11:40 upstream 64569520920a 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/06/09 16:32 upstream 33f2b5785a2b 9018a337 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/09 14:20 upstream 33f2b5785a2b 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/09 06:29 upstream 25041a4c02c7 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/06/06 04:01 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/06/03 10:36 upstream 4ecd704a4c51 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/06/02 22:57 upstream 9e87b63ed37e a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in btrfs_orphan_cleanup
2023/05/30 02:06 upstream 8b817fded42d cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in btrfs_orphan_cleanup
2023/05/29 11:15 upstream e338142b39cf cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in btrfs_orphan_cleanup
2023/05/29 10:00 upstream e338142b39cf cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/05/29 07:51 upstream 7877cb91f108 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/05/28 21:40 upstream 416839029e38 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/05/27 17:13 upstream 49572d536129 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/05/26 15:34 upstream 9db898594c54 b40ef614 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/04/27 18:24 upstream 6e98b09da931 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in btrfs_orphan_cleanup
2023/06/28 12:24 upstream 6e2332e0ab53 8064cb02 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in btrfs_orphan_cleanup
2023/07/08 08:24 linux-next 123212f53f3e 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/06/25 23:14 linux-next 8d2be868b42c 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/06/11 05:01 linux-next 715abedee4cd 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in btrfs_orphan_cleanup
2023/05/27 18:42 linux-next 715abedee4cd cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in btrfs_orphan_cleanup
* Struck through repros no longer work on HEAD.