Re: [PATCH sched_ext/for-6.13 2/2] sched_ext: Replace set_arg_maybe_null() with __nullable CFI stub tags

From: Martin KaFai Lau
Date: Thu Oct 24 2024 - 12:20:12 EST


On 10/23/24 5:55 PM, Tejun Heo wrote:
ops.dispatch() and ops.yield() may be fed a NULL task_struct pointer.
set_arg_maybe_null() is used to tell the verifier that they should be NULL
checked before being dereferenced. BPF now has an a lot prettier way to
express this - tagging arguments in CFI stubs with __nullable. Replace
set_arg_maybe_null() with __nullable CFI stub tags.

Acked-by: Martin KaFai Lau <martin.lau@xxxxxxxxxx>