Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1601162rdb; Tue, 20 Feb 2024 00:51:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWWH1jW7wEjDWFW3rPO/MuWxXwTjjkxHyIxPJuVCgLxTdG3m/gfGIzlZ1U3Izp6RQUsgRhXxRWQSiIaimO3/JxjnXeHz9V152HCYJEfEg== X-Google-Smtp-Source: AGHT+IFlL316GgJLkpRMekCvHKN2rNJZM8RuvqyYWivtazwSau4D1SPfG84ipC7WdDYQJECVrrfZ X-Received: by 2002:a05:6a20:d492:b0:1a0:89af:ca2c with SMTP id im18-20020a056a20d49200b001a089afca2cmr14174657pzb.13.1708419067698; Tue, 20 Feb 2024 00:51:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708419067; cv=pass; d=google.com; s=arc-20160816; b=IEZHjwHhEpxM6stg6ox2v623j0VrEDi7EtlPXevWBQacJ709+fxue0HEBH+AIOIJjX LfsBUWr8ljDdVptzR+hkI31l+31CQTOLkf0Vad7HmbCXdhEz8R804G/hGeMA3YCUo46+ PaMCj43//61dOBm7X8J9Gz17ZlsePkPOVKt2sewwJyiQ7J6g4o2TtFd/sxTpuHSZCNoO 84bCnmVRbQOFXnClPM6oUrbbv5PVa0vE1mNIHsp8j5efOBsp+CNyoIWYQmsc1yOkSLe6 KlN4v+1Scl1DBpKl8NdgkmrH8GiWHJhvM1QObgRGoz2YP2LLDlUmFq9vZ+Ekp/OulX99 2jgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=pUq7P3aouNtDrNOSkHyQ5fqLAHFF5BRQGL40eGsuu4c=; fh=xyUMAM31ixzoCC5UGVDhazfONOlbAlQfCf+E2qdZuyc=; b=uJowogOkcyssMadIMSsfmBgyMh2UdI1QymKrvNvpo/F3BTuh1RIXocOHXaox4VHdEP FyVlHLHYiHEoLEVYbJsHEtZjA/mGU/4RNhRGJXr0j24zn8vuRJxrJarS3KuULjs+Gop4 QouA8qqDZvwoV8uHg6k0IvLPWwydXOGoyqLoqhaHIGmW1jHKrgwoqBkkSeYX4PwL0MG+ Ts33neJtcITxThNkjL0QoEuKehlHbWnPXO0SB8N++uSuQinzEs9SIRDM4+ZC0xzYIkQU 8JyoqTOptiqGmzfYyjqCR8dgKv4Pp4AWXFrOfqz4aBXtXGjXqDWxqjamOyN/NA0t42kp YcQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CMPX6tdR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x71-20020a63864a000000b005dc9564a0afsi5706828pgd.317.2024.02.20.00.51.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 00:51:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CMPX6tdR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72599-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D6FED28399A for ; Tue, 20 Feb 2024 08:50:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EA815D759; Tue, 20 Feb 2024 08:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CMPX6tdR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 579E95D743 for ; Tue, 20 Feb 2024 08:50:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708419012; cv=none; b=C/IHe5pvkc/+mMfed6KlMbmj8XWlCQh5HgPipeHyPibePhbgNA6F+SMwCBMI4lKkvsQmFxqi+6/V1KS57+GfVW3DhCWizMXpCWU+P3luU8onPFG+NlkB542apX9JDFlVN4aCBKQdK1DZTnZGwZl8ve989nOPGrKR93HHlhCH+tc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708419012; c=relaxed/simple; bh=pUq7P3aouNtDrNOSkHyQ5fqLAHFF5BRQGL40eGsuu4c=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=JEBoHI5q1a6MESPeee6spJNo+ge1T9VeRpzP+67TixRZSN2NI3o6ayXaepx24XMMhGgoFk0zB4LbqDHSPBbZ1RgsamODO1IB5//OEu/CEVD2dTI2qzpz8ayGsPWj14D1KvAdOGlKmU3/7IwcGhPJ0iWdQb4c7x5JAbzBax7HBQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CMPX6tdR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 074D2C43394 for ; Tue, 20 Feb 2024 08:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708419012; bh=pUq7P3aouNtDrNOSkHyQ5fqLAHFF5BRQGL40eGsuu4c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CMPX6tdRO45c9rPJHZZtdGG+AfnKfi+dzTTN/puGQLBXFRLFK2koT0LjHP0oJYWYi uarxLaQjDr6JaNBT1CzGUfH7MlVWTU8DZCvhgmMH8ebpcDyrywK17gDYmtZkUpPiWP ybk9lbMBVjNfsKyEgFd1SxXJrMCggOcvGv+ksvZ3YFcTYRZg1rSEFBKCdC1GBv7uTT qywRRtFTOkayyyi3qTVycYqmCDY3j4TsnPEeZ2XCVv+3gbOuB5C7sgXz0uEWSCLUqQ bp4Qp1jOzytUPVjX0qKg66vrVfwt47u+5O1IMT+CFUxG8h3gm0G/71nCbcUIAHKWJT eRcmVNvEcTOIg== Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d1094b5568so68622471fa.1 for ; Tue, 20 Feb 2024 00:50:11 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVUm9q4ic4FvN2aal0r27D48HUBEN1YF2EU2WW42q2PKq/GivI36aFur6UgHuhKAhgwbtL/00duUJkV+HHi9CibTLsuAlEdVuLJLfvv X-Gm-Message-State: AOJu0YxMdVQrGMg274UC/X0dAwsrm5pVKjsA/HUseg/v00E+4f08M8Rd /ql161eIdKyqOLHTPPnLLK/nFMfV05GS+9i9Uwvi//dEohaTcb7V6fV5JWLd1lEBzsGLGgfQ913 GVQv5nCLtjGD75poYw+9GM/Ou5ak= X-Received: by 2002:a2e:968e:0:b0:2d2:43fd:391b with SMTP id q14-20020a2e968e000000b002d243fd391bmr1702175lji.26.1708419010195; Tue, 20 Feb 2024 00:50:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206074552.541154-1-maskray@google.com> In-Reply-To: From: Ard Biesheuvel Date: Tue, 20 Feb 2024 09:49:58 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] arm64: jump_label: use constraints "Si" instead of "i" To: Mark Rutland Cc: Arnd Bergmann , Geert Uytterhoeven , Fangrui Song , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Jisheng Zhang , Dave Martin , Peter Smith , llvm@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 20 Feb 2024 at 08:55, Ard Biesheuvel wrote: > > On Mon, 19 Feb 2024 at 19:22, Mark Rutland wrote: > > > > On Mon, Feb 19, 2024 at 06:06:19PM +0100, Arnd Bergmann wrote: > > > On Mon, Feb 19, 2024, at 16:41, Ard Biesheuvel wrote: > > > > On Mon, 19 Feb 2024 at 15:43, Geert Uytterhoeven wrote: > > > >> On Mon, Feb 19, 2024 at 11:57=E2=80=AFAM Ard Biesheuvel wrote: > > > >> > On Mon, 19 Feb 2024 at 11:56, Ard Biesheuvel w= rote: > > > > > > >> > https://godbolt.org/z/GTnf3vPaT > > > >> > > > >> I could reproduce the issue on v6.8-rc5 using arm64 defconfig > > > >> and x86_64-gcc-5.5.0-nolibc-aarch64-linux.tar.xz from > > > >> https://cdn.kernel.org/pub/tools/crosstool/files/bin/x86_64/5.5.0/= : > > > >> > > > > > > > > OK, I managed to do so as well. > > > > > > > > And GCC 6.4 from the same source works correctly. > > > > > > > > Not sure whether there are any plans to bump the minimal GCC versio= n > > > > any time soon (cc'ing Arnd), but we should probably drop this chang= e > > > > until that happens. > > > > > > From what I can tell, we may as well formally raise the minimum > > > gcc version to 8.1+ already, as that is a version that is > > > actually used in distros, and we have been on 5.1+ for a few > > > years already. > > > > > > Not sure if there are any other benefits to gcc-8 besides > > > allowing minor cleanups. > > > > Arguably a minor cleanup, but on arm64 that'd allow us to get rid of th= e old > > mcount-based ftrace implementation and rely on -fpatchable-function-ent= ry. > > On its own that'd save ~130 lines of asm and ~70 lines of C, but it'd a= lso > > remove some constraints on other features (e.g. the mcount-based form's= graph > > tracer isn't compatible with pointer authentication), it would simplify= a few > > things going forwards (e.g. the implementation of RELIABLE_STACKTRACE, = since we > > could rely on having ftrace_regs and a single trampoline), and the rema= ining > > support would be better tested. > > > > I've wanted to remove the old ftrace implementation for a while, but on= its own > > it was never important/urgent enough to justify bumping to GCC 8+. > > > > I don't think this is minor, tbh. Supporting two versions of the > highly complex tracing infrastructure for a toolchain that is only > used in CI seems like a waste of time and effort. > > I checked x86, and it needs at least GCC 7 for retpoline support, so I > reckon at least GCC 5/6 support might be dropped there as well. Another data point: __GCC_ASM_FLAG_OUTPUTS__ needs GCC 6 or later on x86.