syzbot


KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush

Status: auto-obsoleted due to no activity on 2024/06/16 03:09
Subsystems: cgroups mm
[Documentation on labels]
Reported-by: syzbot+8f212b33c3749fb70713@syzkaller.appspotmail.com
First crash: 217d, last: 119d

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

write to 0xffffe8ffffd5e780 of 4 bytes by task 6264 on cpu 0:
 mem_cgroup_css_rstat_flush+0x4ea/0x540 mm/memcontrol.c:5848
 cgroup_rstat_flush_locked+0x93a/0xe20 kernel/cgroup/rstat.c:322
 cgroup_rstat_flush+0x2a/0x120 kernel/cgroup/rstat.c:354
 do_flush_stats mm/memcontrol.c:745 [inline]
 flush_memcg_stats_dwork+0x50/0x90 mm/memcontrol.c:782
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312
 worker_thread+0x526/0x730 kernel/workqueue.c:3393
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read-write to 0xffffe8ffffd5e780 of 4 bytes by task 7850 on cpu 1:
 memcg_rstat_updated mm/memcontrol.c:725 [inline]
 __count_memcg_events+0xce/0x130 mm/memcontrol.c:962
 mem_cgroup_charge_statistics mm/memcontrol.c:990 [inline]
 mem_cgroup_commit_charge+0x92/0x200 mm/memcontrol.c:2975
 charge_memcg mm/memcontrol.c:7288 [inline]
 __mem_cgroup_charge+0x75/0x100 mm/memcontrol.c:7299
 mem_cgroup_charge include/linux/memcontrol.h:691 [inline]
 shmem_alloc_and_add_folio mm/shmem.c:1677 [inline]
 shmem_get_folio_gfp+0x480/0xb70 mm/shmem.c:2055
 shmem_get_folio mm/shmem.c:2160 [inline]
 shmem_write_begin+0xa0/0x1c0 mm/shmem.c:2744
 generic_perform_write+0x1d5/0x410 mm/filemap.c:3974
 shmem_file_write_iter+0xc8/0xf0 mm/shmem.c:2920
 call_write_iter include/linux/fs.h:2120 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x765/0x8e0 fs/read_write.c:590
 ksys_write+0xeb/0x1b0 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:652
 x64_sys_call+0x27b7/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000001e -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7850 Comm: syz-executor.1 Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================
loop1: detected capacity change from 0 to 65536
FAT-fs (loop1): Unrecognized mount option "v㍑9i"N
=<GrWL:[)Ear'cs{dR#*n	r̰xuӛNg-uox" or missing value

Crashes (259):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/19 03:08 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/18 14:21 upstream 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/18 01:16 upstream 7ee332c9f12b c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/17 12:10 upstream ea5f6ad9ad96 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/17 07:42 upstream ea5f6ad9ad96 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/16 16:57 upstream 3c999d1ae3c7 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/16 13:29 upstream 3c999d1ae3c7 ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/15 23:33 upstream 8c06da67d0bd 94b087b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/15 10:04 upstream b850dc206a57 94b087b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/15 03:58 upstream b850dc206a57 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/14 16:02 upstream a5131c3fdf26 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/13 23:59 upstream 8815da98e06a fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/13 20:33 upstream 8815da98e06a 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/13 06:31 upstream a38297e3fb01 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/12 17:11 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/11 08:02 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/10 18:51 upstream f4345f05c0df f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/10 15:05 upstream 448b3fe5a0ea f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/10 01:11 upstream 448b3fe5a0ea de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/09 21:51 upstream 448b3fe5a0ea 05079661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/09 08:41 upstream 45db3ab70092 05079661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/09 07:30 upstream 45db3ab70092 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/08 18:20 upstream 6d7ddd805123 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/08 15:49 upstream dccb07f2914c 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/08 00:42 upstream dccb07f2914c 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/07 12:14 upstream dccb07f2914c cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/06 23:35 upstream dccb07f2914c fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/06 09:43 upstream dd5a440a31fa d884b519 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/06 07:26 upstream dd5a440a31fa 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/05 17:58 upstream b9158815de52 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/04 14:36 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/04 00:38 upstream ddb4c3f25b7b 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/03 22:41 upstream ddb4c3f25b7b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/03 11:03 upstream f03359bca01b dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/02 20:59 upstream 49a73b1652c5 ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/02 18:43 upstream 49a73b1652c5 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/01 18:32 upstream 0106679839f7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/05/01 00:46 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/30 09:40 upstream 98369dccd2f8 f10afd69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/29 20:15 upstream b947cc5bf6d7 f10afd69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/29 17:38 upstream b947cc5bf6d7 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/29 07:31 upstream e67572cd2204 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/28 22:31 upstream e67572cd2204 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/28 08:42 upstream 2c8159388952 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/27 20:14 upstream 5d12ed4bea43 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/27 04:16 upstream 5eb4573ea63d 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/27 01:37 upstream 5eb4573ea63d 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/26 11:42 upstream c942a0cd3603 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/04/26 06:23 upstream c942a0cd3603 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
2024/02/11 11:45 upstream 7521f258ea30 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __count_memcg_events / mem_cgroup_css_rstat_flush
* Struck through repros no longer work on HEAD.