Re: [PATCH] HID: bpf: Sync KF_SLEEPABLE flags in hid_bpf_syscall_kfuncs set

From: Zhao mengmeng

Date: Fri Apr 24 2026 - 11:52:30 EST


On April 24, 2026 10:54:45 PM GMT+08:00, Benjamin Tissoires <bentiss@xxxxxxxxxx> wrote:
>On Apr 24 2026, Alexei Starovoitov wrote:
>> On Fri Apr 24, 2026 at 3:22 AM PDT, Zhao Mengmeng wrote:
>> > From: Zhao Mengmeng <zhaomengmeng@xxxxxxxxxx>
>> >
>> > Pahole intersects flags across BTF_ID_FLAGS() occurrences, so omitting
>> > KF_SLEEPABLE may drops the flags globally. sync this flags in
>> > hid_bpf_syscall_kfuncs set to enforce consistency and safety.
>>
>> Makes no sense.
>> These kfuncs are not sleepable.
>
>I'm not sure I parse correctly the reason for the dropping of the flags
>by pahole, but all of those kfuncs are actually sleepable, except for
>hid_bpf_input_report, which is *not* sleepable.
>
>Cheers,
>Benjamin


Hi Benjamin,
Sorry for the noise. I misunderstood the difference between KF_SLEEPABLE
and other KF_XX flags. The initial reason to send the patch is l found a
function signature change after a kfunc in two kfuncs sets, one with KF_IMPLICIT_ARGS,
while the other one without it. So I naively think that all kfuncs should
keep consistant declaration. Alexei is right, l will do more background work
before sending patches next time.