syzbot


BUG: unable to handle kernel paging request in memcg_rstat_updated

Status: upstream: reported on 2024/12/09 11:20
Subsystems: cgroups mm
[Documentation on labels]
Reported-by: syzbot+c62387c3885ca12e1255@syzkaller.appspotmail.com
First crash: 21d, last: 21d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [cgroups?] [mm?] BUG: unable to handle kernel paging request in memcg_rstat_updated 0 (1) 2024/12/09 11:20

Sample crash report:
Unable to handle kernel paging request at virtual address f2c1800000000000
KASAN: maybe wild-memory-access in range [0x9610000000000000-0x9610000000000007]
Mem abort info:
  ESR = 0x0000000096000004
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x04: level 0 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
  CM = 0, WnR = 0, TnD = 0, TagAccess = 0
  GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[f2c1800000000000] address between user and kernel address ranges
Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 UID: 0 PID: 8456 Comm: syz.4.287 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : memcg_rstat_updated+0xe4/0x288 mm/memcontrol.c:575
lr : memcg_rstat_updated+0x7c/0x288 mm/memcontrol.c:573
sp : ffff80009c567900
x29: ffff80009c567900 x28: 12c2000000000000 x27: ffff80008f8cd000
x26: 00000000000006d8 x25: 1ffff00011f19abd x24: 0000000000000001
x23: dfff800000000000 x22: fffffdffbf72c000 x21: 0000000000000001
x20: 9610000000000000 x19: 0000000000000001 x18: ffff0000f46d2240
x17: 0000000000000000 x16: ffff800083161638 x15: 0000000000000001
x14: 1fffe000366c41c1 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000080000 x10: 0000000000ff0100 x9 : 0000000000000003
x8 : 0000000000000000 x7 : ffff80008051ba0c x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff80008036f2b8
x2 : 0000000000000001 x1 : 0000000000000080 x0 : 0000000000000000
Call trace:
 memcg_rstat_updated+0xe4/0x288 mm/memcontrol.c:575 (P)
 memcg_rstat_updated+0x7c/0x288 mm/memcontrol.c:573 (L)
 __mod_memcg_lruvec_state+0x370/0x57c mm/memcontrol.c:746
 __mod_objcg_mlstate+0x160/0x23c mm/memcontrol.c:2405
 drain_obj_stock+0x178/0x350 mm/memcontrol.c:2811
 refill_obj_stock+0xe8/0x2d8 mm/memcontrol.c:2860
 obj_cgroup_charge+0x17c/0x238 mm/memcontrol.c:2920
 __memcg_slab_post_alloc_hook+0x238/0x7fc mm/memcontrol.c:2979
 memcg_slab_post_alloc_hook mm/slub.c:2156 [inline]
 slab_post_alloc_hook mm/slub.c:4095 [inline]
 slab_alloc_node mm/slub.c:4134 [inline]
 __do_kmalloc_node mm/slub.c:4263 [inline]
 __kmalloc_node_noprof+0x368/0x4dc mm/slub.c:4270
 __kvmalloc_node_noprof+0x88/0x24c mm/util.c:658
 groups_alloc kernel/groups.c:18 [inline]
 __do_sys_setgroups kernel/groups.c:208 [inline]
 __se_sys_setgroups kernel/groups.c:198 [inline]
 __arm64_sys_setgroups+0x130/0x5a0 kernel/groups.c:198
 __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
Code: b4000c14 d343fe9c 12000a89 11000d29 (38f76b88) 
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	b4000c14 	cbz	x20, 0x180
   4:	d343fe9c 	lsr	x28, x20, #3
   8:	12000a89 	and	w9, w20, #0x7
   c:	11000d29 	add	w9, w9, #0x3
* 10:	38f76b88 	ldrsb	w8, [x28, x23] <-- trapping instruction

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/05 07:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7b1d1d4cfac0 29f61fce .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in memcg_rstat_updated
* Struck through repros no longer work on HEAD.