From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF24DCDB483 for ; Thu, 19 Oct 2023 17:08:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F1C68D01AA; Thu, 19 Oct 2023 13:08:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4A1ED8D001A; Thu, 19 Oct 2023 13:08:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36A5A8D01AA; Thu, 19 Oct 2023 13:08:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 245DF8D001A for ; Thu, 19 Oct 2023 13:08:25 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D7C06C04FB for ; Thu, 19 Oct 2023 17:08:24 +0000 (UTC) X-FDA: 81362844528.15.F9DEF1A Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf08.hostedemail.com (Postfix) with ESMTP id EC6E9160026 for ; Thu, 19 Oct 2023 17:08:22 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=iuYT4D0V; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of broonie@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697735303; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=tNYO8YPD9m2NKnwkpp/o5vqQGY0tuPMu8ucIkH9IRVs=; b=ge2GLKX8YwR5f9T8UQt9RyDG5rDdYomUqzKhPjYeh3X8Wp0mSf+as0n/+IuiLROU3gXGfk +zHOOGPswY4VE7a71QJtIZ3atP0XCojcjYB4y8Ea8//Dx87M2Yp9Q3XzAYqlGUmI3tduSN 8ngVLYUbgdxMenEHP9Z1bx5xDnwMKvQ= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=iuYT4D0V; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf08.hostedemail.com: domain of broonie@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=broonie@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697735303; a=rsa-sha256; cv=none; b=6mcWNP5nMgmM75EnfDha1MuYfilvqZoxYJtcygOZKFTTZOr30vu3C3dO3RJghA+zB9gPY9 Nqgf2n7mQ63IZ6pnz1tR5pbepVWkD+LHd1ma7LY8XySxbzPkD7d2FUv2aaiG7iS9Ep4MbB HTSbnYsf63MqFn8vBrYtoiPUSK3+mDs= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id E946D61BF8; Thu, 19 Oct 2023 17:08:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6BCAC433C8; Thu, 19 Oct 2023 17:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697735301; bh=pG0Qit3AqQuyW6KGy3cTGUjC4taxXCYceYbhQqKPpi0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iuYT4D0VMaEuj+thGqbHAXol5XSAP+gpQW0FvmhrZUDfxLXv+/ZVEXa7HboYTdjfS 6IW13fpGKYOraD3SUYgFKSKngtaiTn4eZnS5/t4No3Bd9JUpA/YN36SlzCfxP3r8Qo GSGIhhQuUcl2bZWr7R2xIlGjz0vg5FexGBIpOTGda3+rKYYtVhgWVsIhxkX6hbI0gm mcLC1qwZc2f1UoNDZu97OVSCneDpDNOnMk0J/9pg1MhLPNaMhehC5h9M8hK61gX85H oCvpdUL6LgDGxSu2UPoMDo+pZMMxQOrswwQOGCVnwHabAhbK25KaSViVEB0JO0/a2D NKmdSxXCL95kQ== Date: Thu, 19 Oct 2023 18:08:12 +0100 From: Mark Brown To: Catalin Marinas Cc: Szabolcs Nagy , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Kees Cook , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v4 03/36] arm64/gcs: Document the ABI for Guarded Control Stacks Message-ID: <8a158486-f0b9-4f25-b673-998726a40528@sirena.org.uk> References: <43ec219d-bf20-47b8-a5f8-32bc3b64d487@sirena.org.uk> <38edb5c3-367e-4ab7-8cb7-aa1a5c0e330c@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kNvCjmZsgc4H4SyY" Content-Disposition: inline In-Reply-To: X-Cookie: Beware of dog. X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: EC6E9160026 X-Stat-Signature: uph1d4g56k59cdj113i3jq1o4rx11qsh X-HE-Tag: 1697735302-140965 X-HE-Meta: U2FsdGVkX19n05sMKrb2bm8AYS1xGF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8PqsQG05pvng6LZDn5Z7w48BvpIF8Pr4nCXacSl1d6bb0v9od7qKIQKBvbX8lLxyHQiYSnJWCMRjMiwtcD2/K/0edQKSUhfjDp28coK+lXqoMIi5/qvDzcoq1F+JmbCGLM1TvvHLGeNR8qT8XRdg/50i/rTxpbs1FOkslmCvsm81NBmOU1zBROx29W4/MQIgz/OlU3AKjOh0Ay7Vk X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --kNvCjmZsgc4H4SyY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 05, 2023 at 06:23:10PM +0100, Catalin Marinas wrote: > I haven't checked how many clone() or clone3() uses outside the libc are > (I tried some quick search in Debian but did not dig into the specifics > to see how generic that code is). I agree that having to change valid > cases outside of libc is not ideal. Even if we have the same clone3() > interface for x86 and arm64, we'd have other architectures that need > #ifdef'ing. FTR the set of Debian source packages that have references to the string __NR_clone (which picks up clone3 too) is below. At least some (eg, kore) just have things that look like a copy of the syscall table rather than things that look like calls, though equally it's likely we're missing some. aflplusplus android-platform-tools binutils-avr box64 brltty bubblewrap chromium chrony crash criu crun dietlibc elogind emscripten fakeroot-ng falcosecurity-libs firefox firefox-esr flatpak gcc-9 gcc-10 gcc-11 gcc-12 gcc-13 gcc-arm-none-eabi gcc-snapshot gdb-msp430 glibc gnumach hurd klibc kore libpod libseccomp linux llvm-toolchain-14 llvm-toolchain-15 llvm-toolchain-16 lxc lxcfs lxd musl newlib notcurses purelibc pwntools qemu qt6-base qt6-webengine qtbase-opensource-src qtbase-opensource-src-gles qtwebengine-opensource-src radare2 rumur rustc rust-linux-raw-sys rust-rustix strace stress-ng swtpm systemd systemtap termpaint thunderbird tor uclibc umview valgrind vsftpd wasi-libc webkit2gtk wpewebkit --kNvCjmZsgc4H4SyY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmUxYnsACgkQJNaLcl1U h9BPuwf/ckJjx9BnOVP9ZzZPFpa7pKsXZe4D8gbrhkTsTNPX6DKdD77294DX72gh Q3LR3m5Xdw3nFoR/pP6cUgZ24o8sV/iUz8fLdBvuOOnemVmgoPIRcB/TNueOcq9P 1rIwQ44UzdUfxc/5Ny1QKCvurTnCs4dFc3Llt0GdVvDy+Ec6FK9hX/Wwe48hsvLr 6kDkKqvYz3IF3xnnTmGyHxD7EdaHnYPHrU8mWr33e1j8/MWMn6ywGyCRV6ZgrQxW VuTTod0EwhsDlW/u8yYNGmLBirZQszpmt3Wp2QCv4vcjHbjxa+xh7SYq8P5BNRj3 ZgUagp/WsyNXXW6iGiQlgqb1YHdFdg== =ZvaR -----END PGP SIGNATURE----- --kNvCjmZsgc4H4SyY--