Re: [PATCH] tpm: factor out the user space mm from tpm_vtpm_set_locality()

From: Stefan Berger
Date: Wed May 31 2023 - 11:21:30 EST

On 5/30/23 16:50, Jarkko Sakkinen wrote:
From: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxx>

vtpm_proxy_fops_set_locality() causes kernel buffers to be passed to
copy_from_user() and copy_to_user().

And what is the problem with that? Is it not working?

Factor out the crippled code away with help of an internal API for
managing struct proxy_dev instances.

What is crippled code?