Re: [PATCH 2/6] sched_ext: Make scx_bpf_cid_node() a benign lookup for invalid cids
From: Tejun Heo
Date: Thu Nov 12 2026 - 14:04:20 EST
Hello, Tao.
On Thu, Nov 12, 2026 at 09:09:30PM +0800, Tao Cui wrote:
> Bounds-check @cid in the kfunc instead, keeping the documented benign
> return and leaving the aborting validation to the paths whose contracts
> call for it.
If anything, it's the doc that needs updating. The other cid kfuncs trigger
an error on an invalid cid and this one should stay the same. Maybe update
the kerneldoc to say so instead?
Thanks.
--
tejun