syzbot


KCSAN: data-race in mm_update_next_owner / page_cache_ra_unbounded

Status: auto-closed as invalid on 2021/03/10 01:01
Reported-by: syzbot+60f8baa47292518d18d8@syzkaller.appspotmail.com
First crash: 649d, last: 552d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mm_update_next_owner / page_cache_ra_unbounded (2) 56 432d 441d 0/23 auto-closed as invalid on 2021/07/07 23:30

Sample crash report:
==================================================================
BUG: KCSAN: data-race in mm_update_next_owner / page_cache_ra_unbounded

write to 0xffff8880375c202c of 4 bytes by task 1816 on cpu 0:
 memalloc_nofs_restore include/linux/sched/mm.h:258 [inline]
 page_cache_ra_unbounded+0x48c/0x4c0 mm/readahead.c:239
 do_page_cache_ra mm/readahead.c:267 [inline]
 force_page_cache_ra+0x226/0x260 mm/readahead.c:298
 page_cache_sync_ra+0x178/0x1a0 mm/readahead.c:572
 page_cache_sync_readahead include/linux/pagemap.h:839 [inline]
 generic_file_buffered_read_get_pages+0x234/0xaf0 mm/filemap.c:2361
 generic_file_buffered_read+0x26e/0x9c0 mm/filemap.c:2481
 generic_file_read_iter+0x82/0x3e0 mm/filemap.c:2633
 blkdev_read_iter+0xb3/0xc0 fs/block_dev.c:1714
 call_read_iter include/linux/fs.h:1895 [inline]
 new_sync_read fs/read_write.c:415 [inline]
 vfs_read+0x565/0x5d0 fs/read_write.c:496
 ksys_read+0xce/0x180 fs/read_write.c:634
 __do_sys_read fs/read_write.c:644 [inline]
 __se_sys_read fs/read_write.c:642 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:642
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880375c202c of 4 bytes by task 1827 on cpu 1:
 mm_update_next_owner+0x1d9/0x4e0 kernel/exit.c:388
 exit_mm+0x337/0x430 kernel/exit.c:500
 do_exit+0x41f/0x1690 kernel/exit.c:812
 do_group_exit+0x17d/0x180 kernel/exit.c:922
 __do_sys_exit_group+0xb/0x10 kernel/exit.c:933
 __se_sys_exit_group+0x5/0x10 kernel/exit.c:931
 __x64_sys_exit_group+0x16/0x20 kernel/exit.c:931
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1827 Comm: syz-executor.3 Not tainted 5.11.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (21):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/02/03 01:00 upstream 3aaf0a27ffc2 624dad51 .config log report info KCSAN: data-race in mm_update_next_owner / page_cache_ra_unbounded
ci2-upstream-kcsan-gce 2021/01/27 17:34 upstream 2ab38c17aac1 a0ebf917 .config log report info KCSAN: data-race in mm_update_next_owner / page_cache_ra_unbounded
ci2-upstream-kcsan-gce 2021/01/20 20:21 upstream 45dfb8a5659a d4f4eca5 .config log report info KCSAN: data-race in mm_update_next_owner / page_cache_ra_unbounded
ci2-upstream-kcsan-gce 2021/01/19 16:04 upstream 1e2a199f6ccd 63631df1 .config log report info KCSAN: data-race in mm_update_next_owner / page_cache_ra_unbounded
ci2-upstream-kcsan-gce 2021/01/13 04:56 upstream e609571b5ffa 0cdd6185 .config log report info
ci2-upstream-kcsan-gce 2021/01/09 15:20 upstream 996e435fd401 a6c52263 .config log report info
ci2-upstream-kcsan-gce 2021/01/02 13:38 upstream eda809aef534 79264ae3 .config log report info
ci2-upstream-kcsan-gce 2021/01/01 10:59 upstream f6e1ea196492 79264ae3 .config log report info
ci2-upstream-kcsan-gce 2020/12/30 08:36 upstream 139711f033f6 0fa352f2 .config log report info
ci2-upstream-kcsan-gce 2020/12/28 00:08 upstream f838f8d2b694 2242f77f .config log report info
ci2-upstream-kcsan-gce 2020/12/22 14:57 upstream 8653b778e454 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/20 11:27 upstream 467f8165a2b0 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/19 18:31 upstream 3644e2d2dda7 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/15 05:30 upstream fab0fca1da5c 97183ed7 .config log report info
ci2-upstream-kcsan-gce 2020/12/13 12:21 upstream 6bff9bb8a292 bca53db9 .config log report info
ci2-upstream-kcsan-gce 2020/12/12 04:40 upstream 7f376f1917d7 bca53db9 .config log report info
ci2-upstream-kcsan-gce 2020/12/05 03:38 upstream e87297fa080a 20366b87 .config log report info
ci2-upstream-kcsan-gce 2020/11/14 09:43 upstream 9e6a39eae450 1bf9a662 .config log report info
ci2-upstream-kcsan-gce 2020/11/03 21:33 upstream b7cbaf59f62f cba33199 .config log report info
ci2-upstream-kcsan-gce 2020/10/31 20:36 upstream 5fc6b075e165 8bc4594f .config log report info
ci2-upstream-kcsan-gce 2020/10/28 11:16 upstream ed8780e3f2ec 96e03c1c .config log report info