syzbot


general protection fault in refill_obj_stock

Status: closed as dup on 2025/05/27 17:42
Subsystems: mm cgroups
[Documentation on labels]
Reported-by: syzbot+5dd4e428fa723938e6fd@syzkaller.appspotmail.com
First crash: 123d, last: 5d12h
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) cgroups mm 8 16 13d 50d
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: 14682 Comm: rm Not tainted 6.16.0-rc5-syzkaller-00025-gd006330be3f7 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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:770 [inline]
RIP: 0010:refill_obj_stock+0x18f/0x6d0 mm/memcontrol.c:3045
Code: c7 c7 80 4e 5c 8e e8 00 0a 6d ff e8 0b 9d 5c 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:ffffc90003a8f928 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 00000000ffff0000 RCX: 00000000c7e20b87
RDX: 000000001fffe000 RSI: ffffffff8c158ee0 RDI: ffffffff8df40da8
RBP: 0000000000000078 R08: 7689e6c6a7c9c24e R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff93d25740
R13: ffff88813fffb400 R14: ffff8880b853b740 R15: ffff8880b853b740
FS:  0000000000000000(0000) GS:ffff888124816000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5050aa6e9c CR3: 0000000040ff0000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __memcg_slab_free_hook+0x2db/0x5d0 mm/memcontrol.c:3219
 memcg_slab_free_hook mm/slub.c:2206 [inline]
 slab_free mm/slub.c:4640 [inline]
 kmem_cache_free+0x37e/0x4d0 mm/slub.c:4745
 anon_vma_chain_free mm/rmap.c:147 [inline]
 unlink_anon_vmas+0x458/0x820 mm/rmap.c:447
 free_pgtables+0x373/0xcb0 mm/memory.c:402
 exit_mmap+0x3fb/0xb90 mm/mmap.c:1295
 __mmput+0x12a/0x410 kernel/fork.c:1121
 mmput+0x62/0x70 kernel/fork.c:1144
 exit_mm kernel/exit.c:581 [inline]
 do_exit+0x7c4/0x2bd0 kernel/exit.c:952
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1105
 __do_sys_exit_group kernel/exit.c:1116 [inline]
 __se_sys_exit_group kernel/exit.c:1114 [inline]
 __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1114
 x64_sys_call+0x1530/0x1730 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:0x7f5050c056c5
Code: Unable to access opcode bytes at 0x7f5050c0569b.
RSP: 002b:00007ffefdb75da8 EFLAGS: 00000206 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f5050d06fe8 RCX: 00007f5050c056c5
RDX: 00000000000000e7 RSI: ffffffffffffff88 RDI: 0000000000000000
RBP: 0000000000000001 R08: 00007ffefdb75d38 R09: 0000000000000000
R10: 00007ffefdb75bd0 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5050d05680 R15: 00007f5050d07000
 </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:770 [inline]
RIP: 0010:refill_obj_stock+0x18f/0x6d0 mm/memcontrol.c:3045
Code: c7 c7 80 4e 5c 8e e8 00 0a 6d ff e8 0b 9d 5c 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:ffffc90003a8f928 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 00000000ffff0000 RCX: 00000000c7e20b87
RDX: 000000001fffe000 RSI: ffffffff8c158ee0 RDI: ffffffff8df40da8
RBP: 0000000000000078 R08: 7689e6c6a7c9c24e R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff93d25740
R13: ffff88813fffb400 R14: ffff8880b853b740 R15: ffff8880b853b740
FS:  0000000000000000(0000) GS:ffff888124816000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5050aa6e9c CR3: 0000000040ff0000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	c7 c7 80 4e 5c 8e    	mov    $0x8e5c4e80,%edi
   6:	e8 00 0a 6d ff       	call   0xff6d0a0b
   b:	e8 0b 9d 5c 09       	call   0x95c9d1b
  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 (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
* Struck through repros no longer work on HEAD.