Re: [PATCH V4] cgroup/cpuset: Prevent UAF in proc_cpuset_show()

From: Tejun Heo
Date: Sun Jun 30 2024 - 13:03:52 EST


Hello,

On Sun, Jun 30, 2024 at 11:20:58AM +0200, Markus Elfring wrote:
> Under which circumstances would you become interested to apply statements
> like the following?
>
> * guard(rcu)();
> https://elixir.bootlin.com/linux/v6.10-rc5/source/include/linux/rcupdate.h#L1093
>
> * guard(spinlock_irq)(&css_set_lock);
> https://elixir.bootlin.com/linux/v6.10-rc5/source/include/linux/spinlock.h#L567

I don't really care either way. Neither makes meaningful difference here.

Thanks.

--
tejun