syzbot


KCSAN: data-race in do_sync_mmap_readahead / read_pages

Status: auto-obsoleted due to no activity on 2023/10/23 18:22
Subsystems: mm fs
[Documentation on labels]
First crash: 573d, last: 498d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_sync_mmap_readahead / read_pages (3) mm 1 33d 33d 0/28 moderation: reported on 2024/12/26 20:58
upstream KCSAN: data-race in do_sync_mmap_readahead / read_pages (2) mm 1 436d 413d 0/28 auto-obsoleted due to no activity on 2023/12/26 00:01

Sample crash report:
loop0: detected capacity change from 0 to 2048
EXT4-fs error (device loop0): ext4_orphan_get:1420: comm syz-executor.0: bad orphan inode 8192
==================================================================
BUG: KCSAN: data-race in do_sync_mmap_readahead / read_pages

write to 0xffff88815e9bf884 of 4 bytes by task 17051 on cpu 0:
 do_sync_mmap_readahead+0x3f5/0x450 mm/filemap.c:3197
 filemap_fault+0x3e6/0xbf0 mm/filemap.c:3291
 __do_fault mm/memory.c:4204 [inline]
 do_read_fault mm/memory.c:4568 [inline]
 do_fault mm/memory.c:4705 [inline]
 do_pte_missing mm/memory.c:3669 [inline]
 handle_pte_fault mm/memory.c:4978 [inline]
 __handle_mm_fault mm/memory.c:5119 [inline]
 handle_mm_fault+0x15e2/0x2cc0 mm/memory.c:5284
 faultin_page mm/gup.c:956 [inline]
 __get_user_pages+0x402/0xe40 mm/gup.c:1239
 populate_vma_page_range mm/gup.c:1666 [inline]
 __mm_populate+0x216/0x330 mm/gup.c:1775
 mm_populate include/linux/mm.h:3305 [inline]
 vm_mmap_pgoff+0x1a7/0x240 mm/util.c:551
 ksys_mmap_pgoff+0x2b8/0x330 mm/mmap.c:1400
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88815e9bf884 of 4 bytes by task 17048 on cpu 1:
 read_pages+0x259/0x530 mm/readahead.c:171
 page_cache_ra_unbounded+0x2aa/0x2e0 mm/readahead.c:269
 do_page_cache_ra mm/readahead.c:299 [inline]
 page_cache_ra_order mm/readahead.c:546 [inline]
 ondemand_readahead+0x524/0x690 mm/readahead.c:668
 page_cache_async_ra+0x94/0xa0 mm/readahead.c:717
 do_async_mmap_readahead mm/filemap.c:3227 [inline]
 filemap_fault+0x3a0/0xbf0 mm/filemap.c:3281
 __do_fault mm/memory.c:4204 [inline]
 do_read_fault mm/memory.c:4568 [inline]
 do_fault mm/memory.c:4705 [inline]
 do_pte_missing mm/memory.c:3669 [inline]
 handle_pte_fault mm/memory.c:4978 [inline]
 __handle_mm_fault mm/memory.c:5119 [inline]
 handle_mm_fault+0x15e2/0x2cc0 mm/memory.c:5284
 faultin_page mm/gup.c:956 [inline]
 __get_user_pages+0x402/0xe40 mm/gup.c:1239
 populate_vma_page_range mm/gup.c:1666 [inline]
 __mm_populate+0x216/0x330 mm/gup.c:1775
 mm_populate include/linux/mm.h:3305 [inline]
 vm_mmap_pgoff+0x1a7/0x240 mm/util.c:551
 ksys_mmap_pgoff+0x2b8/0x330 mm/mmap.c:1400
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000015 -> 0x00000008

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 17048 Comm: syz-executor.0 Not tainted 6.6.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
==================================================================

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/18 18:05 upstream ce9ecca0238b 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/09/16 19:07 upstream 57d88e8a5974 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/08/23 09:20 upstream 89bf6209cad6 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/08/05 05:17 upstream e6fda526d9db cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/07/30 16:26 upstream d31e3792919e 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/07/28 03:20 upstream 57012c57536f 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/07/24 18:26 upstream 6eaae1980760 b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/07/24 00:29 upstream c2782531397f 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/07/22 06:15 upstream d192f5382581 abdf9bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/07/08 12:18 upstream 8689f4f2ea56 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/07/07 23:55 upstream 5133c9e51de4 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
2023/07/05 19:15 upstream d528014517f2 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_sync_mmap_readahead / read_pages
* Struck through repros no longer work on HEAD.