syzbot


KCSAN: data-race in __mod_memcg_state / mem_cgroup_css_rstat_flush

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

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

write to 0xffffe8ffffd4ab40 of 4 bytes by task 3208 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 0xffffe8ffffd4ab40 of 4 bytes by task 5160 on cpu 1:
 memcg_rstat_updated mm/memcontrol.c:725 [inline]
 __mod_memcg_state+0x10c/0x170 mm/memcontrol.c:824
 mod_memcg_state include/linux/memcontrol.h:1002 [inline]
 mod_memcg_page_state include/linux/memcontrol.h:1017 [inline]
 __vmalloc_area_node mm/vmalloc.c:3645 [inline]
 __vmalloc_node_range+0xa98/0xee0 mm/vmalloc.c:3818
 kvmalloc_node+0x121/0x170 mm/util.c:659
 kvmalloc include/linux/slab.h:766 [inline]
 kvzalloc include/linux/slab.h:774 [inline]
 ip_set_alloc+0x1f/0x30 net/netfilter/ipset/ip_set_core.c:255
 hash_netiface_create+0x277/0x740 net/netfilter/ipset/ip_set_hash_gen.h:1568
 ip_set_create+0x359/0x8a0 net/netfilter/ipset/ip_set_core.c:1103
 nfnetlink_rcv_msg+0x4a9/0x570 net/netfilter/nfnetlink.c:302
 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2564
 nfnetlink_rcv+0x16c/0x15b0 net/netfilter/nfnetlink.c:664
 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
 netlink_unicast+0x58d/0x660 net/netlink/af_netlink.c:1361
 netlink_sendmsg+0x5d3/0x6e0 net/netlink/af_netlink.c:1905
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x140/0x180 net/socket.c:745
 ____sys_sendmsg+0x312/0x410 net/socket.c:2585
 ___sys_sendmsg net/socket.c:2639 [inline]
 __sys_sendmsg+0x1e9/0x280 net/socket.c:2668
 __do_sys_sendmsg net/socket.c:2677 [inline]
 __se_sys_sendmsg net/socket.c:2675 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2675
 x64_sys_call+0xae9/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:47
 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: 0x0000000e -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5160 Comm: syz-executor.3 Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
==================================================================
syz-executor.3 (5160) used greatest stack depth: 8152 bytes left

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