syzbot


KASAN: out-of-bounds Write in end_buffer_read_sync

Status: upstream: reported C repro on 2023/05/29 19:57
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+a4e609731ea45e9086d3@syzkaller.appspotmail.com
First crash: 610d, last: 7d22h
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/09/22 linux-6.1.y (ToT) e526b12bf916 C [report] INFO: rcu detected stall in corrupted
2024/05/07 upstream (ToT) dccb07f2914c C [report] KASAN: out-of-bounds Write in end_buffer_read_sync
2024/09/22 upstream (ToT) 88264981f208 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 4227 2h41m 1009d 0/28 upstream: reported C repro on 2022/04/25 03:07
linux-5.15 KASAN: out-of-bounds Write in end_buffer_read_sync origin:lts-only C done 64 6d02h 665d 0/3 upstream: reported C repro on 2023/04/04 06:42
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/10/19 13:32 8h58m fix candidate upstream OK (1) job log
2024/10/15 01:42 0m bisect fix linux-6.1.y error job log
2024/03/20 02:16 3h00m bisect fix linux-6.1.y OK (0) job log log
2024/01/04 10:55 1h56m bisect fix linux-6.1.y OK (0) job log log
2023/12/04 05:39 1h49m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
==================================================================
BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:102 [inline]
BUG: KASAN: out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline]
BUG: KASAN: out-of-bounds in put_bh include/linux/buffer_head.h:320 [inline]
BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xbd/0xd0 fs/buffer.c:160
Write of size 4 at addr ffffc90004cdf820 by task ksoftirqd/0/15

CPU: 0 PID: 15 Comm: ksoftirqd/0 Tainted: G        W          6.1.122-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:316 [inline]
 print_report+0x15f/0x4f0 mm/kasan/report.c:427
 kasan_report+0x136/0x160 mm/kasan/report.c:531
 kasan_check_range+0x27f/0x290 mm/kasan/generic.c:189
 instrument_atomic_read_write include/linux/instrumented.h:102 [inline]
 atomic_dec include/linux/atomic/atomic-instrumented.h:257 [inline]
 put_bh include/linux/buffer_head.h:320 [inline]
 end_buffer_read_sync+0xbd/0xd0 fs/buffer.c:160
 end_bio_bh_io_sync+0xb3/0x110 fs/buffer.c:2655
 req_bio_endio block/blk-mq.c:780 [inline]
 blk_update_request+0x53b/0x1010 block/blk-mq.c:925
 blk_mq_end_request+0x3a/0x70 block/blk-mq.c:1050
 blk_complete_reqs block/blk-mq.c:1130 [inline]
 blk_done_softirq+0xf8/0x140 block/blk-mq.c:1135
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571
 run_ksoftirqd+0xc6/0x120 kernel/softirq.c:938
 smpboot_thread_fn+0x52c/0xa30 kernel/smpboot.c:164
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

The buggy address belongs to the virtual mapping at
 [ffffc90004cd8000, ffffc90004ce1000) created by:
 copy_process+0x637/0x4060 kernel/fork.c:2096

The buggy address belongs to the physical page:
page:ffffea000192c200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x64b08
memcg:ffff888063e94e82
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888063e94e82
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 4544, tgid 4544 (syz-executor409), ts 94418743682, free_ts 87145754878
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2532
 prep_new_page mm/page_alloc.c:2539 [inline]
 get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4328
 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5605
 vm_area_alloc_pages mm/vmalloc.c:2992 [inline]
 __vmalloc_area_node mm/vmalloc.c:3061 [inline]
 __vmalloc_node_range+0x9b3/0x14b0 mm/vmalloc.c:3233
 alloc_thread_stack_node kernel/fork.c:312 [inline]
 dup_task_struct+0x3e5/0x6d0 kernel/fork.c:989
 copy_process+0x637/0x4060 kernel/fork.c:2096
 kernel_clone+0x222/0x920 kernel/fork.c:2681
 __do_sys_clone3 kernel/fork.c:2980 [inline]
 __se_sys_clone3+0x373/0x410 kernel/fork.c:2964
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1459 [inline]
 free_pcp_prepare mm/page_alloc.c:1509 [inline]
 free_unref_page_prepare+0x12a6/0x15b0 mm/page_alloc.c:3384
 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3525
 release_pages+0x24c4/0x27a0 mm/swap.c:1035
 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline]
 tlb_flush_mmu_free mm/mmu_gather.c:254 [inline]
 tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:261
 tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361
 exit_mmap+0x3b3/0x980 mm/mmap.c:3250
 __mmput+0x115/0x3c0 kernel/fork.c:1200
 exit_mm+0x226/0x300 kernel/exit.c:565
 do_exit+0x9f1/0x26a0 kernel/exit.c:858
 do_group_exit+0x202/0x2b0 kernel/exit.c:1021
 __do_sys_exit_group kernel/exit.c:1032 [inline]
 __se_sys_exit_group kernel/exit.c:1030 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1030
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

Memory state around the buggy address:
 ffffc90004cdf700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffc90004cdf780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90004cdf800: f1 f1 f1 f1 00 00 00 00 00 00 00 f2 f2 f2 f2 f2
                                  ^
 ffffc90004cdf880: 00 f2 f2 f2 01 f3 f3 f3 00 00 00 00 00 00 00 00
 ffffc90004cdf900: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
==================================================================

Crashes (56):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/31 00:32 linux-6.1.y 563edd786f0a d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] [mounted in repro #3] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/29 03:02 linux-6.1.y 563edd786f0a d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/28 23:10 linux-6.1.y 563edd786f0a d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/28 09:31 linux-6.1.y 563edd786f0a d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/05/06 21:44 linux-6.1.y 909ba1f1b414 d884b519 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/28 21:23 linux-6.1.y 563edd786f0a d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/28 18:55 linux-6.1.y 563edd786f0a d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/28 11:21 linux-6.1.y 563edd786f0a d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2023/05/29 19:57 linux-6.1.y a343b0dd87b4 cf184559 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2023/08/12 06:29 linux-6.1.y 1321ab403b38 39990d51 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2025/01/21 00:54 linux-6.1.y f4f677285b38 6e87cfa2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2025/01/13 23:54 linux-6.1.y c63962be84ef 249ceea9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2025/01/13 18:30 linux-6.1.y c63962be84ef 249ceea9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/27 12:57 linux-6.1.y 29f02ec58a94 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/24 10:08 linux-6.1.y 29f02ec58a94 444551c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/17 08:02 linux-6.1.y 52f863f820fd f93b2b55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/11/30 00:47 linux-6.1.y e4d90d63d385 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/11/27 23:22 linux-6.1.y e4d90d63d385 5df23865 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/11/22 14:35 linux-6.1.y b67dc5c9ade9 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/10/24 17:40 linux-6.1.y 7ec6f9fa3d97 0d144d1a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/10/16 04:49 linux-6.1.y aa4cd140bba5 bde2d81c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/09/02 21:28 linux-6.1.y 311d8503ef9f 8045124c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/08/22 06:17 linux-6.1.y ee5e09825b81 ca02180f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/08/21 15:49 linux-6.1.y ee5e09825b81 db5852f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/08/12 13:11 linux-6.1.y 36790ef5e00b 842184b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/08/10 12:27 linux-6.1.y 48d525b0e463 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/07/17 07:20 linux-6.1.y cac15753b8ce 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/07/16 22:09 linux-6.1.y cac15753b8ce b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/07/16 21:47 linux-6.1.y cac15753b8ce b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/07/16 16:57 linux-6.1.y cac15753b8ce b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/07/11 14:35 linux-6.1.y 266ee8e06d5b c699c2eb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/07/08 19:40 linux-6.1.y 7753af06eebf cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/07/07 06:40 linux-6.1.y 7753af06eebf 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/29 18:57 linux-6.1.y 99e6a620de00 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/20 20:27 linux-6.1.y eb44d83053d6 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/09 12:32 linux-6.1.y 88690811da69 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/06 13:48 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/06 13:40 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/06 09:18 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/06 09:10 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/06 09:06 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/04 18:51 linux-6.1.y 88690811da69 11f2afa5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/01 06:18 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/01 05:07 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/05/10 22:38 linux-6.1.y 909ba1f1b414 f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/05/09 00:49 linux-6.1.y 909ba1f1b414 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/05/08 00:45 linux-6.1.y 909ba1f1b414 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/04/03 11:38 linux-6.1.y e5cd595e23c1 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/03/29 13:03 linux-6.1.y e5cd595e23c1 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2023/11/02 12:28 linux-6.1.y 4a61839152cc 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/02 18:10 linux-6.1.y e4d90d63d385 b499ea68 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/09/09 21:55 linux-6.1.y 5ca5b389fddf 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/06/01 21:12 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/01/07 23:56 linux-6.1.y 38fb82ecd144 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 KASAN: out-of-bounds Write in end_buffer_read_sync
2024/12/31 02:16 linux-6.1.y 563edd786f0a d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan KASAN: stack-out-of-bounds Write in end_buffer_read_sync
* Struck through repros no longer work on HEAD.