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: <aYuGxmLOWXhIpoMj@grain>
Date: Tue, 10 Feb 2026 22:28:06 +0300
From: Cyrill Gorcunov <gorcunov@...il.com>
To: Andrei Vagin <avagin@...gle.com>
Cc: Kees Cook <kees@...nel.org>, Andrew Morton <akpm@...ux-foundation.org>,
	Mike Rapoport <rppt@...nel.org>,
	Alexander Mikhalitsyn <alexander@...alicyn.com>,
	linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
	linux-mm@...ck.org, criu@...ts.linux.dev,
	Chen Ridong <chenridong@...wei.com>,
	Christian Brauner <brauner@...nel.org>,
	David Hildenbrand <david@...nel.org>,
	Eric Biederman <ebiederm@...ssion.com>,
	Lorenzo Stoakes <lorenzo.stoakes@...cle.com>,
	Michal Koutny <mkoutny@...e.com>
Subject: Re: [PATCH 0/4 v3] exec: inherit HWCAPs from the parent process

On Mon, Feb 09, 2026 at 07:06:01PM +0000, Andrei Vagin wrote:
> This patch series introduces a mechanism to inherit hardware capabilities
> (AT_HWCAP, AT_HWCAP2, etc.) from a parent process when they have been
> modified via prctl.
> 
> To support C/R operations (snapshots, live migration) in heterogeneous
> clusters, we must ensure that processes utilize CPU features available
> on all potential target nodes. To solve this, we need to advertise a
> common feature set across the cluster.
> 
> Initially, a cgroup-based approach was considered, but it was decided
> that inheriting HWCAPs from a parent process that has set its own
> auxiliary vector via prctl is a simpler and more flexible solution.
> 
> This implementation adds a new mm flag MMF_USER_HWCAP, which is set when the
> auxiliary vector is modified via prctl(PR_SET_MM_AUXV). When execve() is
> called, if the current process has MMF_USER_HWCAP set, the HWCAP values are
> extracted from the current auxiliary vector and inherited by the new process.
> 
> The first patch fixes AUXV size calculation for ELF_HWCAP3 and ELF_HWCAP4
> in binfmt_elf_fdpic and updates AT_VECTOR_SIZE_BASE.
> 
> The second patch implements the core inheritance logic in execve().
> 
> The third patch adds a selftest to verify that HWCAPs are correctly
> inherited across execve().
> 
> v3: synchronize saved_auxv access with arg_lock
> 
> v1: https://lkml.org/lkml/2025/12/5/65
> v2: https://lkml.org/lkml/2026/1/8/219
> 
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> Cc: Chen Ridong <chenridong@...wei.com>
> Cc: Christian Brauner <brauner@...nel.org>
> Cc: David Hildenbrand <david@...nel.org>
> Cc: Eric Biederman <ebiederm@...ssion.com>
> Cc: Kees Cook <kees@...nel.org>
> Cc: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>
> Cc: Michal Koutny <mkoutny@...e.com>
> Cc: Cyrill Gorcunov <gorcunov@...il.com>

Looks ok to me. Thanks, Andrei!

Reviewed-by: Cyrill Gorcunov <gorcunov@...il.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ