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] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 16 Mar 2007 09:29:08 +0200 (EET)
From:	Pekka J Enberg <penberg@...helsinki.fi>
To:	Nick Piggin <nickpiggin@...oo.com.au>
cc:	akpm@...ux-foundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] revoke: misc fixes

Pekka J Enberg wrote:
> > 	/*
> > - 	 * Not holding ->mmap_sem here.
> > + 	 * Not holding ->mmap_sem here but we must watch out for page
> > + 	 * faults and after the shared mappings have been taken down
> > + 	 * and sys_mmap() trying to remap the revoked range.
> >   */
> >   vma->vm_flags |= VM_REVOKED;
> >   smp_mb();
> > @@ -455,7 +457,7 @@ 	int err = 0;

On Fri, 16 Mar 2007, Nick Piggin wrote:
> You're still modifying vm_flags without down_write mmap_sem, so this will
> corrupt vm_flags.

Uhm, you're right, two concurrent writes and we can lose some bits so a 
barrier doesn't work. Too bad as we're under mapping->i_mmap_lock here and 
thus cannot take ->mmap_sep...
-
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