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, 8 Jan 2016 20:40:31 +0100 (CET)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Dave Hansen <dave@...1.net>
cc:	linux-kernel@...r.kernel.org, linux-mm@...ck.org, x86@...nel.org,
	dave.hansen@...ux.intel.com
Subject: Re: [PATCH 30/31] x86, pkeys: create an x86 arch_calc_vm_prot_bits()
 for VMA flags

On Wed, 6 Jan 2016, Dave Hansen wrote:

> 
> From: Dave Hansen <dave.hansen@...ux.intel.com>
> 
> calc_vm_prot_bits() takes PROT_{READ,WRITE,EXECUTE} bits and
> turns them in to the vma->vm_flags/VM_* bits.  We need to do a
> similar thing for protection keys.
> 
> We take a protection key (4 bits) and encode it in to the 4
> VM_PKEY_* bits.
> 
> Note: this code is not new.  It was simply a part of the
> mprotect_pkey() patch in the past.  I broke it out for use
> in the execute-only support.
> 
> Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>

Reviewed-by: Thomas Gleixner <tglx@...utronix.de>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ