Re: [PATCH bpf-next v3 0/2] bpf: require an owned cpumask for bpf_cpumask_populate()
"Kumar Kartikeya Dwivedi" <[email protected]>
| Newsgroups | dev.linux.lists.sched-ext,org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On Thu Jul 9, 2026 at 8:27 PM CEST, Nicholas Dudar wrote: > bpf_cpumask_populate() writes its destination with bitmap_copy() but > types it as struct cpumask *, so the verifier accepts a borrowed, > read-only cpumask (for example from scx_bpf_get_online_cpumask()) as a > writable destination. Fix it and add a selftest for coverage. > +To Emil Hi sched-ext folks, this fix looks good to me and on cursory look, apart from potential signature change which may require some adjustment to casts, it should not break existing intendended usage. Could others confirm this? Thanks > [...]