lkml.org 
[lkml]   [2009]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5] RO/NX protection for loadable kernel modules
From
Date
Rusty Russell <rusty@rustcorp.com.au> writes:
>
> (I like the idea of trying kmalloc and falling back, simply because it reduces
> TLB pressure,

I implemented this for 32bit in 2.4, but I always had second thoughts
if that was really reducing TLB pressure.

x86 CPUs have separated TLBs for 2MB and 4K and they all have much
more 4K entries. So it might actually be worse to use the 2MB TLBs for
this.

> but that's probably best done after unification).

Trying kmalloc doesn't work on x86-64

-Andi

--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2009-07-12 11:27    [W:1.229 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site