Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp499001rdb; Thu, 19 Oct 2023 10:08:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyALzCvvAp5/iZlZRXipYz1I6m6WzFpI3kgQ1cCS1ETfblWP5RvFlxSfckexEnD/rSCmW+ X-Received: by 2002:a17:903:32d2:b0:1c7:5776:a30f with SMTP id i18-20020a17090332d200b001c75776a30fmr3702831plr.12.1697735321695; Thu, 19 Oct 2023 10:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697735321; cv=none; d=google.com; s=arc-20160816; b=IX0GWVzXmrd+rfVRph2XTVcR6QuCKXjvy7+DHQSyT6xPKIV5U85osWlplCnhGhKgYU 3hcyBhDkVrap068jhGMV/Ip6z0Vcn8+1/GDLT5I0aoZ608ewUxbhe6wQSBd1TbBG7a9J zwNV+H9CQ43MlR22nbyNmLEneZTOcwh74Upz1a726nVzNMLvbMGNqaGBV+zZ/1mI2Guo eBGOnmsurXm00JovCe8Ye7nn1HaoDMMHP5WNb87T3h+YVbHf8F2IMG3pL7fC0UYVKM1I 7aCSluCFjlPPyHuSEMnF3b7TkvxYd90P7ZnlPpIlWgNNxFD7htbENkoBM5ElfX6rwcNz +A8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tNYO8YPD9m2NKnwkpp/o5vqQGY0tuPMu8ucIkH9IRVs=; fh=yR2Q6Ab3EenAHa7EUKahMcSBCYaMUQpFosJGht6xX1c=; b=tSNR4yF768FIoJrw+QmcvOVAkd1p2AF345KlKXBl2mPGRmE4Smt6AwMphufLMv/FBb +Xi45OMqNBWMVdi73pzn1cXfT4JfDai1kI8cRNe+uoGbYx8wKlG9+WEow3gT01FG6pZq ugdJ88nttEQiuiVpfADkZWUTc0dO88N06QxNScpyszNwRZ2DF70NmPKN+Hs8hrw7w5FH a7KTEj+nEhoUW0CxdN0RJtLYsARlHJ3XJIWDz4HWXDVvbS+mE5V0d4VioZJ6/55dT3SY IGEgjw4xyRH5X1Xm3LH58KDIoinoSOHtVxWRNRAQTJI7nnBY1YM0qDBujynGE+/qe4hM mVlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iuYT4D0V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id i18-20020a17090332d200b001c33d33975esi1501086plr.133.2023.10.19.10.08.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 10:08:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iuYT4D0V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4FC9B83BEDF3; Thu, 19 Oct 2023 10:08:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346068AbjJSRIZ (ORCPT + 99 others); Thu, 19 Oct 2023 13:08:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345614AbjJSRIY (ORCPT ); Thu, 19 Oct 2023 13:08:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2204B12A; Thu, 19 Oct 2023 10:08:22 -0700 (PDT) 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-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 19 Oct 2023 10:08:39 -0700 (PDT) --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--