Re: [PATCH AUTOSEL 4.19 5/9] sched_getaffinity: don't assume 'cpumask_size()' is fully initialized

From: Sasha Levin
Date: Thu Mar 23 2023 - 08:33:34 EST


On Wed, Mar 22, 2023 at 02:08:54PM -0700, Linus Torvalds wrote:
On Wed, Mar 22, 2023 at 1:09 PM Sasha Levin <sashal@xxxxxxxxxx> wrote:

The getaffinity() system call uses 'cpumask_size()' to decide how big
the CPU mask is - so far so good. It is indeed the allocation size of a
cpumask. [...]

Same comment as about commit 8ca09d5fa354 - this is a fine cleanup /
fix and might be worth backporting just for that, but it didn't really
turn into an actual visible bug until commit 596ff4a09b89.

Ack, I'll keep it in anyway. Thanks!

--
Thanks,
Sasha