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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 6 Jun 2007 02:06:51 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc:	linux-kernel@...r.kernel.org, parisc-linux@...ts.parisc-linux.org,
	linux-mm@...ck.org, linux-arch@...r.kernel.org,
	Ollie Wild <aaw@...gle.com>, Ingo Molnar <mingo@...e.hu>,
	Andi Kleen <ak@...e.de>
Subject: Re: [PATCH 4/4] mm: variable length argument support

On Wed, 06 Jun 2007 10:54:21 +0200 Peter Zijlstra <a.p.zijlstra@...llo.nl> wrote:

> > > It is a bit peculiar in that we have one task with two mm's, one of which is
> > > inactive.
> > > 
> > > ...
> > >
> > > +				flush_cache_page(bprm->vma, kpos,
> > > +						 page_to_pfn(kmapped_page));
> 
> Bah, and my frv cross build bums out on an unrelated change,..
> I'll see if I can get a noMMU arch building, in the mean time, would you
> try this:
> 
> ---
> 
> Since no-MMU doesn't do the fancy inactive mm access there is no need to
> flush cache.
> 
> Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
> ---
> 
> Index: linux-2.6-2/fs/exec.c
> ===================================================================
> --- linux-2.6-2.orig/fs/exec.c	2007-06-05 16:48:52.000000000 +0200
> +++ linux-2.6-2/fs/exec.c	2007-06-06 10:49:19.000000000 +0200
> @@ -428,8 +428,10 @@ static int copy_strings(int argc, char _
>  				kmapped_page = page;
>  				kaddr = kmap(kmapped_page);
>  				kpos = pos & PAGE_MASK;
> +#ifdef CONFIG_MMU
>  				flush_cache_page(bprm->vma, kpos,
>  						 page_to_pfn(kmapped_page));
> +#endif
>  			}
>  			if (copy_from_user(kaddr+offset, str, bytes_to_copy)) {
>  				ret = -EFAULT;
> 

I think the same problem will happen on NOMMU && STACK_GROWS_UP.  There are
several new references to bprm->vma in there, not all inside CONFIG_MMU.

-
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