linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] dma-mapping: Add vmap checks to dma_map_single()
@ 2019-10-29 21:34 Kees Cook
  2019-10-29 21:34 ` [PATCH v4 1/2] " Kees Cook
  2019-10-29 21:34 ` [PATCH v4 2/2] usb: core: Remove redundant vmap checks Kees Cook
  0 siblings, 2 replies; 11+ messages in thread
From: Kees Cook @ 2019-10-29 21:34 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Kees Cook, Robin Murphy, Laura Abbott, Marek Szyprowski,
	Jesper Dangaard Brouer, Allison Randal, Greg Kroah-Hartman,
	Thomas Gleixner, Stephen Boyd, Dan Carpenter,
	Semmle Security Reports, iommu, linux-kernel

v4: use dev_WARN_ONCE() and improve report string (gregkh, robin)
v3: https://lore.kernel.org/lkml/20191010222829.21940-1-keescook@chromium.org
v2: https://lore.kernel.org/lkml/201910041420.F6E55D29A@keescook
v1: https://lore.kernel.org/lkml/201910021341.7819A660@keescook

Duplicating patch 1 commit log:

As we've seen from USB and other areas[1], we need to always do runtime
checks for DMA operating on memory regions that might be remapped. This
adds vmap checks (similar to those already in USB but missing in other
places) into dma_map_single() so all callers benefit from the checking.

[1] https://git.kernel.org/linus/3840c5b78803b2b6cc1ff820100a74a092c40cbb

-Kees

Kees Cook (2):
  dma-mapping: Add vmap checks to dma_map_single()
  usb: core: Remove redundant vmap checks

 drivers/usb/core/hcd.c      | 8 +-------
 include/linux/dma-mapping.h | 6 ++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2019-10-31 17:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-29 21:34 [PATCH v4 0/2] dma-mapping: Add vmap checks to dma_map_single() Kees Cook
2019-10-29 21:34 ` [PATCH v4 1/2] " Kees Cook
2019-10-30  9:18   ` Greg Kroah-Hartman
2019-10-30 18:09     ` Christoph Hellwig
2019-10-30 18:26       ` Kees Cook
2019-10-30 19:26       ` Greg Kroah-Hartman
2019-10-30 19:45         ` Christoph Hellwig
2019-10-31  6:51           ` Greg Kroah-Hartman
2019-10-29 21:34 ` [PATCH v4 2/2] usb: core: Remove redundant vmap checks Kees Cook
2019-10-31  6:50   ` Greg Kroah-Hartman
2019-10-31 17:13   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).