syzbot


KCSAN: data-race in page_counter_try_charge / page_counter_try_charge (2)

Status: fixed on 2020/09/16 22:51
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+f36cfe60b1006a94f9dc@syzkaller.appspotmail.com
Fix commit: 6e4bd50f3888 mm/page_counter: fix various data races at memsw
First crash: 1671d, last: 1377d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.8 000/255] 5.8.6-rc1 review 263 (263) 2020/09/03 09:29
[patch 26/39] mm/page_counter: fix various data races at memsw 1 (1) 2020/08/15 00:31
[PATCH -next] mm/page_counter: annotate an intentional data race 3 (3) 2020/02/11 12:16
[PATCH] mm/page_counter: fix various data races 10 (10) 2020/02/11 12:14
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 mm 3 1679d 1687d 0/26 closed as invalid on 2019/10/15 15:50

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

write to 0xffff88812b78c158 of 8 bytes by task 16024 on cpu 1:
 page_counter_try_charge+0x21f/0x450 mm/page_counter.c:134
 try_charge+0x1a5/0xac0 mm/memcontrol.c:2644
 mem_cgroup_charge+0xbe/0x490 mm/memcontrol.c:6704
 __do_huge_pmd_anonymous_page+0x64/0x820 mm/huge_memory.c:596
 do_huge_pmd_anonymous_page+0x635/0x870 mm/huge_memory.c:775
 create_huge_pmd mm/memory.c:4110 [inline]
 __handle_mm_fault mm/memory.c:4331 [inline]
 handle_mm_fault+0xf5c/0x1950 mm/memory.c:4397
 do_user_addr_fault+0x393/0x810 arch/x86/mm/fault.c:1294
 handle_page_fault arch/x86/mm/fault.c:1364 [inline]
 exc_page_fault+0xb8/0x330 arch/x86/mm/fault.c:1417
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:538

read to 0xffff88812b78c158 of 8 bytes by task 16014 on cpu 0:
 page_counter_try_charge+0x1fd/0x450 mm/page_counter.c:133
 try_charge+0x1a5/0xac0 mm/memcontrol.c:2644
 mem_cgroup_charge+0xbe/0x490 mm/memcontrol.c:6704
 __do_huge_pmd_anonymous_page+0x64/0x820 mm/huge_memory.c:596
 do_huge_pmd_anonymous_page+0x635/0x870 mm/huge_memory.c:775
 create_huge_pmd mm/memory.c:4110 [inline]
 __handle_mm_fault mm/memory.c:4331 [inline]
 handle_mm_fault+0xf5c/0x1950 mm/memory.c:4397
 do_user_addr_fault+0x393/0x810 arch/x86/mm/fault.c:1294
 handle_page_fault arch/x86/mm/fault.c:1364 [inline]
 exc_page_fault+0xb8/0x330 arch/x86/mm/fault.c:1417
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:538

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

Crashes (148):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/12 13:48 upstream fb893de323e2 0d7bd2e0 .config console log report ci2-upstream-kcsan-gce
2020/08/08 13:50 upstream 449dc8c97089 01975a06 .config console log report ci2-upstream-kcsan-gce
2020/07/21 14:53 upstream 4fa640dc5230 e562dd8a .config console log report ci2-upstream-kcsan-gce
2020/07/07 23:04 upstream aa27b32b76d0 08fc4ef1 .config console log report ci2-upstream-kcsan-gce
2020/07/02 09:00 upstream cd77006e01b3 f8885dc4 .config console log report ci2-upstream-kcsan-gce
2020/07/02 01:21 upstream edb543cfe5db bed10395 .config console log report ci2-upstream-kcsan-gce
2020/06/27 02:25 upstream 1590a2e1c681 ffec44b5 .config console log report ci2-upstream-kcsan-gce
2020/06/26 14:23 upstream 4a21185cda0f b202c7a8 .config console log report ci2-upstream-kcsan-gce
2020/06/26 02:39 upstream 4a21185cda0f aea82c00 .config console log report ci2-upstream-kcsan-gce
2020/06/23 16:48 upstream dd0d718152e4 6930bbef .config console log report ci2-upstream-kcsan-gce
2020/04/15 04:38 https://github.com/google/ktsan.git kcsan 40959e34d670 3f3c5574 .config console log report ci2-upstream-kcsan-gce
2020/04/13 22:40 https://github.com/google/ktsan.git kcsan 40959e34d670 7c54686a .config console log report ci2-upstream-kcsan-gce
2020/04/13 15:39 https://github.com/google/ktsan.git kcsan 40959e34d670 17a986e5 .config console log report ci2-upstream-kcsan-gce
2020/04/09 06:22 https://github.com/google/ktsan.git kcsan 40959e34d670 a8c6a3f8 .config console log report ci2-upstream-kcsan-gce
2020/04/08 07:50 https://github.com/google/ktsan.git kcsan 40959e34d670 db9bcd4b .config console log report ci2-upstream-kcsan-gce
2020/04/04 07:21 https://github.com/google/ktsan.git kcsan 40959e34d670 ef26b610 .config console log report ci2-upstream-kcsan-gce
2020/04/01 17:56 https://github.com/google/ktsan.git kcsan 40959e34d670 a34e2c33 .config console log report ci2-upstream-kcsan-gce
2020/03/30 20:03 https://github.com/google/ktsan.git kcsan 40959e34d670 c8d1cc20 .config console log report ci2-upstream-kcsan-gce
2020/03/29 05:22 https://github.com/google/ktsan.git kcsan 40959e34d670 05736b29 .config console log report ci2-upstream-kcsan-gce
2020/03/28 08:20 https://github.com/google/ktsan.git kcsan 40959e34d670 831e9a81 .config console log report ci2-upstream-kcsan-gce
2020/03/26 19:50 https://github.com/google/ktsan.git kcsan 40959e34d670 6d25c5a0 .config console log report ci2-upstream-kcsan-gce
2020/03/22 08:11 https://github.com/google/ktsan.git kcsan 40959e34d670 78267cec .config console log report ci2-upstream-kcsan-gce
2020/03/19 23:32 https://github.com/google/ktsan.git kcsan 40959e34d670 2c31c529 .config console log report ci2-upstream-kcsan-gce
2020/03/18 09:46 https://github.com/google/ktsan.git kcsan 941e0d917bbf 0a96a13c .config console log report ci2-upstream-kcsan-gce
2020/03/15 20:32 https://github.com/google/ktsan.git kcsan 941e0d917bbf 749688d2 .config console log report ci2-upstream-kcsan-gce
2020/03/13 04:13 https://github.com/google/ktsan.git kcsan 941e0d917bbf d850e9d0 .config console log report ci2-upstream-kcsan-gce
2020/03/11 22:29 https://github.com/google/ktsan.git kcsan 941e0d917bbf e103bc9e .config console log report ci2-upstream-kcsan-gce
2020/03/10 04:54 https://github.com/google/ktsan.git kcsan 941e0d917bbf 35f53e45 .config console log report ci2-upstream-kcsan-gce
2020/03/07 09:50 https://github.com/google/ktsan.git kcsan 941e0d917bbf 2e9971bb .config console log report ci2-upstream-kcsan-gce
2020/03/06 11:02 https://github.com/google/ktsan.git kcsan 766d004d1b85 7fb694ef .config console log report ci2-upstream-kcsan-gce
2020/03/05 10:48 https://github.com/google/ktsan.git kcsan 766d004d1b85 b655d91b .config console log report ci2-upstream-kcsan-gce
2020/03/04 03:18 https://github.com/google/ktsan.git kcsan 766d004d1b85 1f73b64b .config console log report ci2-upstream-kcsan-gce
2020/03/02 08:19 https://github.com/google/ktsan.git kcsan 766d004d1b85 4a4e0509 .config console log report ci2-upstream-kcsan-gce
2020/02/28 03:53 https://github.com/google/ktsan.git kcsan 766d004d1b85 c88c7b75 .config console log report ci2-upstream-kcsan-gce
2020/02/27 01:14 https://github.com/google/ktsan.git kcsan 766d004d1b85 251aabb7 .config console log report ci2-upstream-kcsan-gce
2020/02/26 04:24 https://github.com/google/ktsan.git kcsan 766d004d1b85 4f588111 .config console log report ci2-upstream-kcsan-gce
2020/02/25 14:45 https://github.com/google/ktsan.git kcsan 766d004d1b85 4c886d6a .config console log report ci2-upstream-kcsan-gce
2020/02/25 02:44 https://github.com/google/ktsan.git kcsan 766d004d1b85 59b57593 .config console log report ci2-upstream-kcsan-gce
2020/02/24 10:42 https://github.com/google/ktsan.git kcsan 766d004d1b85 1253d6f0 .config console log report ci2-upstream-kcsan-gce
2020/02/23 23:07 https://github.com/google/ktsan.git kcsan 766d004d1b85 d801cb02 .config console log report ci2-upstream-kcsan-gce
2020/02/23 00:36 https://github.com/google/ktsan.git kcsan 766d004d1b85 2c36e7a7 .config console log report ci2-upstream-kcsan-gce
2020/02/21 22:17 https://github.com/google/ktsan.git kcsan 766d004d1b85 2ffa6679 .config console log report ci2-upstream-kcsan-gce
2020/02/21 10:28 https://github.com/google/ktsan.git kcsan b12d66a6c34f bd2a74a3 .config console log report ci2-upstream-kcsan-gce
2020/02/19 02:51 https://github.com/google/ktsan.git kcsan b12d66a6c34f 135c18aa .config console log report ci2-upstream-kcsan-gce
2020/02/18 20:40 https://github.com/google/ktsan.git kcsan b12d66a6c34f 012fbc32 .config console log report ci2-upstream-kcsan-gce
2020/02/18 05:47 https://github.com/google/ktsan.git kcsan b12d66a6c34f 1ce142dc .config console log report ci2-upstream-kcsan-gce
2020/02/17 20:56 https://github.com/google/ktsan.git kcsan b12d66a6c34f 72bfa6f2 .config console log report ci2-upstream-kcsan-gce
2020/02/14 15:17 https://github.com/google/ktsan.git kcsan b12d66a6c34f 5d7b90f1 .config console log report ci2-upstream-kcsan-gce
2019/12/13 02:30 https://github.com/google/ktsan.git kcsan 245a43005292 08003f64 .config console log report ci2-upstream-kcsan-gce
2019/10/23 08:16 https://github.com/google/ktsan.git kcsan 05f2236801fe d0686497 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.