================================================================== BUG: KCSAN: data-race in drain_all_stock / drain_stock write to 0xffff888237c2a2e8 of 8 bytes by interrupt on cpu 0: drain_stock+0x88/0xf0 mm/memcontrol.c:2277 __refill_stock+0x4a/0xd0 mm/memcontrol.c:2313 refill_stock mm/memcontrol.c:2328 [inline] obj_cgroup_uncharge_pages+0x123/0x1f0 mm/memcontrol.c:3088 refill_obj_stock+0x16d/0x1e0 mm/memcontrol.c:3359 obj_cgroup_uncharge+0xe/0x10 mm/memcontrol.c:3408 memcg_slab_free_hook mm/slab.h:587 [inline] __cache_free mm/slab.c:3373 [inline] __do_kmem_cache_free mm/slab.c:3577 [inline] kmem_cache_free+0x105/0x280 mm/slab.c:3602 free_task_struct kernel/fork.c:176 [inline] free_task kernel/fork.c:562 [inline] __put_task_struct+0x2b4/0x3b0 kernel/fork.c:855 put_task_struct include/linux/sched/task.h:119 [inline] delayed_put_task_struct+0x53/0x160 kernel/exit.c:225 rcu_do_batch kernel/rcu/tree.c:2112 [inline] rcu_core+0x4fc/0xc10 kernel/rcu/tree.c:2372 rcu_core_si+0xd/0x10 kernel/rcu/tree.c:2389 __do_softirq+0xe4/0x2b0 kernel/softirq.c:571 run_ksoftirqd+0x23/0x30 kernel/softirq.c:934 smpboot_thread_fn+0x2f8/0x490 kernel/smpboot.c:164 kthread+0x1ac/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffff888237c2a2e8 of 8 bytes by task 8662 on cpu 1: drain_all_stock+0xab/0x2a0 mm/memcontrol.c:2357 memory_max_write+0xdf/0x270 mm/memcontrol.c:6523 cgroup_file_write+0x16b/0x310 kernel/cgroup/cgroup.c:4061 kernfs_fop_write_iter+0x1ca/0x2b0 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x45a/0x750 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff88812dcba000 -> 0xffff88812dcb6000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8662 Comm: syz-executor.2 Not tainted 6.2.0-syzkaller-10827-g489fa31ea873-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 ================================================================== syz-executor.2 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=1000 CPU: 1 PID: 8662 Comm: syz-executor.2 Not tainted 6.2.0-syzkaller-10827-g489fa31ea873-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xda/0x130 lib/dump_stack.c:106 dump_stack+0x15/0x20 lib/dump_stack.c:113 dump_header+0x95/0x3c0 mm/oom_kill.c:460 out_of_memory+0xa30/0xc30 mm/oom_kill.c:1163 mem_cgroup_out_of_memory+0x139/0x190 mm/memcontrol.c:1720 memory_max_write+0x1e3/0x270 mm/memcontrol.c:6536 cgroup_file_write+0x16b/0x310 kernel/cgroup/cgroup.c:4061 kernfs_fop_write_iter+0x1ca/0x2b0 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x45a/0x750 fs/read_write.c:584 ksys_write+0xeb/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f91142740f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f91135e7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9114393f80 RCX: 00007f91142740f9 RDX: 0000000000000012 RSI: 0000000020000080 RDI: 0000000000000006 RBP: 00007f91142cfae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffccbd2971f R14: 00007f91135e7300 R15: 0000000000022000 memory: usage 11048kB, limit 0kB, failcnt 98 swap: usage 0kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz1: anon 0 file 10493952 kernel 819200 kernel_stack 0 pagetables 0 sec_pagetables 0 percpu 22560 sock 0 vmalloc 0 shmem 10457088 file_mapped 102400 file_dirty 36864 file_writeback 0 swapcached 0 inactive_anon 2097152 active_anon 8359936 inactive_file 20480 active_file 16384 unevictable 0 slab_reclaimable 127368 slab_unreclaimable 658464 slab 785832 workingset_refault_anon 0 workingset_refault_file 0 workingset_activate_anon 0 workingset_activate_file 0 workingset_restore_anon 0 workingset_restore_file 0 workingset_nodereclaim 0 pgscan 1380 pgsteal 29 pgscan_kswapd 0 pgscan_direct 1380 pgscan_khugepaged 0 pgsteal_kswapd 0 pgsteal_direct 29 pgsteal_khugepaged 0 pgfault 51320 pgmajfault 2 pgrefill 1386 pgactivate 5627 pgdeactivate 1392 pglazyfree 0 pglazyfreed 0 Out of memory and no killable processes...