syzbot


kernel BUG in __clear_extent_bit

Status: upstream: reported C repro on 2023/08/11 00:58
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+87ed0f6b88d6ff3177ad@syzkaller.appspotmail.com
First crash: 249d, last: 203d
Bug presence (3)
Date Name Commit Repro Result
2023/09/25 linux-5.15.y (ToT) b911329317b4 C [report] kernel BUG in __clear_extent_bit
2023/08/11 upstream (ToT) 25aa0bebba72 C [report] kernel BUG in close_ctree
2023/09/25 upstream (ToT) 6465e260f487 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in __clear_extent_bit btrfs C error 5 492d 507d 22/26 fixed on 2023/02/24 13:51
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/03/25 00:08 1m fix candidate upstream error job log (0)
2024/02/17 02:26 2m fix candidate upstream error job log (0)
2024/01/04 06:35 0m fix candidate upstream error job log (0)
2023/11/25 14:40 25m fix candidate upstream error job log (0)
2023/09/27 15:55 1m fix candidate upstream error job log (0)

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 ]------------
kernel BUG at fs/btrfs/extent_io.c:821!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4680 Comm: syz-executor402 Not tainted 5.15.125-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __clear_extent_bit+0xc2c/0xcc0 fs/btrfs/extent_io.c:821
lr : __clear_extent_bit+0xc2c/0xcc0 fs/btrfs/extent_io.c:821
sp : ffff80001eb16be0
x29: ffff80001eb16cd0 x28: 1fffe0001975d55e x27: dfff800000000000
x26: ffff0000d8258000 x25: 0000000000000000 x24: 0000000000000000
x23: 0000000000001fff x22: 0000000000000fff x21: ffff0000cbaeaaf8
x20: ffff0000cbaeaaf0 x19: ffff0000e20eecb0 x18: 0000000000000002
x17: ff80800008334ef0 x16: ffff80001195fe04 x15: ffff800008334ef0
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000a073110 x10: 0000000000000000 x9 : ffff80000a073110
x8 : ffff0000d8258000 x7 : 0000000000000000 x6 : 0000000000000001
x5 : ffff80001eb16038 x4 : 00000000000000c8 x3 : 0000000000000088
x2 : 0000000000000000 x1 : ffff800011f60e40 x0 : 0000000000000000
Call trace:
 __clear_extent_bit+0xc2c/0xcc0 fs/btrfs/extent_io.c:821
 try_release_extent_state fs/btrfs/extent_io.c:5246 [inline]
 try_release_extent_mapping+0x458/0x480 fs/btrfs/extent_io.c:5343
 __btrfs_releasepage+0x30/0x200 fs/btrfs/inode.c:8611
 btrfs_releasepage+0x1a8/0x258 fs/btrfs/inode.c:8624
 try_to_release_page+0x204/0x2d0 mm/filemap.c:3970
 invalidate_complete_page mm/truncate.c:203 [inline]
 invalidate_inode_page+0x250/0x308 mm/truncate.c:255
 __invalidate_mapping_pages+0x280/0x664 mm/truncate.c:494
 invalidate_mapping_pages+0x38/0x4c mm/truncate.c:533
 btrfs_direct_write fs/btrfs/file.c:2056 [inline]
 btrfs_file_write_iter+0x9e8/0xad8 fs/btrfs/file.c:2086
 do_iter_readv_writev+0x420/0x5f8
 do_iter_write+0x1b8/0x664 fs/read_write.c:855
 vfs_iter_write+0x88/0xac fs/read_write.c:896
 iter_file_splice_write+0x618/0xc48 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0xe4/0x1c0 fs/splice.c:936
 splice_direct_to_actor+0x408/0x9a0 fs/splice.c:891
 do_splice_direct+0x1f4/0x334 fs/splice.c:979
 generic_copy_file_range fs/read_write.c:1385 [inline]
 vfs_copy_file_range+0x944/0x1130 fs/read_write.c:1531
 __do_sys_copy_file_range fs/read_write.c:1588 [inline]
 __se_sys_copy_file_range fs/read_write.c:1551 [inline]
 __arm64_sys_copy_file_range+0x5f8/0x9d8 fs/read_write.c:1551
 __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
Code: 2a1503e3 95e368dd d4210000 97913978 (d4210000) 
---[ end trace 9ea205a04bd60659 ]---

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/11 02:54 linux-5.15.y c275eaaaa342 da3c3ef8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in __clear_extent_bit
2023/08/11 00:57 linux-5.15.y c275eaaaa342 da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in __clear_extent_bit
* Struck through repros no longer work on HEAD.