Message ID | 20240903120948.13743-2-adhemerval.zanella@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3E27CD3420 for <linux-arm-kernel@archiver.kernel.org>; Tue, 3 Sep 2024 12:11:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/DUDom//tRZnCzR0TPrW7dnmFkZZ6kQdXEFrODb12u4=; b=h1kAz6pL2r8yUC0gu1RajUu2cO TjaYLqDxV3roVNtgJMueTtCNk/iUeynbj+wFwrXy4C0Ddpim3pJn9/xkBuwEu7D3ZrW+tJVkHAIN6 MZnm78vmMR8hs117S5W1etIntV+RHTv3/QltDxGq+8l2ca4USeDOUIeB5MMRPSWasDjyZbFfC2BoP vmwcMDhiAQx0LVuYTbOGAsO7ypgEhsgdQibP6OhTa9CSkPvA1ZSAT00MMfNiJhOZ3kZFWoxpFVwJc 7NpXMs5cEfd8r0//FrKd9YB80NNoNFd6BjkW4IrDwWp24e8XRsMcofWIXK4p1kcO8sfObiwXoWRDn YiOYrgdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slSNw-000000005SY-0v5l; Tue, 03 Sep 2024 12:11:48 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slSMA-000000004yj-02I6 for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 12:09:59 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42c7b5b2d01so31742975e9.3 for <linux-arm-kernel@lists.infradead.org>; Tue, 03 Sep 2024 05:09:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725365396; x=1725970196; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/DUDom//tRZnCzR0TPrW7dnmFkZZ6kQdXEFrODb12u4=; b=tutElUoh63pcbClFg5Wdy9xc46synW6W/1Eaqs41yAG22e9GIOqs9gXAiXmY2vHmGs RFAHOACzeYusRy+iJhE+Jgg6KOTkgGi8idVlLYUBmzwDrrQnkbMg1AO/PQAXrxwnWpTJ 43lBc3XiBdy7F49XQAYpIDK/mKu3SUx8XTs/eo3u9iqAZO8aActgzpYShtNyC3FBiKE8 oW9W8TLKvt6MvrAn5ZVfPk+PgOlBvdDCO04+ouJruoYZYMbWc79Hq97QLWQIM9UK+Ufm 7la8N57TTHxg5SZ4Uhy8ACzqyJ4NICmlCWE9EkKo5Ftkd5dceyvwu7kd62C0k4XNq1SX 5A/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725365396; x=1725970196; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/DUDom//tRZnCzR0TPrW7dnmFkZZ6kQdXEFrODb12u4=; b=O3W8pXZtEuYOlT+RWlZMSt5ai3qhpzK5ePTQcJQDT8pkpdzimYbjXdHkTcnwpfbevK B0aLozwXOly8y68pMrqiYmzuls1lptVSqCPLwZFp8v7JP3vdh8JTyeLTRzJ+MUG8z8sX 1G6l/wJCWY8O9mTQICHfBB48VHHtT6TD/a/AxPwKEJmuehiri6W7Tr3tyy/sKn2qowPy tcqlTAGtVGdMHcOx5/msGr5z9f7Es7mfAsFXPIFPSLEyh0R2BE04F7Fqgjg09zDdY5Rw MBpOV2bBZrkUTHXv30o2PpTrwofN4W05lkRq/AK9/GiIHsRcgw4BM6TkdTDRvA3SuB8v v0/w== X-Forwarded-Encrypted: i=1; AJvYcCUSTexcVpc4zJZGbFENVQjPvogP4+ncj8YVebiDPSt7vhaEFuuXyKhk55rCqcMDE1eP5WVMJU5/8hx8vQSuPV7u@lists.infradead.org X-Gm-Message-State: AOJu0Yz04Z5ZRoZYpYwQ5US9JGAmz6ivx9YFjkabofce56mLTOTyiHFL YhJtFBFYPcWrZ2pIxskBL92TJo3nthFqYzNg2EFwvHkxzt+y2lIYCkhoc/zWEYc= X-Google-Smtp-Source: AGHT+IFcoK0ATItLWWMNoYyO3QSsujmu7MhadnpNmBdao6RwrBFoO5Fsa1nhUpv/GrvTkZFRm38cOA== X-Received: by 2002:a05:600c:3c9f:b0:426:5b44:2be7 with SMTP id 5b1f17b1804b1-42bb01b5f50mr137762745e9.10.1725365396400; Tue, 03 Sep 2024 05:09:56 -0700 (PDT) Received: from ubuntu-vm.. (51-148-40-55.dsl.zen.co.uk. [51.148.40.55]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3749ee4a55fsm14069238f8f.10.2024.09.03.05.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 05:09:55 -0700 (PDT) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: "Jason A . Donenfeld" <Jason@zx2c4.com>, Theodore Ts'o <tytso@mit.edu>, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Eric Biggers <ebiggers@kernel.org>, Christophe Leroy <christophe.leroy@csgroup.eu> Cc: Mark Rutland <mark.rutland@arm.com> Subject: [PATCH v5 1/2] arm64: alternative: make alternative_has_cap_likely() VDSO compatible Date: Tue, 3 Sep 2024 12:09:16 +0000 Message-ID: <20240903120948.13743-2-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903120948.13743-1-adhemerval.zanella@linaro.org> References: <20240903120948.13743-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240903_050958_052087_0FC33176 X-CRM114-Status: GOOD ( 12.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
arm64: Implement getrandom() in vDSO
|
expand
|
diff --git a/arch/arm64/include/asm/alternative-macros.h b/arch/arm64/include/asm/alternative-macros.h index d328f549b1a6..c8c77f9e36d6 100644 --- a/arch/arm64/include/asm/alternative-macros.h +++ b/arch/arm64/include/asm/alternative-macros.h @@ -230,7 +230,11 @@ alternative_has_cap_likely(const unsigned long cpucap) return false; asm goto( +#ifdef BUILD_VDSO + ALTERNATIVE("b %l[l_no]", "nop", %[cpucap]) +#else ALTERNATIVE_CB("b %l[l_no]", %[cpucap], alt_cb_patch_nops) +#endif : : [cpucap] "i" (cpucap) :