syzbot


KCSAN: data-race in page_cache_ra_unbounded / task_dump_owner (2)

Status: auto-closed as invalid on 2021/07/01 15:19
Subsystems: fs mm
[Documentation on labels]
First crash: 1081d, last: 1063d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in page_cache_ra_unbounded / task_dump_owner fs mm 1 1131d 1131d 0/26 auto-closed as invalid on 2021/04/24 22:15

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

write to 0xffff88812e4f902c of 4 bytes by task 12108 on cpu 0:
 memalloc_nofs_restore include/linux/sched/mm.h:263 [inline]
 page_cache_ra_unbounded+0x3e3/0x410 mm/readahead.c:239
 ondemand_readahead+0x579/0x7b0 mm/readahead.c:267
 page_cache_sync_ra+0xaf/0xe0 mm/readahead.c:578
 page_cache_sync_readahead include/linux/pagemap.h:879 [inline]
 filemap_get_pages mm/filemap.c:2467 [inline]
 filemap_read+0x388/0x1230 mm/filemap.c:2550
 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2701
 ext4_file_read_iter+0x1db/0x290 fs/ext4/file.c:73
 call_read_iter include/linux/fs.h:2108 [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+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812e4f902c of 4 bytes by task 1027 on cpu 1:
 task_dump_owner+0x2b/0x1d0 fs/proc/base.c:1822
 pid_update_inode fs/proc/base.c:1964 [inline]
 proc_pident_instantiate+0x138/0x190 fs/proc/base.c:2617
 proc_pident_lookup fs/proc/base.c:2641 [inline]
 proc_tgid_base_lookup+0x10c/0x180 fs/proc/base.c:3296
 lookup_open fs/namei.c:3193 [inline]
 open_last_lookups fs/namei.c:3285 [inline]
 path_openat+0xb5a/0x20b0 fs/namei.c:3491
 do_filp_open+0xd9/0x1f0 fs/namei.c:3521
 do_sys_openat2+0xa3/0x250 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_open fs/open.c:1211 [inline]
 __se_sys_open fs/open.c:1207 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1207
 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1027 Comm: systemd-journal Not tainted 5.13.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/27 15:17 upstream d7c5303fbc8a 858ea628 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in page_cache_ra_unbounded / task_dump_owner
2021/05/24 02:34 upstream 6ebb6814a1ef 3c7fef33 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in page_cache_ra_unbounded / task_dump_owner
2021/05/09 09:31 upstream b741596468b0 bc5434be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in page_cache_ra_unbounded / task_dump_owner
* Struck through repros no longer work on HEAD.