Thread (140 messages) 140 messages, 21 authors, 2018-12-04

Re: [PATCH 06/17] prmem: test cases for memory protection

From: Dave Hansen <hidden>
Date: 2018-10-25 16:43:55
Also in: linux-integrity, linux-mm, lkml

+static bool is_address_protected(void *p)
+{
+	struct page *page;
+	struct vmap_area *area;
+
+	if (unlikely(!is_vmalloc_addr(p)))
+		return false;
+	page = vmalloc_to_page(p);
+	if (unlikely(!page))
+		return false;
+	wmb(); /* Flush changes to the page table - is it needed? */
No.

The rest of this is just pretty verbose and seems to have been very
heavily copied and pasted.  I guess that's OK for test code, though.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help