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: <ZtbRQYiGCZuhQcmX@arm.com>
Date: Tue, 3 Sep 2024 10:05:05 +0100
From: Yury Khrustalev <yury.khrustalev@....com>
To: Mark Brown <broonie@...nel.org>
CC: <Szabolcs.Nagy@....com>, <akpm@...ux-foundation.org>,
	<aou@...s.berkeley.edu>, <ardb@...nel.org>, <arnd@...db.de>,
	<brauner@...nel.org>, <catalin.marinas@....com>, <corbet@....net>,
	<debug@...osinc.com>, <ebiederm@...ssion.com>, <fweimer@...hat.com>,
	<hjl.tools@...il.com>, <james.morse@....com>, <kees@...nel.org>,
	<kvmarm@...ts.linux.dev>, <linux-arch@...r.kernel.org>,
	<linux-arm-kernel@...ts.infradead.org>, <linux-doc@...r.kernel.org>,
	<linux-fsdevel@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
	<linux-kselftest@...r.kernel.org>, <linux-mm@...ck.org>,
	<linux-riscv@...ts.infradead.org>, <maz@...nel.org>, <oleg@...hat.com>,
	<oliver.upton@...ux.dev>, <palmer@...belt.com>, <paul.walmsley@...ive.com>,
	<rick.p.edgecombe@...el.com>, <ross.burton@....com>, <shuah@...nel.org>,
	<suzuki.poulose@....com>, <thiago.bauermann@...aro.org>,
	<wilco.dijkstra@....com>, <will@...nel.org>, <yury.khrustalev@....com>
Subject: Re: [PATCH v12 23/39] arm64/mm: Implement map_shadow_stack()

On Thu, Aug 29, 2024 at 12:27:39AM +0100, Mark Brown wrote:
> As discussed extensively in the changelog for the addition of this
> syscall on x86 ("x86/shstk: Introduce map_shadow_stack syscall") the
> existing mmap() and madvise() syscalls do not map entirely well onto the
> security requirements for guarded control stacks since they lead to
> windows where memory is allocated but not yet protected or stacks which
> are not properly and safely initialised. Instead a new syscall
> map_shadow_stack() has been defined which allocates and initialises a
> shadow stack page.
> 
> Implement this for arm64.  Two flags are provided, allowing applications
> to request that the stack be initialised with a valid cap token at the
> top of the stack and optionally also an end of stack marker above that.
> We support requesting an end of stack marker alone but since this is a
> NULL pointer it is indistinguishable from not initialising anything by
> itself.
> 
> Reviewed-by: Thiago Jung Bauermann <thiago.bauermann@...aro.org>
> Reviewed-by: Catalin Marinas <catalin.marinas@....com>
> Signed-off-by: Mark Brown <broonie@...nel.org>

Acked-by: Yury Khrustalev <yury.khrustalev@....com>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ