On Tue, Nov 17, 2026 at 02:35:04PM +0200, Jarkko Sakkinen wrote:
> On Tue, Nov 17, 2026 at 12:59:25PM +0200, Jarkko Sakkinen wrote:
> >  ...
> 
> I think this would be more feasible:
> 
>         if (current->flags & PF_IO_WORKER)
>                 return -EIO;
> 
>         if ((current->flags & PF_KTHREAD) && current->io_uring)
>                 return -EIO;
> 
> I.e., block io_uring entirely.

And kselftest can then be extended to address this case (as a
separate patch) making this two-patch patch set.

Short summary would be e.g. (or use your imagination):

"tpm: Do not allow io_uring for /dev/tpm{,rm0}"

Br, Jarkko

Reply via email to