syzbot


kernel BUG in mpage_prepare_extent_to_map

Status: upstream: reported C repro on 2021/05/31 07:15
Reported-by: syzbot+99043e2052d9c50c81fc@syzkaller.appspotmail.com
First crash: 619d, last: 54d

Cause bisection: introduced by (bisect log) :
commit 68e9dc29f8f42c79d2a3755223ed910ce36b4ae2
Author: Yuyang Du <duyuyang@gmail.com>
Date: Mon May 6 08:19:36 2019 +0000

  locking/lockdep: Check redundant dependency only when CONFIG_LOCKDEP_SMALL

Crash: BUG: MAX_STACK_TRACE_ENTRIES too low! (log)
Repro: C syz .config

Fix bisection: failed (bisect log)
similar bugs (11):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 kernel BUG at fs/ext4/inode.c:LINE! ext4 C 135 1d02h 1118d 0/2 upstream: reported C repro on 2020/01/14 12:13
android-5-10 kernel BUG in mpage_prepare_extent_to_map C error 254 292d 460d 2/2 fixed on 2022/04/21 04:24
linux-4.19 kernel BUG at fs/ext4/inode.c:LINE! ext4 C error 107 10h59m 844d 0/1 upstream: reported C repro on 2020/10/14 01:19
upstream kernel BUG at fs/ext4/inode.c:LINE! C done 9 767d 892d 21/24 fixed on 2021/03/10 01:48
android-49 kernel BUG at fs/ext4/inode.c:LINE! C 280 1467d 1396d 0/3 public: reported C repro on 2019/04/11 08:44
linux-4.14 kernel BUG at fs/ext4/inode.c:LINE! ext4 C 10 4d15h 772d 0/1 upstream: reported C repro on 2020/12/25 03:51
android-414 kernel BUG at fs/ext4/inode.c:LINE! 1 1542d 1393d 0/1 auto-closed as invalid on 2019/05/15 13:37
android-5-10 kernel BUG in ext4_writepages C error 5 110d 272d 2/2 fixed on 2022/11/16 18:44
android-44 kernel BUG at fs/ext4/inode.c:LINE! C 110 1484d 1396d 0/2 public: reported C repro on 2019/04/11 08:44
android-5-15 kernel BUG in ext4_writepages ext4 C error 21 4h27m 110d 0/2 upstream: reported C repro on 2022/10/18 14:12
android-5-10 kernel BUG in ext4_writepages (2) ext4 C error 35 16h59m 70d 0/2 upstream: reported C repro on 2022/11/27 00:51
Last patch testing requests:
Created Duration User Patch Repo Result
2022/11/14 05:30 16m retest repro upstream OK log

Sample crash report:
EXT4-fs error (device loop0): ext4_mb_generate_buddy:1095: group 0, block bitmap and bg descriptor inconsistent: 25 vs 150994969 free clusters
------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2738!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3629 Comm: syz-executor139 Not tainted 6.1.0-syzkaller-00071-g3a28c2c89f4b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ext4_writepages+0x2550/0x3da0 fs/ext4/inode.c:2738
Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 64 21 fe ff 83 c0 01 89 84 24 c4 00 00 00 e9 4d e1 ff ff e8 60 d5 5e ff <0f> 0b e8 59 d5 5e ff 44 0f b6 a4 24 eb 00 00 00 89 5c 24 08 e9 7e
RSP: 0018:ffffc90003cef4f8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff888022571d40 RSI: ffffffff82214800 RDI: 0000000000000007
RBP: ffff888074d25090 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001
R13: ffff888074d252f0 R14: ffffc90003cefa50 R15: ffff888024d60000
FS:  00007f79d9d8c700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000004e CR3: 000000007ea45000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 do_writepages+0x1af/0x690 mm/page-writeback.c:2469
 filemap_fdatawrite_wbc mm/filemap.c:388 [inline]
 filemap_fdatawrite_wbc+0x147/0x1b0 mm/filemap.c:378
 __filemap_fdatawrite_range+0xb8/0xf0 mm/filemap.c:421
 file_write_and_wait_range+0xb6/0x120 mm/filemap.c:774
 ext4_sync_file+0x265/0x1150 fs/ext4/fsync.c:151
 vfs_fsync_range+0x13e/0x230 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2891 [inline]
 generic_write_sync include/linux/fs.h:2888 [inline]
 ext4_buffered_write_iter+0x379/0x460 fs/ext4/file.c:292
 ext4_file_write_iter+0x8bc/0x16e0 fs/ext4/file.c:700
 call_write_iter include/linux/fs.h:2199 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x9ed/0xdd0 fs/read_write.c:584
 ksys_write+0x12b/0x250 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f79d9ddf889
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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:00007f79d9d8c208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f79d9e646e8 RCX: 00007f79d9ddf889
RDX: 0000000000000009 RSI: 0000000020000f80 RDI: 0000000000000004
RBP: 00007f79d9e646e0 R08: 00007f79d9e646e0 R09: 0000000000000000
R10: 00007f79d9d8c210 R11: 0000000000000246 R12: 00007f79d9e646ec
R13: 00007ffe7a0cbe2f R14: 00007f79d9d8c300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_writepages+0x2550/0x3da0 fs/ext4/inode.c:2738
Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 64 21 fe ff 83 c0 01 89 84 24 c4 00 00 00 e9 4d e1 ff ff e8 60 d5 5e ff <0f> 0b e8 59 d5 5e ff 44 0f b6 a4 24 eb 00 00 00 89 5c 24 08 e9 7e
RSP: 0018:ffffc90003cef4f8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff888022571d40 RSI: ffffffff82214800 RDI: 0000000000000007
RBP: ffff888074d25090 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001
R13: ffff888074d252f0 R14: ffffc90003cefa50 R15: ffff888024d60000
FS:  00007f79d9d8c700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f79d9e307e8 CR3: 000000007ea45000 CR4: 0000000000350ee0

Crashes (145):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/12/13 09:12 upstream 3a28c2c89f4b 67be1ae7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/12/03 14:25 upstream 97ee9d1c1696 e080de16 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/30 05:53 upstream 01f856ae6d0c 579a3740 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/30 00:02 upstream ca57f02295f1 579a3740 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/28 01:21 upstream faf68e3523c2 f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_writepages
ci-upstream-kasan-gce-root 2022/07/01 02:59 upstream 1a0e93df1e10 1434eec0 .config strace log report syz C kernel BUG in ext4_writepages
ci-upstream-linux-next-kasan-gce-root 2022/08/06 05:17 linux-next cb71b93c2dc3 e853abd9 .config strace log report syz C kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/17 00:49 upstream 59d0d52c30d4 3a127a31 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] [mounted in repro #3] [mounted in repro #4] kernel BUG in ext4_writepages
ci-upstream-kasan-gce-root 2021/06/12 21:55 upstream ad347abe4a98 1ba81399 .config console log report syz C kernel BUG in ext4_writepages
ci-qemu-upstream 2021/05/27 04:59 upstream 7ac3a1c1ae51 858ea628 .config console log report info kernel BUG in mpage_prepare_extent_to_map
ci2-upstream-fs 2022/12/12 21:22 upstream 830b3c68c1fb 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/12/12 11:57 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/12/11 18:12 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-kasan-gce-smack-root 2022/12/09 19:19 upstream 0d1409e4ff08 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-kasan-gce-root 2022/12/09 01:48 upstream ce19275f0103 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-kasan-gce-selinux-root 2022/12/08 21:10 upstream 479174d402bc 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/12/06 22:30 upstream 8ed710da2873 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-qemu-upstream 2022/12/05 16:16 upstream 76dcd734eca2 dff7de3a .config console log report info kernel BUG in ext4_writepages
ci-upstream-kasan-gce-selinux-root 2022/12/04 05:56 upstream 97ee9d1c1696 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/30 12:25 upstream 01f856ae6d0c 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/30 03:14 upstream 01f856ae6d0c 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-kasan-gce-selinux-root 2022/11/30 00:00 upstream 01f856ae6d0c 05dc7993 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/29 07:34 upstream ca57f02295f1 ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/29 07:11 upstream ca57f02295f1 ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/29 00:04 upstream b7b275e60bcd ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/28 20:32 upstream b7b275e60bcd 247de55b .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/28 07:54 upstream cf562a45a0d5 f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-kasan-gce-smack-root 2022/11/26 22:56 upstream 644e9524388a 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-fs 2022/11/16 20:36 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-net-this-kasan-gce 2021/11/09 08:46 net c45231a7668d 8ab17e57 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-bpf-kasan-gce 2021/10/31 02:13 bpf 72f898ca0ab8 098b5d53 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/11 17:00 net-next cc0356d6a02e 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/11 15:15 net-next cc0356d6a02e 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/11 11:56 net-next cc0356d6a02e 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/11 08:31 net-next cc0356d6a02e 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/11 05:42 net-next cc0356d6a02e 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/11 04:22 net-next cc0356d6a02e 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/11 01:43 net-next cc0356d6a02e 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/10 23:00 net-next cc0356d6a02e 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/10 11:48 net-next cc0356d6a02e 55fa030c .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/10 07:22 net-next cc0356d6a02e 55fa030c .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/10 02:23 net-next cc0356d6a02e 55fa030c .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/09 22:08 net-next cc0356d6a02e 59bcaf9a .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/09 10:02 net-next cc0356d6a02e 8ab17e57 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/09 07:32 net-next cc0356d6a02e 8ab17e57 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/09 04:59 net-next cc0356d6a02e 8ab17e57 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/08 22:55 net-next cc0356d6a02e d29682f1 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/08 20:14 net-next cc0356d6a02e d29682f1 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/08 17:14 net-next cc0356d6a02e d29682f1 .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/08 07:53 net-next cc0356d6a02e 4c1be0be .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/08 04:47 net-next cc0356d6a02e 4c1be0be .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-bpf-next-kasan-gce 2021/11/08 03:09 bpf-next 5577f24cb04a 4c1be0be .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/08 01:14 net-next cc0356d6a02e 4c1be0be .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/08 00:05 net-next cc0356d6a02e 4c1be0be .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/07 23:02 net-next cc0356d6a02e 4c1be0be .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/07 19:06 net-next cc0356d6a02e 4c1be0be .config console log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-linux-next-kasan-gce-root 2022/12/10 01:11 linux-next 591cd61541b9 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-linux-next-kasan-gce-root 2022/12/08 15:04 linux-next 591cd61541b9 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-linux-next-kasan-gce-root 2022/12/07 06:06 linux-next 591cd61541b9 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-linux-next-kasan-gce-root 2022/12/06 18:23 linux-next 9e46a7996732 d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-linux-next-kasan-gce-root 2022/12/06 00:06 linux-next 9e46a7996732 045cbb84 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-linux-next-kasan-gce-root 2022/11/27 15:26 linux-next 9e46a7996732 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci-upstream-linux-next-kasan-gce-root 2022/11/25 23:56 linux-next 9e46a7996732 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_writepages
ci2-upstream-usb 2021/11/11 22:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 048ff8629e11 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci2-upstream-usb 2021/11/11 08:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 048ff8629e11 75b04091 .config console log report info kernel BUG in ext4_da_get_block_prep
ci2-upstream-usb 2021/11/08 13:10 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 048ff8629e11 d29682f1 .config console log report info kernel BUG in ext4_da_get_block_prep
* Struck through repros no longer work on HEAD.