================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 read-write to 0xffffffff85a079c0 of 8 bytes by interrupt on cpu 0: tick_do_update_jiffies64+0x112/0x1b0 kernel/time/tick-sched.c:118 tick_sched_do_timer kernel/time/tick-sched.c:199 [inline] tick_sched_timer+0x76/0x2b0 kernel/time/tick-sched.c:1473 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0x73/0x210 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 __tsan_read4+0xe/0x180 kernel/kcsan/core.c:1015 crypto_shash_descsize include/crypto/hash.h:830 [inline] ext4_chksum fs/ext4/ext4.h:2459 [inline] ext4_inode_csum+0x10f/0x4b0 fs/ext4/inode.c:62 ext4_inode_csum_set fs/ext4/inode.c:115 [inline] ext4_fill_raw_inode+0xd22/0xe60 fs/ext4/inode.c:4518 ext4_do_update_inode fs/ext4/inode.c:5248 [inline] ext4_mark_iloc_dirty+0x2e9/0xe10 fs/ext4/inode.c:5880 ext4_xattr_set_handle+0xabe/0xc30 fs/ext4/xattr.c:2482 ext4_initxattrs+0x60/0xb0 fs/ext4/xattr_security.c:44 security_inode_init_security+0x194/0x250 security/security.c:1147 ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:58 __ext4_new_inode+0x20af/0x2320 fs/ext4/ialloc.c:1324 ext4_create+0x172/0x2f0 fs/ext4/namei.c:2808 lookup_open fs/namei.c:3416 [inline] open_last_lookups fs/namei.c:3484 [inline] path_openat+0xd96/0x1d00 fs/namei.c:3712 do_filp_open+0xf6/0x200 fs/namei.c:3742 do_sys_openat2+0xb5/0x2a0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1375 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 read to 0xffffffff85a079c0 of 8 bytes by task 3146 on cpu 1: mem_cgroup_flush_stats_delayed+0x38/0x140 mm/memcontrol.c:658 workingset_refault+0x2ec/0x740 mm/workingset.c:465 filemap_add_folio+0xe6/0x150 mm/filemap.c:953 __filemap_get_folio+0x554/0x750 mm/filemap.c:1981 pagecache_get_page+0x2a/0xd0 mm/folio-compat.c:99 find_or_create_page include/linux/pagemap.h:632 [inline] grow_dev_page fs/buffer.c:989 [inline] grow_buffers fs/buffer.c:1054 [inline] __getblk_slow fs/buffer.c:1081 [inline] __getblk_gfp+0x182/0x7e0 fs/buffer.c:1376 sb_getblk include/linux/buffer_head.h:359 [inline] ext4_getblk+0x191/0x4e0 fs/ext4/inode.c:873 ext4_bread+0x2c/0x110 fs/ext4/inode.c:919 ext4_append+0x164/0x2a0 fs/ext4/namei.c:83 ext4_init_new_dir+0x17b/0x510 fs/ext4/namei.c:2955 ext4_mkdir+0x312/0x740 fs/ext4/namei.c:3001 vfs_mkdir+0x1ac/0x2b0 fs/namei.c:4038 do_mkdirat+0xf9/0x260 fs/namei.c:4061 __do_sys_mkdirat fs/namei.c:4076 [inline] __se_sys_mkdirat fs/namei.c:4074 [inline] __x64_sys_mkdirat+0x50/0x60 fs/namei.c:4074 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: 0x000000010001b737 -> 0x000000010001b738 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 3146 Comm: syz-executor.2 Not tainted 6.3.0-rc6-syzkaller-00183-ga7a55e27ad72 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 ==================================================================