[PATCH 3/6] struct page: add field for vm_struct

From
Kees Cook <hidden>
Date
2018-02-01 21:11:15
Also in
linux-mm, lkml
Reply to
Igor Stoppa, 2018-02-01
On Thu, Feb 1, 2018 at 11:42 PM, Igor Stoppa [off-list ref] wrote:
On 01/02/18 02:00, Christopher Lameter wrote:
quoted
Would it not be better to use compound page allocations here?
page_head(whatever) gets you the head page where you can store all sorts
of information about the chunk of memory.
Can you please point me to this function/macro? I don't seem to be able
to find it, at least not in 4.15
IIUC, he means PageHead(), which is also hard to grep for, since it is
a constructed name, via Page##uname in include/linux/page-flags.h:

__PAGEFLAG(Head, head, PF_ANY) CLEARPAGEFLAG(Head, head, PF_ANY)

-Kees

-- 
Kees Cook
Pixel Security
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Thread (24 messages) 24 messages, 6 authors, last reply 2018-02-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help