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]
Message-ID: <alpine.DEB.2.11.1511271029450.3572@nanos>
Date:	Fri, 27 Nov 2015 10:30:03 +0100 (CET)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Dave Hansen <dave@...1.net>
cc:	linux-kernel@...r.kernel.org, x86@...nel.org,
	dave.hansen@...ux.intel.com
Subject: Re: [PATCH 15/37] x86, pkeys: pass VMA down in to fault signal
 generation code

On Mon, 16 Nov 2015, Dave Hansen wrote:
> During a page fault, we look up the VMA to ensure that the fault
> is in a region with a valid mapping.  But, in the top-level page
> fault code we don't need the VMA for much else.  Once we have
> decided that an access is bad, we are going to send a signal no
> matter what and do not need the VMA any more.  So we do not pass
> it down in to the signal generation code.
> 
> But, for protection keys, we need the VMA.  It tells us *which*
> protection key we violated if we get a PF_PK.  So, we need to
> pass the VMA down and fill in siginfo->si_pkey.
> 
> Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>

Reviewed-by: Thomas Gleixner <tglx@...utronix.de>
--
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