syzbot


KCSAN: data-race in cgroup_procs_write_start / handle_mm_fault (4)

Status: auto-closed as invalid on 2021/04/25 00:05
Subsystems: cgroups
[Documentation on labels]
First crash: 1132d, last: 1132d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in cgroup_procs_write_start / handle_mm_fault (2) cgroups 2 1244d 1235d 0/26 auto-closed as invalid on 2021/01/03 02:26
upstream KCSAN: data-race in cgroup_procs_write_start / handle_mm_fault (5) cgroups 1 1096d 1095d 0/26 auto-closed as invalid on 2021/05/30 07:22
upstream KCSAN: data-race in cgroup_procs_write_start / handle_mm_fault cgroups 1 1348d 1348d 0/26 auto-closed as invalid on 2020/09/20 08:31
upstream KCSAN: data-race in cgroup_procs_write_start / handle_mm_fault (3) cgroups 1 1178d 1178d 0/26 auto-closed as invalid on 2021/03/09 10:11

Sample crash report:
==================================================================
BUG: KCSAN: data-race in cgroup_procs_write_start / handle_mm_fault

write to 0xffff88810aa71510 of 2 bytes by task 16389 on cpu 0:
 mem_cgroup_enter_user_fault include/linux/memcontrol.h:847 [inline]
 handle_mm_fault+0x1cd/0x1840 mm/memory.c:4546
 do_user_addr_fault+0x60c/0xc00 arch/x86/mm/fault.c:1390
 handle_page_fault arch/x86/mm/fault.c:1475 [inline]
 exc_page_fault+0x94/0x2a0 arch/x86/mm/fault.c:1531
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:577

read to 0xffff88810aa71510 of 2 bytes by task 1 on cpu 1:
 cgroup_procs_write_start+0x13c/0x270 kernel/cgroup/cgroup.c:2792
 __cgroup1_procs_write+0x5d/0x220 kernel/cgroup/cgroup-v1.c:500
 cgroup1_procs_write+0x26/0x30 kernel/cgroup/cgroup-v1.c:532
 cgroup_file_write+0x173/0x2f0 kernel/cgroup/cgroup.c:3698
 kernfs_fop_write_iter+0x1d3/0x2d0 fs/kernfs/file.c:296
 call_write_iter include/linux/fs.h:1977 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x6f9/0x7e0 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1 Comm: systemd Tainted: G        W         5.12.0-rc3-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
2021/03/20 23:58 upstream 812da4d39463 17810eae .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in cgroup_procs_write_start / handle_mm_fault
* Struck through repros no longer work on HEAD.