Thread (72 messages) 72 messages, 7 authors, 17h ago

Re: [PATCH v7 11/22] dma-pool: track decrypted atomic pools and select them via attrs

From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2026-07-14 12:25:15
Also in: linux-arm-kernel, linux-coco, linux-iommu, linux-s390, lkml

On Tue, Jul 14, 2026 at 09:32:27AM +0530, Aneesh Kumar K.V wrote:
If we want to warn about such failures, we should add the warning
consistently across the code. We may also want to handle decrypt
failures by encrypting the page again to avoid leaking it.

I will work on that as a tree-wide change in a separate patch.
IMHO the WARN should be inside set_memory_encrypted(), and maybe it
should be a BUG_ON...

"free" functions shouldn't fail, and returning the memory back to
normal is a "free" operation.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help