syzbot


panic: cgroupfs: pids controller attempted to remove pending charge for Task ADDR, but task didn't have pending charges,

Status: closed as invalid on 2022/10/20 22:26
First crash: 789d, last: 789d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: cgroupfs: pids controller attempted to remove pending charge for Task ADDR, but task didn't have pending charges, (2) 1 757d 757d 14/26 fixed on 2022/12/01 12:27

Sample crash report:
panic: cgroupfs: pids controller attempted to remove pending charge for Task 0xc006064000, but task didn't have pending charges, path: "/"

goroutine 2162349 [running]:
panic({0x1045de0, 0xc00986c780})
	GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc0015a0df8 sp=0xc0015a0d38 pc=0x4358b7
gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*pidsController).Charge(0xc00332bd40, 0xc006064000, 0x12395c4?, 0x4?, 0xffffffffffffffff)
	pkg/sentry/fsimpl/cgroupfs/pids.go:212 +0x5e5 fp=0xc0015a0ef8 sp=0xc0015a0df8 pc=0xd99605
gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupInode).Charge(0xc005848c00, 0x42fab0?, 0x0?, {0x12395c4, 0x4}, 0xc0015a1000?, 0xc006c55860?)
	pkg/sentry/fsimpl/cgroupfs/base.go:322 +0x10d fp=0xc0015a0f80 sp=0xc0015a0ef8 pc=0xd8d66d
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).chargeLocked(0x4?, 0x46752e?, {0x12395c4, 0x4}, 0x4389a0?, 0xc008783380?)
	pkg/sentry/kernel/task_cgroup.go:236 +0xd9 fp=0xc0015a1060 sp=0xc0015a0f80 pc=0x9d71f9
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).ChargeForOnHierarchy(0xc0076eea80, 0xc00004e000?, 0x28, {0x12395c4, 0x4}, 0xc0015a11a0?, 0xc0042b4660?)
	pkg/sentry/kernel/task_cgroup.go:257 +0x19a fp=0xc0015a1148 sp=0xc0015a1060 pc=0x9d763a
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func1()
	pkg/sentry/kernel/task_start.go:203 +0x48 fp=0xc0015a11a0 sp=0xc0015a1148 pc=0x9f6428
gvisor.dev/gvisor/pkg/cleanup.clean({0xc0017a2298, 0x9fdccf?, 0xc0006d6230?})
	pkg/cleanup/cleanup.go:59 +0x42 fp=0xc0015a11b8 sp=0xc0015a11a0 pc=0x8d7142
gvisor.dev/gvisor/pkg/cleanup.(*Cleanup).Clean(0xc0015a1490)
	pkg/cleanup/cleanup.go:44 +0x36 fp=0xc0015a11e0 sp=0xc0015a11b8 pc=0x8d6f76
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask.func2()
	pkg/sentry/kernel/task_start.go:180 +0x26 fp=0xc0015a11f8 sp=0xc0015a11e0 pc=0x9f64c6
runtime.deferreturn()
	GOROOT/src/runtime/panic.go:436 +0x33 fp=0xc0015a1238 sp=0xc0015a11f8 pc=0x4349d3
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).newTask(0xc0006d6230, {0x1495ff0?, 0xc0076eea80?}, 0xc0015a17d8)
	pkg/sentry/kernel/task_start.go:221 +0x95b fp=0xc0015a14b8 sp=0xc0015a1238 pc=0x9f5c3b
gvisor.dev/gvisor/pkg/sentry/kernel.(*TaskSet).NewTask(0xc0076eea80?, {0x1495ff0, 0xc0076eea80}, 0xc0015a17d8)
	pkg/sentry/kernel/task_start.go:127 +0xb5 fp=0xc0015a1530 sp=0xc0015a14b8 pc=0x9f50f5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Clone(0xc0076eea80, 0xc0015a18b0)
	pkg/sentry/kernel/task_clone.go:224 +0x124f fp=0xc0015a18a0 sp=0xc0015a1530 pc=0x9d8a8f
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.clone(0x101000101010101?, 0x10001?, 0x0?, 0x0?, 0x0?, 0x0?)
	pkg/sentry/syscalls/linux/sys_thread.go:208 +0x8d fp=0xc0015a1918 sp=0xc0015a18a0 pc=0xaa156d
gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Clone(0xc0076eea80?, {{0x3d0f00}, {0x7f55ff8802f0}, {0x7f55ff8809d0}, {0x7f55ff8809d0}, {0x7f55ff880700}, {0x7f55ff880700}})
	pkg/sentry/syscalls/linux/sys_clone_amd64.go:36 +0x6e fp=0xc0015a1958 sp=0xc0015a1918 pc=0xa681ae
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0076eea80, 0x38, {{0x3d0f00}, {0x7f55ff8802f0}, {0x7f55ff8809d0}, {0x7f55ff8809d0}, {0x7f55ff880700}, {0x7f55ff880700}})
	pkg/sentry/kernel/task_syscall.go:142 +0x80b fp=0xc0015a1c98 sp=0xc0015a1958 pc=0x9f884b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0076eea80, 0xc0003395ac?, {{0x3d0f00}, {0x7f55ff8802f0}, {0x7f55ff8809d0}, {0x7f55ff8809d0}, {0x7f55ff880700}, {0x7f55ff880700}})
	pkg/sentry/kernel/task_syscall.go:322 +0x54 fp=0xc0015a1cf8 sp=0xc0015a1c98 pc=0x9f9e34
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0006a2040?, 0xc0015a1e40?, {{0x3d0f00}, {0x7f55ff8802f0}, {0x7f55ff8809d0}, {0x7f55ff8809d0}, {0x7f55ff880700}, {0x7f55ff880700}})
	pkg/sentry/kernel/task_syscall.go:282 +0x85 fp=0xc0015a1d58 sp=0xc0015a1cf8 pc=0x9f9a25
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0070226e0?)
	pkg/sentry/kernel/task_syscall.go:257 +0x3ac fp=0xc0015a1e50 sp=0xc0015a1d58 pc=0x9f96ec
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc005ac0400?, 0xc0076eea80)
	pkg/sentry/kernel/task_run.go:253 +0x1125 fp=0xc0015a1f60 sp=0xc0015a1e50 pc=0x9eb465
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0076eea80, 0xe9a5)
	pkg/sentry/kernel/task_run.go:94 +0x1ec fp=0xc0015a1fc0 sp=0xc0015a1f60 pc=0x9e9cac
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:380 +0x2a fp=0xc0015a1fe0 sp=0xc0015a1fc0 pc=0x9f6cea
runtime.goexit()
	src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0015a1fe8 sp=0xc0015a1fe0 pc=0x4695c1
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:380 +0x105

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/29 15:04 gvisor 2928c192390c d9da3ac6 .config console log report info ci-gvisor-kvm-cover panic: cgroupfs: pids controller attempted to remove pending charge for Task ADDR, but task didn't have pending charges,
* Struck through repros no longer work on HEAD.