[PATCH v3 2/2] KEYS: asymmetric: Copy sig and digest in public_key_verify_signature()

Eric Biggers ebiggers at kernel.org
Wed Dec 21 20:51:00 UTC 2022


On Wed, Dec 21, 2022 at 11:37:10AM +0100, Roberto Sassu wrote:
> +	sg_init_table(&src_sg, 1);
> +	sg_set_buf(&src_sg, buf, sig->s_size + sig->digest_size);

The above two function calls should be replaced with sg_init_one().

- Eric



More information about the Linux-security-module-archive mailing list