mirror_ubuntu-kernels/Documentation/core-api
Linus Torvalds 244563bf2a Reinstate some of "swiotlb: rework "fix info leak with DMA_FROM_DEVICE""
BugLink: https://bugs.launchpad.net/bugs/1969110

commit 901c7280ca upstream.

Halil Pasic points out [1] that the full revert of that commit (revert
in bddac7c1e0), and that a partial revert that only reverts the
problematic case, but still keeps some of the cleanups is probably
better.  

And that partial revert [2] had already been verified by Oleksandr
Natalenko to also fix the issue, I had just missed that in the long
discussion.

So let's reinstate the cleanups from commit aa6f8dcbab ("swiotlb:
rework "fix info leak with DMA_FROM_DEVICE""), and effectively only
revert the part that caused problems.

Link: https://lore.kernel.org/all/20220328013731.017ae3e3.pasic@linux.ibm.com/ [1]
Link: https://lore.kernel.org/all/20220324055732.GB12078@lst.de/ [2]
Link: https://lore.kernel.org/all/4386660.LvFx2qVVIh@natalenko.name/ [3]
Suggested-by: Halil Pasic <pasic@linux.ibm.com>
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 7007c894631cf43041dcfa0da7142bbaa7eb673c)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2022-05-20 14:40:19 +02:00
..
irq
assoc_array.rst
boot-time-mm.rst docs/boot-time-mm: remove bootmem documentation 2018-10-31 08:54:16 -07:00
bus-virt-phys-mapping.rst docs: core-api: avoid using ReST :doc:foo markup 2021-06-17 13:24:37 -06:00
cachetlb.rst
circular-buffers.rst
cpu_hotplug.rst
debug-objects.rst
debugging-via-ohci1394.rst
dma-api-howto.rst
dma-api.rst
dma-attributes.rst
dma-isa-lpc.rst
errseq.rst
genalloc.rst
generic-radix-tree.rst
genericirq.rst
gfp_mask-from-fs-io.rst
idr.rst
index.rst
kernel-api.rst
kobject.rst
kref.rst
librs.rst
local_ops.rst
memory-allocation.rst
memory-hotplug.rst
mm-api.rst
packing.rst
padata.rst
pin_user_pages.rst
printk-basics.rst
printk-formats.rst docs: printk-formats: fix build warning 2021-07-25 14:34:32 -06:00
protection-keys.rst
rbtree.rst
refcount-vs-atomic.rst
symbol-namespaces.rst
this_cpu_ops.rst
timekeeping.rst
tracepoint.rst
unaligned-memory-access.rst
workqueue.rst
xarray.rst