[lkml]   [2018]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 10/17] prmem: documentation

On 30/10/2018 23:07, Kees Cook wrote:

> We still have to deal with certain structures under the write-rare
> window. For example, see:
> They are wrappers to non-inline functions that have the same sanity-checking.

Even if I also did something similar, it was not intended to be final.
Just a stop-gap solution till the write-rare mechanism is identified.

If the size of the whole list_head is used as alignment, then the whole
list_head structure can be given an alternate mapping and the plain list
function can be used on this alternate mapping.

It can halve the overhead or more.
The typical case is when not only one list_head is contained in one
page, but also the other, like when allocating and queuing multiple
items from the same pool.
One single temporary mapping would be enough.

But it becomes tricky to do it, without generating code that is


 \ /
  Last update: 2018-10-30 22:27    [W:0.143 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site