> diff --git a/kernel/bpf/crypto.c b/kernel/bpf/crypto.c
> index bf14856ab5..b763a6c5cd 100644
> --- a/kernel/bpf/crypto.c
> +++ b/kernel/bpf/crypto.c

[ ... ]

> +/**
> + * bpf_sig_keysize() - Get the key size for signature context
> + * @ctx:     The crypto context being used. The ctx must be a trusted 
> pointer.
> + *
> + * Return: The key size in bytes, or negative error code on failure.
> + */
                         ^^^^^^^^

The underlying crypto_sig_keysize() function in include/crypto/sig.h returns
the key size in bits, not bytes:

    /**
     * crypto_sig_keysize() - Get key size
     *
     * Function returns the key size in bits.

Should this documentation say "in bits" instead of "in bytes"?


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/21595105586

AI-authorship-score: low
AI-authorship-explanation: The code follows established kernel patterns and the 
documentation error is equally likely a human oversight.
issues-found: 1
issue-severity-score: low
issue-severity-explanation: Documentation comment states wrong units (bytes 
instead of bits) for bpf_sig_keysize return value, which could mislead BPF 
program developers.

Reply via email to