lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110714132317.GC2832@dhcp-26-164.brq.redhat.com>
Date:	Thu, 14 Jul 2011 15:23:17 +0200
From:	Frantisek Hrbata <fhrbata@...hat.com>
To:	Oleg Nesterov <oleg@...hat.com>
Cc:	linux-kernel@...r.kernel.org, matt.fleming@...ux.intel.com,
	hughd@...gle.com
Subject: Re: [PATCH] exec: remove page_table_lock for mm counters in
 acct_arg_size()

On Thu, Jul 14, 2011 at 03:18:22PM +0200, Oleg Nesterov wrote:
> On 07/14, Frantisek Hrbata wrote:
> >
> > Commit 172703b mm: delete non-atomic mm counter implementation
> > removed non-atomic mm counters implementation. I think there is no need to hold
> > page_table_lock for add_mm_counter() when the splitted page table locks are not
> > used. This patch removes the locking.
> >
> > Signed-off-by: Frantisek Hrbata <fhrbata@...hat.com>
> > ---
> >  fs/exec.c |    6 ------
> >  1 files changed, 0 insertions(+), 6 deletions(-)
> >
> > diff --git a/fs/exec.c b/fs/exec.c
> > index 6075a1e..e6fc5e1 100644
> > --- a/fs/exec.c
> > +++ b/fs/exec.c
> > @@ -182,13 +182,7 @@ static void acct_arg_size(struct linux_binprm *bprm, unsigned long pages)
> >
> >  	bprm->vma_pages = pages;
> >
> > -#ifdef SPLIT_RSS_COUNTING
> >  	add_mm_counter(mm, MM_ANONPAGES, diff);
> > -#else
> > -	spin_lock(&mm->page_table_lock);
> > -	add_mm_counter(mm, MM_ANONPAGES, diff);
> > -	spin_unlock(&mm->page_table_lock);
> > -#endif
> 
> Heh. Thanks Frantisek, you are right. But this patch is already in mm-tree,
> fs-execc-acct_arg_size-ptl-is-no-longer-needed-for-add_mm_counter.patch
> 
> Oleg.
> 

:) thanks. Sorry I should check that first.

-- 
Frantisek Hrbata
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ