syzbot


KASAN: out-of-bounds Write in end_buffer_read_sync

Status: upstream: reported C repro on 2023/04/04 06:42
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+81c6aea085c7a61a49bb@syzkaller.appspotmail.com
First crash: 558d, last: 20d
Bug presence (2)
Date Name Commit Repro Result
2023/05/11 linux-5.15.y (ToT) b0ece631f84a C [report] KASAN: out-of-bounds Write in end_buffer_read_sync
2023/05/11 upstream (ToT) 105131df9c3b C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: out-of-bounds Write in end_buffer_read_sync ntfs3 C done 3664 17h14m 903d 0/28 upstream: reported C repro on 2022/04/25 03:07
linux-6.1 KASAN: out-of-bounds Write in end_buffer_read_sync origin:upstream missing-backport C 35 34d 503d 0/3 upstream: reported C repro on 2023/05/29 19:57
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2024/09/26 08:38 1m fix candidate upstream error job log
2024/06/11 04:18 4m fix candidate upstream error job log
2024/04/13 04:39 1m fix candidate upstream error job log
2024/03/10 09:28 1m fix candidate upstream error job log
2024/01/29 12:02 1m fix candidate upstream error job log
2023/12/17 05:56 4m fix candidate upstream error job log
2023/10/25 04:14 1m fix candidate upstream error job log
2023/09/05 09:09 4m fix candidate upstream error job log

Sample crash report:
==================================================================
BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
BUG: KASAN: out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:244 [inline]
BUG: KASAN: out-of-bounds in put_bh include/linux/buffer_head.h:319 [inline]
BUG: KASAN: out-of-bounds in end_buffer_read_sync+0x3c/0x94 fs/buffer.c:160
Write of size 4 at addr ffff80001d7475c0 by task ksoftirqd/0/14

CPU: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
Call trace:
 dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0x174/0x1e4 mm/kasan/report.c:451
 kasan_check_range+0x274/0x2b4 mm/kasan/generic.c:189
 __kasan_check_write+0x44/0x54 mm/kasan/shadow.c:37
 instrument_atomic_read_write include/linux/instrumented.h:101 [inline]
 atomic_dec include/linux/atomic/atomic-instrumented.h:244 [inline]
 put_bh include/linux/buffer_head.h:319 [inline]
 end_buffer_read_sync+0x3c/0x94 fs/buffer.c:160
 end_bio_bh_io_sync+0xb0/0x1b4 fs/buffer.c:3007
 bio_endio+0x780/0x7c4 block/bio.c:1475
 req_bio_endio block/blk-core.c:261 [inline]
 blk_update_request+0x79c/0x1304 block/blk-core.c:1441
 blk_mq_end_request+0x54/0x88 block/blk-mq.c:575
 lo_complete_rq+0x140/0x258 drivers/block/loop.c:529
 blk_complete_reqs block/blk-mq.c:587 [inline]
 blk_done_softirq+0x11c/0x168 block/blk-mq.c:592
 __do_softirq+0x344/0xdb0 kernel/softirq.c:558
 run_ksoftirqd+0x68/0x258 kernel/softirq.c:921
 smpboot_thread_fn+0x4b0/0x920 kernel/smpboot.c:164
 kthread+0x37c/0x45c kernel/kthread.c:319
 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870


Memory state around the buggy address:
 ffff80001d747480: 00 00 00 00 f1 f1 f1 f1 00 f3 f3 f3 00 00 00 00
 ffff80001d747500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff80001d747580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                              ^
 ffff80001d747600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff80001d747680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (44):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/28 08:27 linux-5.15.y 9465fef4ae35 120789fd .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/03/06 05:26 linux-5.15.y 80efc6265290 f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/03/05 12:09 linux-5.15.y 80efc6265290 5fc53669 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/04/30 12:16 linux-5.15.y f48aeeaaa64c 62df2017 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/07/19 10:44 linux-5.15.y d54cfc420586 022df2bb .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2023/06/12 00:04 linux-5.15.y 7349e40704a0 49519f06 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/03/08 23:42 linux-5.15.y 574362648507 8e75c913 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2023/12/18 15:18 linux-5.15.y d0fc081c6241 3222d10c .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/05/17 21:27 linux-5.15.y 83655231580b a12e99e7 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/04/04 23:09 linux-5.15.y 9465fef4ae35 0ee3535e .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/02/29 21:48 linux-5.15.y 458ce51d0356 352ab904 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/05/21 03:01 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/19 07:15 linux-5.15.y 4878aadf2d15 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/05/11 11:51 linux-5.15.y 284087d4f7d5 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/04/05 02:13 linux-5.15.y 9465fef4ae35 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/03/16 16:21 linux-5.15.y b95c01af2113 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2023/12/24 21:24 linux-5.15.y d93fa2c78854 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/05/06 12:57 linux-5.15.y 284087d4f7d5 d884b519 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/01/17 10:47 linux-5.15.y ddcaf4999061 c9a1c95b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/11/08 14:11 linux-5.15.y 12952a23a5da b93f63e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/07/13 14:20 linux-5.15.y d54cfc420586 86081196 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2023/06/10 02:34 linux-5.15.y 7349e40704a0 9018a337 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2023/07/12 14:04 linux-5.15.y d54cfc420586 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/06/07 23:53 linux-5.15.y d7af3e5ba454 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/05/26 06:41 linux-5.15.y 1fe619a7d252 b40ef614 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/05/19 19:25 linux-5.15.y 9d6bde853685 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/05/17 22:12 linux-5.15.y 9d6bde853685 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/04/28 22:40 linux-5.15.y f48aeeaaa64c 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/04/22 09:19 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/04/12 01:58 linux-5.15.y d86dfc4d95cd 49faf98d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2023/04/04 06:42 linux-5.15.y c957cbb87315 41147e3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/09/23 08:04 linux-5.15.y 3a5928702e71 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2024/08/01 00:42 linux-5.15.y 7e89efd3ae1c 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2024/05/09 09:57 linux-5.15.y 284087d4f7d5 05079661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2024/05/06 11:20 linux-5.15.y 284087d4f7d5 d884b519 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2024/04/21 07:22 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2024/04/04 04:29 linux-5.15.y 9465fef4ae35 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2024/02/27 20:37 linux-5.15.y 458ce51d0356 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2024/02/03 03:08 linux-5.15.y 6139f2a02fe0 60bf9982 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2023/08/15 17:14 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2023/08/14 18:00 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2023/07/25 12:10 linux-5.15.y 5c6a716301d9 3b91ad04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2023/05/11 11:45 linux-5.15.y 8a7f2a5c5aa1 0fbd49f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
2023/05/03 22:43 linux-5.15.y 8a7f2a5c5aa1 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
* Struck through repros no longer work on HEAD.