Re: [PATCH v6 3/4] vmalloc: Add debugfs modfraginfo

2018-09-24 Thread Kees Cook
On Mon, Sep 24, 2018 at 11:58 AM, Edgecombe, Rick P wrote: > On Fri, 2018-09-21 at 11:56 -0700, Kees Cook wrote: >> On Thu, Sep 13, 2018 at 2:31 PM, Rick Edgecombe >> wrote: >> > +done: >> > + gap = (MODULES_END - last_end); >> > + if (gap > largest_free) >> > + largest_

Re: [PATCH v6 3/4] vmalloc: Add debugfs modfraginfo

2018-09-24 Thread Edgecombe, Rick P
On Fri, 2018-09-21 at 11:56 -0700, Kees Cook wrote: > On Thu, Sep 13, 2018 at 2:31 PM, Rick Edgecombe > wrote: > > +done: > > +   gap = (MODULES_END - last_end); > > +   if (gap > largest_free) > > +   largest_free = gap; > > +   total_free += gap; > > + > > +   spin_un

Re: [PATCH v6 3/4] vmalloc: Add debugfs modfraginfo

2018-09-21 Thread Kees Cook
On Thu, Sep 13, 2018 at 2:31 PM, Rick Edgecombe wrote: > Add debugfs file "modfraginfo" for providing info on module space > fragmentation. > This can be used for determining if loadable module randomization is causing > any > problems for extreme module loading situations, like huge numbers of

[PATCH v6 3/4] vmalloc: Add debugfs modfraginfo

2018-09-13 Thread Rick Edgecombe
Add debugfs file "modfraginfo" for providing info on module space fragmentation. This can be used for determining if loadable module randomization is causing any problems for extreme module loading situations, like huge numbers of modules or extremely large modules. Sample output when KASLR is ena