Re: [V4] cgroup/cpuset: Prevent UAF in proc_cpuset_show()
From: Markus Elfring
Date: Sun Jun 30 2024 - 14:01:57 EST
>> 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.
I find such feedback interesting somehow.
> Neither makes meaningful difference here.
Would you like to support making the affected source code safer and a bit more succinct?
https://elixir.bootlin.com/linux/v6.10-rc5/source/kernel/cgroup/cpuset.c#L5034
Regards,
Markus