syzbot


general protection fault in refill_obj_stock

Status: closed as dup on 2025/05/27 17:42
Subsystems: cgroups mm
[Documentation on labels]
Reported-by: syzbot+5dd4e428fa723938e6fd@syzkaller.appspotmail.com
First crash: 171d, last: 16d
Duplicate of
Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported
BUG: unable to handle kernel paging request in percpu_ref_get_many (2) mm cgroups 23 69 3d02h 98d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] [cgroups?] general protection fault in refill_obj_stock 1 (2) 2025/05/27 17:42

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc001fffe000: 0000 [#1] SMP KASAN NOPTI
KASAN: probably user-memory-access in range [0x00000000ffff0000-0x00000000ffff0007]
CPU: 1 UID: 0 PID: 10174 Comm: cmp Not tainted 6.17.0-rc1-syzkaller-00111-g24ea63ea3877 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__ref_is_percpu include/linux/percpu-refcount.h:174 [inline]
RIP: 0010:percpu_ref_get_many include/linux/percpu-refcount.h:204 [inline]
RIP: 0010:percpu_ref_get include/linux/percpu-refcount.h:222 [inline]
RIP: 0010:obj_cgroup_get include/linux/memcontrol.h:772 [inline]
RIP: 0010:refill_obj_stock+0x18f/0x6d0 mm/memcontrol.c:3042
Code: c7 c7 e0 11 5c 8e e8 90 22 6d ff e8 0b bb 68 09 5a 85 c0 0f 85 7d 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 db 04 00 00 48 8b 03 a8 03 0f 85 00 04 00 00 65
RSP: 0018:ffffc9001ce27918 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 00000000ffff0000 RCX: 00000000cc79aeeb
RDX: 000000001fffe000 RSI: ffffffff8c162500 RDI: ffffffff8df5de68
RBP: 0000000000000078 R08: 76bf9b6726b6ef21 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000000 R12: ffffffff93d7f780
R13: ffff88813fffb400 R14: ffff8880b853b780 R15: ffff8880b853b780
FS:  0000000000000000(0000) GS:ffff8881247bc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000003ec030 CR3: 0000000069916000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __memcg_slab_free_hook+0x2db/0x5d0 mm/memcontrol.c:3216
 memcg_slab_free_hook mm/slub.c:2242 [inline]
 slab_free mm/slub.c:4677 [inline]
 kmem_cache_free+0x37e/0x4d0 mm/slub.c:4782
 anon_vma_chain_free mm/rmap.c:147 [inline]
 unlink_anon_vmas+0x458/0x820 mm/rmap.c:447
 free_pgtables+0x212/0xc00 mm/memory.c:413
 exit_mmap+0x3fb/0xb90 mm/mmap.c:1291
 __mmput+0x12a/0x410 kernel/fork.c:1130
 mmput+0x62/0x70 kernel/fork.c:1152
 exit_mm kernel/exit.c:582 [inline]
 do_exit+0x7c7/0x2bf0 kernel/exit.c:949
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1102
 __do_sys_exit_group kernel/exit.c:1113 [inline]
 __se_sys_exit_group kernel/exit.c:1111 [inline]
 __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1111
 x64_sys_call+0x14fa/0x1720 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1e44f1d6c5
Code: Unable to access opcode bytes at 0x7f1e44f1d69b.
RSP: 002b:00007ffd8e5a8e68 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f1e4501efe8 RCX: 00007f1e44f1d6c5
RDX: 00000000000000e7 RSI: ffffffffffffff88 RDI: 0000000000000000
RBP: 0000000000000001 R08: 00007ffd8e5a8df8 R09: 0000000000000000
R10: 00007ffd8e5a8c90 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1e4501d680 R15: 00007f1e4501f000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__ref_is_percpu include/linux/percpu-refcount.h:174 [inline]
RIP: 0010:percpu_ref_get_many include/linux/percpu-refcount.h:204 [inline]
RIP: 0010:percpu_ref_get include/linux/percpu-refcount.h:222 [inline]
RIP: 0010:obj_cgroup_get include/linux/memcontrol.h:772 [inline]
RIP: 0010:refill_obj_stock+0x18f/0x6d0 mm/memcontrol.c:3042
Code: c7 c7 e0 11 5c 8e e8 90 22 6d ff e8 0b bb 68 09 5a 85 c0 0f 85 7d 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 db 04 00 00 48 8b 03 a8 03 0f 85 00 04 00 00 65
RSP: 0018:ffffc9001ce27918 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 00000000ffff0000 RCX: 00000000cc79aeeb
RDX: 000000001fffe000 RSI: ffffffff8c162500 RDI: ffffffff8df5de68
RBP: 0000000000000078 R08: 76bf9b6726b6ef21 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000000 R12: ffffffff93d7f780
R13: ffff88813fffb400 R14: ffff8880b853b780 R15: ffff8880b853b780
FS:  0000000000000000(0000) GS:ffff8881247bc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000003ec030 CR3: 0000000069916000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	c7 c7 e0 11 5c 8e    	mov    $0x8e5c11e0,%edi
   6:	e8 90 22 6d ff       	call   0xff6d229b
   b:	e8 0b bb 68 09       	call   0x968bb1b
  10:	5a                   	pop    %rdx
  11:	85 c0                	test   %eax,%eax
  13:	0f 85 7d 03 00 00    	jne    0x396
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 da             	mov    %rbx,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 db 04 00 00    	jne    0x50f
  34:	48 8b 03             	mov    (%rbx),%rax
  37:	a8 03                	test   $0x3,%al
  39:	0f 85 00 04 00 00    	jne    0x43f
  3f:	65                   	gs

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/15 05:21 upstream 24ea63ea3877 dcc075fb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in refill_obj_stock
2025/08/12 12:57 upstream 53e760d89498 c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in refill_obj_stock
2025/07/29 23:52 upstream ced1b9e0392d f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in refill_obj_stock
2025/07/09 03:46 upstream d006330be3f7 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in refill_obj_stock
2025/07/08 17:03 upstream d7b8f8e20813 abade794 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in refill_obj_stock
2025/05/27 13:36 upstream 914873bc7df9 874a1386 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in refill_obj_stock
2025/03/13 14:59 upstream b7f94fcf5546 44be8b44 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in refill_obj_stock
2025/05/16 00:42 upstream 088d13246a46 cfde8269 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in refill_obj_stock
2025/05/15 13:23 upstream 088d13246a46 d6b2ee52 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in refill_obj_stock
2025/05/12 10:06 upstream 82f2b0b97b36 77908e5f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in refill_obj_stock
2025/07/20 19:54 upstream f4a40a4282f4 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: use-after-free Read in refill_obj_stock
* Struck through repros no longer work on HEAD.