Thread (77 messages) 77 messages, 13 authors, 2020-04-20

Re: [kernel-hardening] [PATCH 09/38] usercopy: Mark kmalloc caches as usercopy caches

From: Christopher Lameter <hidden>
Date: 2020-01-29 16:43:36
Also in: linux-arch, linux-fsdevel, linux-mm, linux-xfs, lkml

On Tue, 28 Jan 2020, Kees Cook wrote:
quoted
On the other hand not marking the DMA caches still seems questionable.
My understanding is that exposing DMA memory to userspace copies can
lead to unexpected results, especially for misbehaving hardware, so I'm
not convinced this is a generically bad hardening choice.
"DMA" memory (and thus DMA caches) have nothing to do with DMA. Its a
legacy term. "DMA Memory" is memory limited to a certain
physical address boundary (old restrictions on certain devices only
supporting a limited number of address bits).

DMA can be done to NORMAL memory as well.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help