==================================================================
BUG: KASAN: slab-out-of-bounds in instrument_atomic_read include/linux/instrumented.h:68 [inline]
BUG: KASAN: slab-out-of-bounds in atomic64_read include/linux/atomic/atomic-instrumented.h:1610 [inline]
BUG: KASAN: slab-out-of-bounds in memcg_vmstats_needs_flush mm/memcontrol.c:569 [inline]
BUG: KASAN: slab-out-of-bounds in memcg_rstat_updated+0x13c/0x288 mm/memcontrol.c:594
Read of size 8 at addr ffff0000f0283663 by task syz-executor/7186

CPU: 1 UID: 0 PID: 7186 Comm: syz-executor Not tainted 6.14.0-rc3-syzkaller-ge6747d19291c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call trace:
 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C)
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0x198/0x538 mm/kasan/report.c:489
 kasan_report+0xd8/0x138 mm/kasan/report.c:602
 kasan_check_range+0x268/0x2a8 mm/kasan/generic.c:189
 __kasan_check_read+0x20/0x30 mm/kasan/shadow.c:31
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 atomic64_read include/linux/atomic/atomic-instrumented.h:1610 [inline]
 memcg_vmstats_needs_flush mm/memcontrol.c:569 [inline]
 memcg_rstat_updated+0x13c/0x288 mm/memcontrol.c:594
 __count_memcg_events+0x260/0x680 mm/memcontrol.c:857
 count_memcg_events include/linux/memcontrol.h:969 [inline]
 count_memcg_events_mm include/linux/memcontrol.h:993 [inline]
 count_memcg_event_mm+0x160/0x2c8 include/linux/memcontrol.h:1000
 mm_account_fault mm/memory.c:6066 [inline]
 handle_mm_fault+0x1128/0x188c mm/memory.c:6227
 do_page_fault+0x404/0x10a8 arch/arm64/mm/fault.c:647
 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:919
 el0_da+0x60/0x178 arch/arm64/kernel/entry-common.c:604
 el0t_64_sync_handler+0xcc/0x108 arch/arm64/kernel/entry-common.c:765
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600

Allocated by task 7186:
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_save_track+0x40/0x78 mm/kasan/common.c:68
 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:562
 poison_kmalloc_redzone mm/kasan/common.c:377 [inline]
 __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:394
 kasan_kmalloc include/linux/kasan.h:260 [inline]
 __kmalloc_cache_noprof+0x2cc/0x428 mm/slub.c:4325
 kmalloc_noprof include/linux/slab.h:901 [inline]
 kzalloc_noprof include/linux/slab.h:1037 [inline]
 mem_cgroup_alloc mm/memcontrol.c:3507 [inline]
 mem_cgroup_css_alloc+0x2a8/0x159c mm/memcontrol.c:3570
 css_create kernel/cgroup/cgroup.c:5627 [inline]
 cgroup_apply_control_enable+0x348/0x9ac kernel/cgroup/cgroup.c:3239
 cgroup_mkdir+0x864/0xba0 kernel/cgroup/cgroup.c:5843
 kernfs_iop_mkdir+0x22c/0x3bc fs/kernfs/dir.c:1247
 vfs_mkdir+0x27c/0x410 fs/namei.c:4313
 do_mkdirat+0x250/0x584 fs/namei.c:4336
 __do_sys_mkdirat fs/namei.c:4351 [inline]
 __se_sys_mkdirat fs/namei.c:4349 [inline]
 __arm64_sys_mkdirat+0x8c/0xa4 fs/namei.c:4349
 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744
 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600

The buggy address belongs to the object at ffff0000f0283000
 which belongs to the cache kmalloc-cg-2k of size 2048
The buggy address is located 1635 bytes inside of
 allocated 1640-byte region [ffff0000f0283000, ffff0000f0283668)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff0000f0285000 pfn:0x130280
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff0000d3f6e781
flags: 0x5ffc00000000240(workingset|head|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 05ffc00000000240 ffff0000c000f3c0 fffffdffc31fc610 fffffdffc3b7aa10
raw: ffff0000f0285000 0000000000080006 00000000f5000000 ffff0000d3f6e781
head: 05ffc00000000240 ffff0000c000f3c0 fffffdffc31fc610 fffffdffc3b7aa10
head: ffff0000f0285000 0000000000080006 00000000f5000000 ffff0000d3f6e781
head: 05ffc00000000003 fffffdffc3c0a001 ffffffffffffffff 0000000000000000
head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff0000f0283500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff0000f0283580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff0000f0283600: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc
                                                          ^
 ffff0000f0283680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff0000f0283700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
Unable to handle kernel paging request at virtual address ffff0000f0283663
KASAN: maybe wild-memory-access in range [0xfffc00078141b318-0xfffc00078141b31f]
Mem abort info:
  ESR = 0x0000000096000021
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x21: alignment fault
Data abort info:
  ISV = 0, ISS = 0x00000021, ISS2 = 0x00000000
  CM = 0, WnR = 0, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001a50a6000
[ffff0000f0283663] pgd=0000000000000000, p4d=180000023ffff403, pud=180000023f41b403, pmd=180000023f299403, pte=0068000130283707
Internal error: Oops: 0000000096000021 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 UID: 0 PID: 7186 Comm: syz-executor Tainted: G    B              6.14.0-rc3-syzkaller-ge6747d19291c #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
pstate: 004000c5 (nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __lse_atomic64_add arch/arm64/include/asm/atomic_lse.h:134 [inline]
pc : arch_atomic64_add arch/arm64/include/asm/atomic.h:67 [inline]
pc : raw_atomic64_add include/linux/atomic/atomic-arch-fallback.h:2672 [inline]
pc : atomic64_add include/linux/atomic/atomic-instrumented.h:1683 [inline]
pc : memcg_rstat_updated+0x19c/0x288 mm/memcontrol.c:595
lr : instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
lr : atomic64_add include/linux/atomic/atomic-instrumented.h:1682 [inline]
lr : memcg_rstat_updated+0x198/0x288 mm/memcontrol.c:595
sp : ffff80009ca279f0
x29: ffff80009ca279f0 x28: 1fffffbff7ef4868 x27: ffff80008fbbd000
x26: 1fffffbff7ef486a x25: 1ffff00011f77ac5 x24: 0000000000000001
x23: dfff800000000000 x22: 0000000000000000 x21: ffff0000f0283663
x20: fffffdffbf7a4340 x19: 0000000000000040 x18: 0000000000000008
x17: 0000000000000000 x16: ffff8000832b5a70 x15: ffff60001e0506cd
x14: 1fffe0001e0506cc x13: 00000000000000fc x12: ffffffffffffffff
x11: ffff60001e0506cd x10: 1fffe0001e0506cd x9 : ffff8000977fd400
x8 : 0000000000000001 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80009ca27098 x4 : ffff80008fcaf720 x3 : ffff800080c66244
x2 : 0000000000000001 x1 : 0000000000000008 x0 : 0000000000000001
Call trace:
 alternative_has_cap_likely arch/arm64/include/asm/alternative-macros.h:232 [inline] (P)
 arch_atomic64_add arch/arm64/include/asm/atomic.h:67 [inline] (P)
 raw_atomic64_add include/linux/atomic/atomic-arch-fallback.h:2672 [inline] (P)
 atomic64_add include/linux/atomic/atomic-instrumented.h:1683 [inline] (P)
 memcg_rstat_updated+0x19c/0x288 mm/memcontrol.c:595 (P)
 __count_memcg_events+0x260/0x680 mm/memcontrol.c:857
 count_memcg_events include/linux/memcontrol.h:969 [inline]
 count_memcg_events_mm include/linux/memcontrol.h:993 [inline]
 count_memcg_event_mm+0x160/0x2c8 include/linux/memcontrol.h:1000
 mm_account_fault mm/memory.c:6066 [inline]
 handle_mm_fault+0x1128/0x188c mm/memory.c:6227
 do_page_fault+0x404/0x10a8 arch/arm64/mm/fault.c:647
 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:919
 el0_da+0x60/0x178 arch/arm64/kernel/entry-common.c:604
 el0t_64_sync_handler+0xcc/0x108 arch/arm64/kernel/entry-common.c:765
 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600
Code: 91198115 aa1503e0 97fe4e94 d503201f (f83302bf) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	91198115 	add	x21, x8, #0x660
   4:	aa1503e0 	mov	x0, x21
   8:	97fe4e94 	bl	0xfffffffffff93a58
   c:	d503201f 	nop
* 10:	f83302bf 	stadd	x19, [x21] <-- trapping instruction