Re: [PATCH 4.19 1/3] x86/resctrl: Fix use-after-free when deleting resource groups

From: Sasha Levin
Date: Sun Feb 02 2020 - 16:56:47 EST


On Sun, Feb 02, 2020 at 06:02:17AM +0800, Xiaochen Shen wrote:
commit b8511ccc75c033f6d54188ea4df7bf1e85778740 upstream.

A resource group (rdtgrp) contains a reference count (rdtgrp->waitcount)
that indicates how many waiters expect this rdtgrp to exist. Waiters
could be waiting on rdtgroup_mutex or some work sitting on a task's
workqueue for when the task returns from kernel mode or exits.

I've queued up the 4.19 and 4.14 backports, thanks!

--
Thanks,
Sasha