[PATCH RESEND v2 10/30] genirq/proc: let procfs copy in the affinity masks

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 11:57:48 PST 2026


> Implement ->proc_write_buf() for smp_affinity, smp_affinity_list and
> default_smp_affinity so procfs copies in what is written before it pins
> the entry, and parse the masks from that copy. A list of CPUs can be
> longer than a page on large machines, so the files take as much as
> memdup_user_nul() could copy in before. Anything larger fails with
> -EINVAL instead of -ENOMEM.
> 
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-fs-v2-0-319e0f9a8aae@kernel.org?part=10




More information about the kexec mailing list