================================================================== BUG: KCSAN: data-race in lruvec_lru_size / mem_cgroup_update_lru_size write to 0xffff88812bd0b9e8 of 8 bytes by task 9750 on cpu 0: mem_cgroup_update_lru_size+0x73/0x110 mm/memcontrol.c:1293 update_lru_size include/linux/mm_inline.h:44 [inline] add_page_to_lru_list include/linux/mm_inline.h:51 [inline] __pagevec_lru_add_fn+0x2b4/0x8c0 mm/swap.c:977 pagevec_lru_move_fn+0xf5/0x170 mm/swap.c:211 __pagevec_lru_add mm/swap.c:987 [inline] lru_add_drain_cpu+0x170/0x2d0 mm/swap.c:599 lru_add_drain+0x32/0x70 mm/swap.c:694 shrink_inactive_list+0x1d3/0x8d0 mm/vmscan.c:1925 shrink_list mm/vmscan.c:2163 [inline] shrink_lruvec+0x4c9/0xd80 mm/vmscan.c:2482 shrink_node_memcgs mm/vmscan.c:2671 [inline] shrink_node+0x30d/0x1000 mm/vmscan.c:2777 shrink_zones mm/vmscan.c:2980 [inline] do_try_to_free_pages+0x230/0xb20 mm/vmscan.c:3033 try_to_free_pages+0x1e6/0x470 mm/vmscan.c:3272 __perform_reclaim mm/page_alloc.c:4182 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4203 [inline] __alloc_pages_slowpath.constprop.0+0x3b1/0xd90 mm/page_alloc.c:4609 __alloc_pages_nodemask+0x2bd/0x300 mm/page_alloc.c:4822 alloc_pages_current+0xca/0x170 mm/mempolicy.c:2295 alloc_pages include/linux/gfp.h:540 [inline] __page_cache_alloc mm/filemap.c:959 [inline] __page_cache_alloc+0x17f/0x1a0 mm/filemap.c:944 __do_page_cache_readahead+0x13a/0x380 mm/readahead.c:196 ra_submit mm/internal.h:62 [inline] do_sync_mmap_readahead mm/filemap.c:2407 [inline] filemap_fault+0x1027/0x1410 mm/filemap.c:2493 ext4_filemap_fault+0x5b/0x74 fs/ext4/inode.c:6033 __do_fault+0xa8/0x1e0 mm/memory.c:3450 do_read_fault mm/memory.c:3846 [inline] do_fault mm/memory.c:3975 [inline] handle_pte_fault mm/memory.c:4215 [inline] __handle_mm_fault+0x295c/0x2da0 mm/memory.c:4345 handle_mm_fault+0x21c/0x540 mm/memory.c:4382 do_user_addr_fault arch/x86/mm/fault.c:1464 [inline] do_page_fault+0x48a/0xa96 arch/x86/mm/fault.c:1535 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203 read to 0xffff88812bd0b9e8 of 8 bytes by task 2677 on cpu 1: mem_cgroup_get_zone_lru_size include/linux/memcontrol.h:536 [inline] lruvec_lru_size+0xe8/0x1b0 mm/vmscan.c:326 get_scan_count mm/vmscan.c:2348 [inline] shrink_lruvec+0x170/0xd80 mm/vmscan.c:2452 shrink_node_memcgs mm/vmscan.c:2671 [inline] shrink_node+0x30d/0x1000 mm/vmscan.c:2777 kswapd_shrink_node mm/vmscan.c:3523 [inline] balance_pgdat+0x658/0xd20 mm/vmscan.c:3681 kswapd+0x3f3/0x8c0 mm/vmscan.c:3935 kthread+0x203/0x230 kernel/kthread.c:268 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 2677 Comm: kswapd0 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================