syzbot


kernel BUG in mpage_prepare_extent_to_map

Status: fixed on 2022/04/21 04:24
Reported-by: syzbot+0ed9f769264276638893@syzkaller.appspotmail.com
Fix commit: 330d0e44fc5a ext4: don't BUG if someone dirty pages without asking ext4 first
First crash: 1116d, last: 947d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[REPORT] kernel BUG at fs/ext4/inode.c:2620 - page_buffers() 15 (15) 2022/02/24 10:29
[PATCH 1/1] Revert "iomap: fall back to buffered writes for invalidation failures" 16 (16) 2022/02/14 14:43
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! ext4 C 174 3h27m 1773d 0/2 upstream: reported C repro on 2020/01/14 12:13
upstream kernel BUG in mpage_prepare_extent_to_map ext4 C done error 145 709d 1270d 0/28 auto-obsoleted due to no activity on 2024/03/07 20:46
linux-4.19 kernel BUG at fs/ext4/inode.c:LINE! ext4 C error 145 625d 1499d 0/1 upstream: reported C repro on 2020/10/14 01:19
upstream kernel BUG at fs/ext4/inode.c:LINE! ext4 C done 9 1422d 1547d 19/28 fixed on 2021/03/10 01:48
android-49 kernel BUG at fs/ext4/inode.c:LINE! C 280 2122d 2051d 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 11 633d 1427d 0/1 upstream: reported C repro on 2020/12/25 03:51
android-414 kernel BUG at fs/ext4/inode.c:LINE! 1 2197d 2048d 0/1 auto-closed as invalid on 2019/05/15 13:37
android-5-10 kernel BUG in ext4_writepages C error 5 765d 927d 2/2 fixed on 2022/11/16 18:44
android-44 kernel BUG at fs/ext4/inode.c:LINE! C 110 2138d 2051d 0/2 public: reported C repro on 2019/04/11 08:44

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2647!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 459 Comm: syz-executor359 Tainted: G        W         5.10.93-syzkaller-01028-g0347b1658399 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:mpage_prepare_extent_to_map+0xbe9/0xc00 fs/ext4/inode.c:2647
Code: e8 fc bd c3 ff e9 80 f6 ff ff 44 89 e9 80 e1 07 38 c1 0f 8c a6 fe ff ff 4c 89 ef e8 e1 bd c3 ff e9 99 fe ff ff e8 87 c9 89 ff <0f> 0b e8 80 c9 89 ff 0f 0b e8 79 1e b8 02 66 0f 1f 84 00 00 00 00
RSP: 0018:ffffc90000e2e9c0 EFLAGS: 00010293
RAX: ffffffff81e321f9 RBX: 0000000000000000 RCX: ffff88810c12cf00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e2eb90 R08: ffffffff81e31e71 R09: fffff940008d68b1
R10: fffff940008d68b1 R11: 0000000000000000 R12: ffffea00046b4580
R13: ffffc90000e2ea80 R14: 000000000000011e R15: dffffc0000000000
FS:  00007fcfd0717700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcfd07d5520 CR3: 000000010a142000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_writepages+0xcbb/0x3950 fs/ext4/inode.c:2776
 do_writepages+0x13a/0x280 mm/page-writeback.c:2358
 __filemap_fdatawrite_range+0x356/0x420 mm/filemap.c:427
 filemap_write_and_wait_range+0x64/0xe0 mm/filemap.c:660
 __iomap_dio_rw+0x621/0x10c0 fs/iomap/direct-io.c:495
 iomap_dio_rw+0x35/0x80 fs/iomap/direct-io.c:611
 ext4_dio_write_iter fs/ext4/file.c:571 [inline]
 ext4_file_write_iter+0xfc5/0x1b70 fs/ext4/file.c:681
 do_iter_readv_writev+0x548/0x740 include/linux/fs.h:1941
 do_iter_write+0x182/0x660 fs/read_write.c:866
 vfs_iter_write+0x7c/0xa0 fs/read_write.c:907
 iter_file_splice_write+0x7fb/0xf70 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0xfe/0x130 fs/splice.c:933
 splice_direct_to_actor+0x4f4/0xbc0 fs/splice.c:888
 do_splice_direct+0x28b/0x3e0 fs/splice.c:976
 do_sendfile+0x914/0x1390 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0x1c4/0x220 fs/read_write.c:1304
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fcfd0793809
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 19 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:00007fcfd0717308 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fcfd081c298 RCX: 00007fcfd0793809
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003
RBP: 00007fcfd081c290 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000080000005 R11: 0000000000000246 R12: 00007fcfd081c29c
R13: 00007fcfd07e2a90 R14: 65732f636f72702f R15: 0000000000022000
Modules linked in:
---[ end trace 32f51ef0a2327213 ]---
RIP: 0010:mpage_prepare_extent_to_map+0xbe9/0xc00 fs/ext4/inode.c:2647
Code: e8 fc bd c3 ff e9 80 f6 ff ff 44 89 e9 80 e1 07 38 c1 0f 8c a6 fe ff ff 4c 89 ef e8 e1 bd c3 ff e9 99 fe ff ff e8 87 c9 89 ff <0f> 0b e8 80 c9 89 ff 0f 0b e8 79 1e b8 02 66 0f 1f 84 00 00 00 00
RSP: 0018:ffffc90000e2e9c0 EFLAGS: 00010293
RAX: ffffffff81e321f9 RBX: 0000000000000000 RCX: ffff88810c12cf00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000e2eb90 R08: ffffffff81e31e71 R09: fffff940008d68b1
R10: fffff940008d68b1 R11: 0000000000000000 R12: ffffea00046b4580
R13: ffffc90000e2ea80 R14: 000000000000011e R15: dffffc0000000000
FS:  00007fcfd0717700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcfd07d5520 CR3: 000000010a142000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (254):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/22 22:56 android12-5.10-lts 0347b1658399 214351e1 .config console log report syz C ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/19 19:45 android12-5.10-lts 414e6c8e941c 33fc6ed6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/19 08:37 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/19 02:08 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/18 22:55 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/18 09:14 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/17 21:49 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/17 15:50 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/17 03:29 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/16 19:40 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/15 15:50 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/15 06:52 android12-5.10-lts 414e6c8e941c b17b2923 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/14 22:45 android12-5.10-lts 414e6c8e941c b17b2923 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/14 10:42 android12-5.10-lts 414e6c8e941c b17b2923 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/14 00:52 android12-5.10-lts 414e6c8e941c b17b2923 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/11 15:42 android12-5.10-lts 414e6c8e941c af01ee7d .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/11 09:40 android12-5.10-lts 414e6c8e941c e22c3da3 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/11 05:23 android12-5.10-lts 414e6c8e941c e22c3da3 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/10 20:28 android12-5.10-lts 414e6c8e941c e22c3da3 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/09 09:30 android12-5.10-lts 414e6c8e941c e22c3da3 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/09 03:40 android12-5.10-lts 414e6c8e941c e22c3da3 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/06 17:35 android12-5.10-lts 414e6c8e941c 97582466 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/05 17:18 android12-5.10-lts 414e6c8e941c 0127c10f .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/04 05:25 android12-5.10-lts 414e6c8e941c 79a2a8fc .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/03 21:39 android12-5.10-lts 414e6c8e941c 79a2a8fc .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/03 15:50 android12-5.10-lts 414e6c8e941c 79a2a8fc .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/03 07:03 android12-5.10-lts 414e6c8e941c 79a2a8fc .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/04/03 03:16 android12-5.10-lts 414e6c8e941c 79a2a8fc .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/30 04:15 android12-5.10-lts 414e6c8e941c 6bdac766 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/29 21:30 android12-5.10-lts 414e6c8e941c 6bdac766 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/29 09:39 android12-5.10-lts ab2d1d40a128 6bdac766 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/28 06:34 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/28 04:56 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/28 00:31 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/27 19:47 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/26 20:04 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/26 13:53 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/26 09:32 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/23 15:43 android12-5.10-lts 9a559b886861 5ff41e94 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/22 22:11 android12-5.10-lts 9a559b886861 d88ef0c5 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/21 12:27 android12-5.10-lts 8646e926968e e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/20 06:14 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/20 04:50 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/20 00:45 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2022/03/19 08:59 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
2021/11/01 12:52 android12-5.10-lts 4944ec82ebb9 098b5d53 .config console log report info ci2-android-5-10 kernel BUG in mpage_prepare_extent_to_map
* Struck through repros no longer work on HEAD.