[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8b4fbfec-8315-426c-8c7b-9280726558cc@linux.dev>
Date: Thu, 24 Oct 2024 09:19:47 -0700
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: Tejun Heo <tj@...nel.org>
Cc: bpf@...r.kernel.org, David Vernet <void@...ifault.com>,
Martin KaFai Lau <martin.lau@...nel.org>, Alexei Starovoitov
<ast@...nel.org>, kernel-team@...a.com, sched-ext@...a.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH sched_ext/for-6.13 2/2] sched_ext: Replace
set_arg_maybe_null() with __nullable CFI stub tags
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@...nel.org>
Powered by blists - more mailing lists