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: 497d, last: 61d

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
similar bugs (9):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 kernel BUG at fs/ext4/inode.c:LINE! C 113 40d 996d 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 170d 338d 2/2 fixed on 2022/04/21 04:24
linux-4.19 kernel BUG at fs/ext4/inode.c:LINE! C error 9 2d11h 722d 0/1 upstream: reported C repro on 2020/10/14 01:19
upstream kernel BUG at fs/ext4/inode.c:LINE! C done 9 645d 770d 21/24 fixed on 2021/03/10 01:48
android-49 kernel BUG at fs/ext4/inode.c:LINE! C 280 1345d 1274d 0/3 public: reported C repro on 2019/04/11 08:44
linux-4.14 kernel BUG at fs/ext4/inode.c:LINE! C 5 19d 650d 0/1 upstream: reported C repro on 2020/12/25 03:51
android-414 kernel BUG at fs/ext4/inode.c:LINE! 1 1420d 1271d 0/1 auto-closed as invalid on 2019/05/15 13:37
android-5-10 kernel BUG in ext4_writepages C error 4 50d 150d 0/2 upstream: reported C repro on 2022/05/09 19:22
android-44 kernel BUG at fs/ext4/inode.c:LINE! C 110 1362d 1274d 0/2 public: reported C repro on 2019/04/11 08:44

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2720!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3602 Comm: syz-executor298 Not tainted 5.19.0-rc4-syzkaller-00044-g1a0e93df1e10 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2022
RIP: 0010:ext4_writepages+0x2409/0x3b90 fs/ext4/inode.c:2720
Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 fb 1d fe ff 83 c0 01 89 84 24 bc 00 00 00 e9 56 e2 ff ff e8 77 ea 59 ff <0f> 0b e8 70 ea 59 ff 44 0f b6 a4 24 db 00 00 00 89 5c 24 08 e9 cb
RSP: 0018:ffffc900030ef4b0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88807ed7d880 RSI: ffffffff82207c39 RDI: 0000000000000007
RBP: ffff8880729a0a58 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880729a0cb8 R14: ffffc900030efa00 R15: ffff888076d34000
FS:  0000555555a78300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005584fec7c348 CR3: 000000001c8f4000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 do_writepages+0x1ab/0x690 mm/page-writeback.c:2443
 filemap_fdatawrite_wbc mm/filemap.c:388 [inline]
 filemap_fdatawrite_wbc+0x143/0x1b0 mm/filemap.c:378
 __filemap_fdatawrite_range+0xb4/0xf0 mm/filemap.c:421
 file_write_and_wait_range+0xb2/0x120 mm/filemap.c:779
 ext4_sync_file+0x21f/0xfd0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x13a/0x220 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2731 [inline]
 ext4_buffered_write_iter+0x27d/0x330 fs/ext4/file.c:277
 ext4_file_write_iter+0x43c/0x1520 fs/ext4/file.c:679
 call_write_iter include/linux/fs.h:2058 [inline]
 new_sync_write+0x38a/0x560 fs/read_write.c:504
 vfs_write+0x7c0/0xac0 fs/read_write.c:591
 ksys_write+0x127/0x250 fs/read_write.c:644
 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+0x46/0xb0
RIP: 0033:0x7f78e172c069
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:00007ffea9554b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f78e172c069
RDX: 0000000000000016 RSI: 0000000020002580 RDI: 0000000000000007
RBP: 00007f78e16eb860 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f78e16eb8f0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_writepages+0x2409/0x3b90 fs/ext4/inode.c:2720
Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 fb 1d fe ff 83 c0 01 89 84 24 bc 00 00 00 e9 56 e2 ff ff e8 77 ea 59 ff <0f> 0b e8 70 ea 59 ff 44 0f b6 a4 24 db 00 00 00 89 5c 24 08 e9 cb
RSP: 0018:ffffc900030ef4b0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88807ed7d880 RSI: ffffffff82207c39 RDI: 0000000000000007
RBP: ffff8880729a0a58 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880729a0cb8 R14: ffffc900030efa00 R15: ffff888076d34000
FS:  0000555555a78300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f71d03c66c8 CR3: 000000001c8f4000 CR4: 0000000000350ee0

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/07/31 03:20 upstream 6a010258447d 1434eec0 .config log report syz C
ci-upstream-kasan-gce-root 2022/06/11 15:12 upstream 0885eacdc81f 1ba81399 .config log report syz C
ci-upstream-kasan-gce-root 2022/05/12 13:54 upstream feb9c5e19e91 1ba81399 .config log report syz C
ci-upstream-kasan-gce-root 2022/04/12 13:19 upstream ce522ba9ef7e 1ba81399 .config log report syz C
ci-upstream-kasan-gce-root 2022/03/13 13:01 upstream aad611a868d1 1ba81399 .config log report syz C
ci-upstream-kasan-gce-root 2022/02/11 12:42 upstream f1baf68e1383 1ba81399 .config log report syz C
ci-upstream-kasan-gce-root 2022/01/12 12:17 upstream daadb3bd0e8d 1ba81399 .config log report syz C
ci-upstream-kasan-gce-root 2021/12/13 11:51 upstream 2585cf9dfaad 1ba81399 .config log report syz C
ci-upstream-kasan-gce-root 2021/08/15 12:48 upstream 0aa78d17099b 1ba81399 .config log report syz C
ci-upstream-kasan-gce-root 2021/07/12 22:17 upstream 7fef2edf7cc7 1ba81399 .config log report syz C
* Struck through repros no longer work on HEAD.
Crashes (109):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/07/01 02:59 upstream 1a0e93df1e10 1434eec0 .config log report syz C kernel BUG in ext4_writepages
ci-upstream-kasan-gce-root 2021/06/12 21:55 upstream ad347abe4a98 1ba81399 .config 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 log report syz C kernel BUG in ext4_writepages
ci-qemu-upstream 2021/05/27 04:59 upstream 7ac3a1c1ae51 858ea628 .config log report info kernel BUG in mpage_prepare_extent_to_map
ci-qemu-upstream 2021/11/01 05:03 upstream 8bb7eca972ad 098b5d53 .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-kasan-gce-selinux-root 2021/10/10 14:43 upstream 7fd2bf83d59a 838e7e2c .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-kasan-gce-root 2021/10/04 10:26 upstream 9e1ff307c779 ce697b49 .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-this-kasan-gce 2021/11/09 08:46 net c45231a7668d 8ab17e57 .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-this-kasan-gce 2021/11/06 16:34 net 70bf363d7adb 4c1be0be .config 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/07 17:37 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/07 15:02 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/07 10:45 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/07 09:07 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/07 06:47 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/06 23:51 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/06 20:08 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/06 17:58 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/06 13:48 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/06 12:14 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/06 08:51 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/06 03:30 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/05 23:37 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/05 18:12 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/05 15:40 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/05 05:47 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-net-kasan-gce 2021/11/05 00:49 net-next cc0356d6a02e 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
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 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 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 log report info kernel BUG in ext4_da_get_block_prep
ci2-upstream-usb 2021/11/07 02:56 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 048ff8629e11 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci2-upstream-usb 2021/11/07 01:05 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 048ff8629e11 4c1be0be .config log report info kernel BUG in ext4_da_get_block_prep
ci-upstream-linux-next-kasan-gce-root 2021/09/23 07:19 linux-next bc5aa70f2699 8cac236e .config log report info kernel BUG in ext4_da_get_block_prep
* Struck through repros no longer work on HEAD.