[PATCH 10/11] x86, mpx: cleanup unused bound tables

2014-11-14 Thread Dave Hansen
From: Dave Hansen The previous patch allocates bounds tables on-demand. As noted in an earlier description, these can add up to *HUGE* amounts of memory. This has caused OOMs in practice when running tests. This patch adds support for freeing bounds tables when they are no longer in use. The

Re: [PATCH 10/11] x86, mpx: cleanup unused bound tables

2014-11-13 Thread Dave Hansen
On 11/13/2014 06:55 AM, Thomas Gleixner wrote: > On Wed, 12 Nov 2014, Dave Hansen wrote: >> +/* >> + * Get the base of bounds tables pointed by specific bounds >> + * directory entry. >> + */ >> +static int get_bt_addr(struct mm_struct *mm, >> +long __user *bd_entry, unsigned lo

Re: [PATCH 10/11] x86, mpx: cleanup unused bound tables

2014-11-13 Thread Thomas Gleixner
On Wed, 12 Nov 2014, Dave Hansen wrote: > +/* > + * Get the base of bounds tables pointed by specific bounds > + * directory entry. > + */ > +static int get_bt_addr(struct mm_struct *mm, > + long __user *bd_entry, unsigned long *bt_addr) > +{ > + int ret; > + int valid;

[PATCH 10/11] x86, mpx: cleanup unused bound tables

2014-11-12 Thread Dave Hansen
From: Dave Hansen The previous patch allocates bounds tables on-demand. As noted in an earlier description, these can add up to *HUGE* amounts of memory. This has caused OOMs in practice when running tests. This patch adds support for freeing bounds tables when they are no longer in use. The