syzbot


KCSAN: data-race in page_cache_ra_unbounded / proc_task_name

Status: auto-closed as invalid on 2021/01/11 19:20
Subsystems: fs mm
[Documentation on labels]
First crash: 1206d, last: 1206d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in page_cache_ra_unbounded / proc_task_name (2) fs mm 1 1138d 1138d 0/26 auto-closed as invalid on 2021/03/20 18:25

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

write to 0xffff888100be4064 of 4 bytes by task 1 on cpu 1:
 memalloc_nofs_restore include/linux/sched/mm.h:242 [inline]
 page_cache_ra_unbounded+0x484/0x4c0 mm/readahead.c:239
 ondemand_readahead+0x560/0x780 mm/readahead.c:267
 page_cache_sync_ra+0x1ab/0x1c0 mm/readahead.c:577
 page_cache_sync_readahead include/linux/pagemap.h:839 [inline]
 generic_file_buffered_read+0x388/0x23a0 mm/filemap.c:2235
 generic_file_read_iter+0x80/0x3d0 mm/filemap.c:2553
 ext4_file_read_iter+0x2d0/0x420 fs/ext4/file.c:74
 __kernel_read+0x307/0x560 fs/read_write.c:454
 integrity_kernel_read+0x4c/0x70 security/integrity/iint.c:191
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:484 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:515 [inline]
 ima_calc_file_hash+0x9c7/0x1430 security/integrity/ima/ima_crypto.c:580
 ima_collect_measurement+0x168/0x300 security/integrity/ima/ima_api.c:250
 process_measurement+0x9f1/0x1050 security/integrity/ima/ima_main.c:330
 ima_file_check+0x72/0xa0 security/integrity/ima/ima_main.c:498
 do_open fs/namei.c:3254 [inline]
 path_openat+0x1887/0x20a0 fs/namei.c:3369
 do_filp_open+0xbd/0x1d0 fs/namei.c:3396
 do_sys_openat2+0xa3/0x240 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1188
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888100be4064 of 4 bytes by task 4888 on cpu 0:
 proc_task_name+0x3b/0x1e0 fs/proc/array.c:105
 comm_show+0x45/0xd0 fs/proc/base.c:1697
 seq_read_iter+0x2ef/0x8e0 fs/seq_file.c:228
 seq_read+0x221/0x260 fs/seq_file.c:159
 vfs_read+0x154/0x5c0 fs/read_write.c:494
 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

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/07 19:16 upstream 0477e9288185 f80ce148 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.