syzbot


WARNING in emit_fiemap_extent

Status: upstream: reported C repro on 2023/06/20 21:34
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+9992306148b06272f3bb@syzkaller.appspotmail.com
First crash: 306d, last: 47d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit aa3dbde878961dd333cdd3c326b93e6c84a23ed4
Author: David Howells <dhowells@redhat.com>
Date: Mon May 22 13:49:54 2023 +0000

  splice: Make splice from an O_DIRECT fd use copy_splice_read()

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] WARNING in emit_fiemap_extent 2 (4) 2023/08/02 14:46
Last patch testing requests (8)
Created Duration User Patch Repo Result
2024/04/04 13:25 1h58m retest repro upstream error OK
2024/03/17 18:11 23m retest repro upstream error OK
2024/03/16 11:35 18m retest repro upstream error OK
2024/02/15 21:07 12m retest repro upstream report log
2024/01/25 12:14 16m retest repro upstream report log
2023/12/16 09:32 13m retest repro upstream report log
2023/11/14 13:41 11m retest repro upstream report log
2023/09/05 12:25 12m retest repro upstream report log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7164 at fs/btrfs/extent_io.c:2499 emit_fiemap_extent+0xec/0x410 fs/btrfs/extent_io.c:2499
Modules linked in:
CPU: 0 PID: 7164 Comm: syz-executor984 Not tainted 6.8.0-rc5-syzkaller-00029-g39133352cbed #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:emit_fiemap_extent+0xec/0x410 fs/btrfs/extent_io.c:2499
Code: cd 48 fe 49 8b 45 00 48 89 04 24 48 8b 4c 24 28 48 8d 2c 08 48 89 ef 4c 89 f6 e8 bf ff e9 fd 4c 39 f5 76 1d e8 55 fd e9 fd 90 <0f> 0b 90 bd ea ff ff ff e9 25 02 00 00 e8 42 fd e9 fd e9 97 01 00
RSP: 0018:ffffc9000ee57448 EFLAGS: 00010293
RAX: ffffffff83a96edb RBX: ffffc9000ee578a0 RCX: ffff88802a410000
RDX: 0000000000000000 RSI: 0000000000016000 RDI: 0000000000101000
RBP: 0000000000101000 R08: ffffffff83a96ed1 R09: 0000000000000800
R10: ffffc9000ee57418 R11: fffff52001dcae85 R12: 1ffff92001dcaf17
R13: ffffc9000ee578b0 R14: 0000000000016000 R15: 1ffff92001dcaf16
FS:  00007f6a9eee26c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200012c8 CR3: 00000000304d8000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 fiemap_process_hole+0xb77/0xc50 fs/btrfs/extent_io.c:2797
 extent_fiemap+0xcec/0x1ec0 fs/btrfs/extent_io.c:3003
 btrfs_fiemap+0x178/0x1f0 fs/btrfs/inode.c:7863
 ioctl_fiemap fs/ioctl.c:220 [inline]
 do_vfs_ioctl+0x1a02/0x2b60 fs/ioctl.c:811
 __do_sys_ioctl fs/ioctl.c:869 [inline]
 __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857
 do_syscall_64+0xf9/0x240
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f6a9ef46bd9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6a9eee2218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6a9efd36d8 RCX: 00007f6a9ef46bd9
RDX: 00000000200012c0 RSI: 00000000c020660b RDI: 0000000000000006
RBP: 00007f6a9efd36d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6a9efd36dc
R13: 00007f6a9efa0660 R14: 00007f6a9ef9b0c0 R15: 8000000000000001
 </TASK>

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/22 14:48 upstream 39133352cbed 345111b5 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root WARNING in emit_fiemap_extent
2024/02/01 20:51 upstream 5c24e4e9e708 81024119 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-upstream-fs WARNING in emit_fiemap_extent
2023/12/02 09:06 upstream 815fb87b7530 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] [mounted in repro #3] ci2-upstream-fs WARNING in emit_fiemap_extent
2023/08/02 04:39 upstream 5d0c230f1de8 df07ffe8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in emit_fiemap_extent
2023/06/16 22:43 upstream 40f71e7cd3c6 f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in emit_fiemap_extent
2024/03/02 10:45 upstream 17ba56605bfd 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in emit_fiemap_extent
2024/02/23 17:00 upstream ffd2cb6b718e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in emit_fiemap_extent
2024/01/11 10:08 upstream de927f6c0b07 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in emit_fiemap_extent
2024/01/11 01:40 upstream ab27740f7665 04815ef1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in emit_fiemap_extent
2023/08/22 09:39 upstream f7757129e3de 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in emit_fiemap_extent
2023/08/20 07:25 upstream 9e6c269de404 d216d8a0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in emit_fiemap_extent
2023/08/02 00:51 upstream 5d0c230f1de8 df07ffe8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in emit_fiemap_extent
2023/06/19 00:52 upstream 8c1f0c38b310 f3921d4d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in emit_fiemap_extent
2023/06/16 21:26 upstream 40f71e7cd3c6 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in emit_fiemap_extent
* Struck through repros no longer work on HEAD.