All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] swiotlb: rework fix info leak with DMA_FROM_DEVICE
@ 2022-03-04 13:58 ` Halil Pasic
  0 siblings, 0 replies; 22+ messages in thread
From: Halil Pasic @ 2022-03-04 13:58 UTC (permalink / raw)
  To: Christoph Hellwig, Marek Szyprowski, Robin Murphy
  Cc: Halil Pasic, Doug Gilbert, James E.J. Bottomley,
	Martin K. Petersen, Christian Borntraeger, Anshuman Khandual,
	Thiago Jung Bauermann, Tom Lendacky, Michael S. Tsirkin,
	Linus Torvalds, stable, iommu, linux-doc

Unfortunately, we ended up with the wrong version of the patch "fix info
leak with DMA_FROM_DEVICE" getting merged. We got v4 merged, but the
version we want is v7 with some minor tweaks which were supposed to be
applied by Christoph (swiotlb maintainer). After pointing this out, I
was asked by Christoph to create an incremental fix. 

IMHO the cleanest way to do this is a reverting the incorrect version
of the patch and applying the correct one. I hope that qualifies as
an incremental fix.

The main differences between what we got and what we need are:
* swiotlb_sync_single_for_device is also required to do an extra bounce
* It was decided that we want to defer introducing DMA_ATTR_OVERWRITE,
  until we have exploiters 
* And anyway DMA_ATTR_OVERWRITE must take precedence over
  DMA_ATTR_SKIP_CPU_SYNC, so the v4 implementation of DMA_ATTR_OVERWRITE
  ain't even orrect.


Halil Pasic (2):
  Revert "swiotlb: fix info leak with DMA_FROM_DEVICE"
  swiotlb: fix info leak with DMA_FROM_DEVICE

 Documentation/core-api/dma-attributes.rst |  8 --------
 include/linux/dma-mapping.h               |  8 --------
 kernel/dma/swiotlb.c                      | 23 +++++++++++++++--------
 3 files changed, 15 insertions(+), 24 deletions(-)


base-commit: 38f80f42147ff658aff218edb0a88c37e58bf44f
-- 
2.32.0


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-03-05  0:43 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04 13:58 [PATCH 0/2] swiotlb: rework fix info leak with DMA_FROM_DEVICE Halil Pasic
2022-03-04 13:58 ` Halil Pasic
2022-03-04 13:58 ` [PATCH 1/2] Revert "swiotlb: fix info leak with DMA_FROM_DEVICE" Halil Pasic
2022-03-04 13:58   ` Halil Pasic
2022-03-04 14:28   ` Greg KH
2022-03-04 14:28     ` Greg KH
2022-03-04 16:34     ` Halil Pasic
2022-03-04 16:34       ` Halil Pasic
2022-03-04 16:55       ` Greg KH
2022-03-04 16:55         ` Greg KH
2022-03-05  0:42         ` Halil Pasic
2022-03-05  0:42           ` Halil Pasic
2022-03-04 13:58 ` [PATCH 2/2] swiotlb: fix info leak with DMA_FROM_DEVICE Halil Pasic
2022-03-04 13:58   ` Halil Pasic
2022-03-04 14:28   ` Greg KH
2022-03-04 14:28     ` Greg KH
2022-03-04 15:53 ` [PATCH 0/2] swiotlb: rework " Christoph Hellwig
2022-03-04 15:53   ` Christoph Hellwig
2022-03-04 16:29   ` Halil Pasic
2022-03-04 16:29     ` Halil Pasic
2022-03-04 18:49     ` Matthew Wilcox
2022-03-04 18:49       ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.