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: 366d, last: 15d

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 111 18d 864d 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 38d 206d 2/2 fixed on 2022/04/21 04:24
linux-4.19 kernel BUG at fs/ext4/inode.c:LINE! C error 3 18d 591d 0/1 upstream: reported C repro on 2020/10/14 01:19
upstream kernel BUG at fs/ext4/inode.c:LINE! C done 9 514d 639d 21/22 fixed on 2021/03/10 01:48
android-49 kernel BUG at fs/ext4/inode.c:LINE! C 280 1213d 1143d 0/3 public: reported C repro on 2019/04/11 08:44
linux-4.14 kernel BUG at fs/ext4/inode.c:LINE! C 4 18d 519d 0/1 upstream: reported C repro on 2020/12/25 03:51
android-414 kernel BUG at fs/ext4/inode.c:LINE! 1 1288d 1140d 0/1 auto-closed as invalid on 2019/05/15 13:37
android-5-10 kernel BUG in ext4_writepages C error 1 18d 18d 0/2 upstream: reported C repro on 2022/05/09 19:22
android-44 kernel BUG at fs/ext4/inode.c:LINE! C 110 1230d 1143d 0/2 public: reported C repro on 2019/04/11 08:44

Sample crash report:
loop0: detected capacity change from 0 to 512
EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue. Quota mode: none.
------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2704!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8394 Comm: syz-executor475 Not tainted 5.13.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ext4_writepages+0x244d/0x3b70 fs/ext4/inode.c:2704
Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 57 23 fe ff 83 c0 01 89 84 24 bc 00 00 00 e9 2d e2 ff ff e8 73 d5 66 ff <0f> 0b e8 6c d5 66 ff 44 0f b6 a4 24 db 00 00 00 89 5c 24 08 e9 a7
RSP: 0018:ffffc900019ff580 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88801cad54c0 RSI: ffffffff820e071d RDI: 0000000000000003
RBP: ffff888035bc5a08 R08: 0000000000000000 R09: ffff888035bc5a0f
R10: ffffffff820dfbf3 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888035bc5cf0 R14: ffffc900019ffa08 R15: ffff88801d9ea000
FS:  0000000000865300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff50003d188 CR3: 000000002e66c000 CR4: 0000000000350ee0
Call Trace:
 do_writepages+0xec/0x290 mm/page-writeback.c:2352
 __filemap_fdatawrite_range+0x2a5/0x390 mm/filemap.c:413
 file_write_and_wait_range+0xb2/0x120 mm/filemap.c:792
 ext4_sync_file+0x21f/0xfd0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x13a/0x220 fs/sync.c:200
 generic_write_sync include/linux/fs.h:2982 [inline]
 ext4_buffered_write_iter+0x36a/0x4d0 fs/ext4/file.c:277
 ext4_file_write_iter+0x423/0x14e0 fs/ext4/file.c:680
 call_write_iter include/linux/fs.h:2114 [inline]
 new_sync_write+0x426/0x650 fs/read_write.c:518
 vfs_write+0x796/0xa30 fs/read_write.c:605
 ksys_write+0x12d/0x250 fs/read_write.c:658
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x443dc9
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:00007ffef54952a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 0000000000443dc9
RDX: 0000000000000082 RSI: 0000000020000180 RDI: 0000000000000004
RBP: 0000000000403660 R08: 00000000004004a0 R09: 00000000004004a0
R10: 00000000004004a0 R11: 0000000000000246 R12: 00000000004036f0
R13: 0000000000000000 R14: 00000000004b2018 R15: 00000000004004a0
Modules linked in:
---[ end trace e0abbb4b21cfac7f ]---
RIP: 0010:ext4_writepages+0x244d/0x3b70 fs/ext4/inode.c:2704
Code: e1 be 00 10 00 00 4c 89 ef 48 d3 ee ba 01 00 00 00 e8 57 23 fe ff 83 c0 01 89 84 24 bc 00 00 00 e9 2d e2 ff ff e8 73 d5 66 ff <0f> 0b e8 6c d5 66 ff 44 0f b6 a4 24 db 00 00 00 89 5c 24 08 e9 a7
RSP: 0018:ffffc900019ff580 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88801cad54c0 RSI: ffffffff820e071d RDI: 0000000000000003
RBP: ffff888035bc5a08 R08: 0000000000000000 R09: ffff888035bc5a0f
R10: ffffffff820dfbf3 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888035bc5cf0 R14: ffffc900019ffa08 R15: ffff88801d9ea000
FS:  0000000000865300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f205933e000 CR3: 000000002e66c000 CR4: 0000000000350ef0

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
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
Crashes (107):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/06/12 21:55 upstream ad347abe4a98 1ba81399 .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