syzbot


KASAN: use-after-free Read in ext4_find_extent

Status: upstream: reported C repro on 2022/12/26 07:59
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+212b805f83aa4e82c10a@syzkaller.appspotmail.com
First crash: 1005d, last: 13d
Cause bisection: failed (error log, bisect log)
  
Fix bisection the fix commit could be any of (bisect log):
  003c389455eb Merge 5.10.160 into android12-5.10-lts
  bf760358eac3 Merge branch 'android12-5.10' into android12-5.10-lts
  
Similar bugs (11)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 KASAN: use-after-free Read in ext4_find_extent 19 C 2 105d 203d 0/2 upstream: reported C repro on 2025/02/13 21:05
android-6-1 KASAN: use-after-free Read in ext4_find_extent missing-backport 19 C error done 3 313d 810d 0/2 auto-obsoleted due to no activity on 2025/02/04 04:57
linux-5.15 KASAN: use-after-free Read in ext4_find_extent origin:lts-only 19 C inconclusive 7 32d 778d 0/3 upstream: reported C repro on 2023/07/19 14:49
upstream KASAN: use-after-free Read in ext4_find_extent ext4 19 2 1416d 1477d 0/29 auto-closed as invalid on 2022/02/17 05:19
android-6-1 KASAN: use-after-free Read in ext4_find_extent (2) origin:lts 19 C 8 1d21h 97d 0/2 upstream: reported C repro on 2025/05/31 08:45
linux-6.1 KASAN: use-after-free Read in ext4_find_extent origin:upstream missing-backport 19 C done 60 6d18h 717d 0/3 upstream: reported C repro on 2023/09/19 00:11
android-5-15 KASAN: use-after-free Read in ext4_find_extent ext4 origin:lts 19 C error 92 6h42m 984d 0/2 upstream: reported C repro on 2022/12/26 07:59
upstream KASAN: use-after-free Read in ext4_find_extent (2) ext4 19 C error 2 854d 979d 22/29 fixed on 2023/06/08 14:41
upstream KASAN: use-after-free Read in ext4_find_extent (4) ext4 19 C done 106 13h57m 248d 0/29 upstream: reported C repro on 2024/12/30 20:06
upstream KASAN: use-after-free Read in ext4_find_extent (3) prio:low ext4 19 C error done 31 619d 800d 25/29 fixed on 2024/01/30 23:26
android-54 KASAN: slab-out-of-bounds Read in ext4_find_extent ext4 17 C 1 798d 984d 0/2 auto-obsoleted due to no activity on 2023/10/08 03:20
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/06/19 01:39 6m retest repro android13-5.10-lts report log
2025/06/19 01:39 5m retest repro android13-5.10-lts report log
2025/06/19 01:39 8m retest repro android13-5.10-lts report log
2025/06/19 01:39 6m retest repro android13-5.10-lts report log
2025/06/19 01:39 7m retest repro android13-5.10-lts report log
2025/05/17 22:04 6m retest repro android13-5.10-lts report log
2025/05/17 22:04 6m retest repro android13-5.10-lts report log
2025/05/17 22:04 6m retest repro android13-5.10-lts report log
2025/05/17 22:04 1h10m retest repro android13-5.10-lts report log
2025/05/17 22:04 6m retest repro android13-5.10-lts report log

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in ext4_ext_binsearch fs/ext4/extents.c:826 [inline]
BUG: KASAN: use-after-free in ext4_find_extent+0xbeb/0xe20 fs/ext4/extents.c:945
Read of size 4 at addr ffff888121a8bec4 by task kworker/u4:0/7

CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 5.10.240-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2025
Workqueue: writeback wb_workfn (flush-7:0)
Call Trace:
 __dump_stack+0x21/0x24 lib/dump_stack.c:77
 dump_stack_lvl+0x169/0x1d8 lib/dump_stack.c:118
 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:435 [inline]
 kasan_report+0xe2/0x130 mm/kasan/report.c:452
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
 ext4_ext_binsearch fs/ext4/extents.c:826 [inline]
 ext4_find_extent+0xbeb/0xe20 fs/ext4/extents.c:945
 ext4_ext_map_blocks+0x1de/0x5d40 fs/ext4/extents.c:4160
 ext4_map_blocks+0x978/0x1bc0 fs/ext4/inode.c:674
 mpage_map_one_extent fs/ext4/inode.c:2452 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2505 [inline]
 ext4_writepages+0x11d5/0x2e00 fs/ext4/inode.c:2873
 do_writepages+0x12a/0x270 mm/page-writeback.c:2380
 __writeback_single_inode+0xd5/0xa20 fs/fs-writeback.c:1470
 writeback_sb_inodes+0x860/0x1400 fs/fs-writeback.c:1733
 wb_writeback+0x3e3/0xb90 fs/fs-writeback.c:1908
 wb_do_writeback fs/fs-writeback.c:2053 [inline]
 wb_workfn+0x38f/0xe20 fs/fs-writeback.c:2094
 process_one_work+0x6e1/0xba0 kernel/workqueue.c:2301
 worker_thread+0xa6a/0x13b0 kernel/workqueue.c:2447
 kthread+0x346/0x3d0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

The buggy address belongs to the page:
page:ffffea000486a2c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x121a8b
flags: 0x4000000000000000()
raw: 4000000000000000 ffffea000486a2c8 ffffea000486a2c8 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner info is not present (never set?)

Memory state around the buggy address:
 ffff888121a8bd80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888121a8be00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888121a8be80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                           ^
 ffff888121a8bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888121a8bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
EXT4-fs error (device loop0): ext4_map_blocks:740: inode #15: block 1: comm kworker/u4:0: lblock 1 mapped to illegal pblock 1 (length 3)
EXT4-fs (loop0): Delayed block allocation failed for inode 15 at logical offset 1 with max blocks 3 with error 117
EXT4-fs (loop0): This should not happen!! Data will be lost

EXT4-fs error (device loop0): __ext4_get_inode_loc:4438: comm kworker/u4:0: Invalid inode table block 8391460049216894068 in block_group 0
EXT4-fs error (device loop0): ext4_map_blocks:740: inode #15: block 16: comm kworker/u4:0: lblock 16 mapped to illegal pblock 16 (length 1)
EXT4-fs (loop0): Delayed block allocation failed for inode 15 at logical offset 16 with max blocks 1 with error 117
EXT4-fs (loop0): This should not happen!! Data will be lost


Crashes (47):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/23 00:30 android13-5.10-lts 1154f779f3f3 bf27483f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/08/22 23:51 android13-5.10-lts 1154f779f3f3 bf27483f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/08/22 22:52 android13-5.10-lts 1154f779f3f3 bf27483f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/07/11 06:10 android13-5.10-lts 59e9a7228857 3cda49cf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/07/06 08:53 android13-5.10-lts 59e9a7228857 4f67c4ae .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/06/04 13:09 android13-5.10-lts cf6ed0f1511d e565f08d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/05/28 19:07 android13-5.10-lts cf6ed0f1511d 3d2f584d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/04/18 21:12 android13-5.10-lts ba8b8b193394 2a20f901 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/02/10 01:47 android13-5.10-lts 6686f2996d23 ef44b750 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/04/01 05:47 android12-5.10-lts 416c4356f372 f325deb0 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/03/19 01:42 android12-5.10-lts 416c4356f372 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/03/15 07:32 android13-5.10-lts fc9aa81462ee e2826670 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2022/12/21 09:05 android12-5.10-lts 003c389455eb d3e76707 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2022/12/12 16:05 android12-5.10-lts f3226d86f8ce 67be1ae7 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2022/12/04 17:23 android12-5.10-lts 25af5a11f1da e080de16 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2022/12/26 07:48 android12-5.10-lts 003c389455eb 9da18ae8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/08/11 05:02 android13-5.10-lts 1154f779f3f3 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/08/10 01:21 android13-5.10-lts 1154f779f3f3 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/08/09 04:06 android13-5.10-lts 1154f779f3f3 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/08/03 14:39 android13-5.10-lts 1154f779f3f3 7368264b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/07/27 11:55 android13-5.10-lts ad9a98ef27a4 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/07/14 10:51 android13-5.10-lts 59e9a7228857 d8fc7335 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/05/03 01:25 android13-5.10-lts ab07aeb2c93d b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/05/03 01:25 android13-5.10-lts ab07aeb2c93d b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/05/03 01:25 android13-5.10-lts ab07aeb2c93d b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/04/28 05:45 android13-5.10-lts ba8b8b193394 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/03/25 20:48 android13-5.10-lts 094fc3778d6b 875573af .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2025/02/10 01:03 android13-5.10-lts 6686f2996d23 ef44b750 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2024/11/23 21:22 android13-5.10-lts b14940b90491 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2024/10/08 01:40 android13-5.10-lts e5e5644ea27f d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2024/10/05 09:57 android13-5.10-lts e5e5644ea27f d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2024/09/02 16:32 android13-5.10-lts 1c5354a314ea 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/09/10 01:17 android13-5.10-lts a27512601c2d 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/09/09 20:25 android13-5.10-lts a27512601c2d 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/06/12 10:23 android13-5.10-lts 43c801dc3325 49519f06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/05/22 05:46 android13-5.10-lts 43c801dc3325 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/04/26 09:25 android12-5.10-lts 416c4356f372 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/04/06 18:08 android12-5.10-lts 416c4356f372 08707520 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/04/04 06:55 android12-5.10-lts 416c4356f372 41147e3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/03/28 08:43 android12-5.10-lts 416c4356f372 47f3aaf1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/03/27 18:47 android12-5.10-lts 416c4356f372 f8f96aa9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/03/16 12:53 android12-5.10-lts 416c4356f372 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/03/14 03:54 android12-5.10-lts 416c4356f372 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/03/11 04:18 android12-5.10-lts 416c4356f372 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/02/24 17:51 android12-5.10-lts 416c4356f372 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2022/12/14 02:10 android12-5.10-lts 202ee063496e f6511626 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in ext4_find_extent
2023/03/03 01:51 android12-5.10-lts 416c4356f372 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in ext4_find_extent
* Struck through repros no longer work on HEAD.