syzbot


KCSAN: data-race in page_counter_try_charge / page_counter_try_charge

Status: closed as invalid on 2019/10/15 15:50
Subsystems: mm
[Documentation on labels]
First crash: 1831d, last: 1823d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in page_counter_try_charge / page_counter_try_charge (2) mm 148 1520d 1764d 15/28 fixed on 2020/09/16 22:51

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

read to 0xffff88821b66f150 of 8 bytes by task 7765 on cpu 1:
 page_counter_try_charge+0x58/0x170 mm/page_counter.c:138
 try_charge+0x182/0xb50 mm/memcontrol.c:2395
 mem_cgroup_try_charge+0xd2/0x260 mm/memcontrol.c:6205
 mem_cgroup_try_charge_delay+0x3a/0x80 mm/memcontrol.c:6220
 do_anonymous_page mm/memory.c:2997 [inline]
 handle_pte_fault mm/memory.c:3838 [inline]
 __handle_mm_fault+0x17eb/0x2d00 mm/memory.c:3964
 handle_mm_fault+0x21b/0x520 mm/memory.c:4001
 faultin_page mm/gup.c:651 [inline]
 __get_user_pages+0x485/0x1160 mm/gup.c:854
 __get_user_pages_locked mm/gup.c:1030 [inline]
 get_user_pages_remote+0x206/0x3e0 mm/gup.c:1170
 __access_remote_vm+0x1eb/0x380 mm/memory.c:4304
 access_remote_vm+0x3f/0x60 mm/memory.c:4366
 mem_rw.isra.0+0x1aa/0x350 fs/proc/base.c:846
 mem_write+0x4c/0x60 fs/proc/base.c:880
 __vfs_write+0x67/0xc0 fs/read_write.c:494
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542

write to 0xffff88821b66f150 of 8 bytes by task 7772 on cpu 0:
 page_counter_try_charge+0x7e/0x170 mm/page_counter.c:139
 try_charge+0x182/0xb50 mm/memcontrol.c:2395
 mem_cgroup_try_charge+0xd2/0x260 mm/memcontrol.c:6205
 mem_cgroup_try_charge_delay+0x3a/0x80 mm/memcontrol.c:6220
 do_anonymous_page mm/memory.c:2997 [inline]
 handle_pte_fault mm/memory.c:3838 [inline]
 __handle_mm_fault+0x17eb/0x2d00 mm/memory.c:3964
 handle_mm_fault+0x21b/0x520 mm/memory.c:4001
 faultin_page mm/gup.c:651 [inline]
 __get_user_pages+0x485/0x1160 mm/gup.c:854
 __get_user_pages_locked mm/gup.c:1030 [inline]
 get_user_pages_remote+0x206/0x3e0 mm/gup.c:1170
 __access_remote_vm+0x1eb/0x380 mm/memory.c:4304
 access_remote_vm+0x3f/0x60 mm/memory.c:4366
 mem_rw.isra.0+0x1aa/0x350 fs/proc/base.c:846
 mem_write+0x4c/0x60 fs/proc/base.c:880
 __vfs_write+0x67/0xc0 fs/read_write.c:494

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 7772 Comm: syz-executor.4 Not tainted 5.3.0+ #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
2019/10/15 10:38 https://github.com/google/ktsan.git kcsan 81f95ec7998e 05ad7292 .config console log report ci2-upstream-kcsan-gce
2019/10/08 20:19 https://github.com/google/ktsan.git kcsan d724f94f63de b1ebbfef .config console log report ci2-upstream-kcsan-gce
2019/10/07 10:50 https://github.com/google/ktsan.git kcsan c1c7521f03c7 28ac6e64 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.