[syzbot] [cgroups?] [mm?] BUG: unable to handle kernel paging request in memcg_rstat_updated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

syzbot found the following issue on:

HEAD commit:    7b1d1d4cfac0 Merge remote-tracking branch 'iommu/arm/smmu'..
git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
console output: https://syzkaller.appspot.com/x/log.txt?x=17642de8580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=9bc44a6de1ceb5d6
dashboard link: https://syzkaller.appspot.com/bug?extid=c62387c3885ca12e1255
compiler:       Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4d4a0162c7c3/disk-7b1d1d4c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a8c47a4be472/vmlinux-7b1d1d4c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0e173b91f83e/Image-7b1d1d4c.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c62387c3885ca12e1255@xxxxxxxxxxxxxxxxxxxxxxxxx

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@xxxxxxxxxxxxxxxx.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux