Re: [PATCH v4] crypto: rsassa-pkcs1 - Avoid cacheline sharing with underlying driver

Changwei Zou <[email protected]> Thu, 30 Jul 2026 22:06:14 +1000
Newsgroups org.kernel.vger.linux-crypto,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hi Lukas,

I will move the new declaration up below the one for child_req.

Since out_buf is incremented later in the function rsassa_pkcs1_verify(),
key_buf was introduced to preserve the original address returned by kmalloc().

I tried the following approach, but it would require replacing all existing
occurrences of out_buf with ptr.

	u8 *out_buf __free(kfree_sensitive) = NULL;
	
	u8 *ptr;

	ptr = out_buf;

Could you please give me some advice on this?
Thanks a lot.

Kind regards,
Changwei