On 2024-07-02 15:26:38 [-0700], Andrii Nakryiko wrote: > > Why not open-code part of it and then have a function for checking length limit: > > if (!filter) > return <error>; > if (!bpf_check_prog_len(flen)) > return <another-error>; > > It's all local to a single file, no big deal adding a few if > (!pointer) checks explicitly, IMO. "basics" is super generic and not a > great name either way. Okay. Sebastian