From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8E0830F926 for ; Wed, 1 Oct 2025 21:04:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759352650; cv=none; b=sn6+WZmwxMGBx/UVv2jPiceZCnYgCV9SOd1EUWp3L9eHw3+BBByRAJQ+MHVpktVobEIpjpl12v8g39s0LlW7oRralffRcsAbMz5BGLfAlky6zxwuo/wwEsadu3sjzkSGRxK/G6wSKD6hkmdBJzZ6j1Ck73XnuHo6NmMpYbRcNvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759352650; c=relaxed/simple; bh=SW5mPnOzJITL4l0UqpBY1hKBImd1TIHcagRsxcO8Ux8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=aen8wSOG4n0GYyCUzYr7y7AabXHTX4QafpvKnxm7M13PzXRrKblQ3X5chdPmMoBaPEbhIELnj+nDqNOZvta5OgYdGZSf6eY6zLj1RvQhojHyusJwjhly9SacdwDgZaqiNSonXpyHxGYM4+dNOCaPbkFSErDTJ7zAPX/zgJ5gz8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=oa2dFGNh; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="oa2dFGNh" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-46e4943d713so1254725e9.1 for ; Wed, 01 Oct 2025 14:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1759352647; x=1759957447; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=UZKSd5rMdo9tEwoYCoXUQVE6sJT0wmf8X0NATCF37Q4=; b=oa2dFGNhmcvvyhoyP1Si3mFhku55TBbhfKRm+E+pLjSs3LMCkvsVHsx2WfcGA+Ebfo ESQRvHYo0E7mvYGv2xxNa7gYa8/qEWhrDYjSaTvWKfgl5twBdfkXI8atbyr6aOuSpK9i HkARuRCIFJ7UXK/dlTylw4h9LMjzNMoXuvhY5ho4Jclg/HPbeNbXfpxRjXscKixI0blu OtXCMqILnmk6DJ3elccYb4cWGYtykwHGkh7dEr1R4tg/yxBrWVcEq96RzVd8LWJsxS8w 1jrAqhAalr4KqmbEY9u9ZmAYJKu1Dd14oS5MX+zwAy18eb78mUuS27UAqfKcH9kvndEV ZCig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759352647; x=1759957447; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UZKSd5rMdo9tEwoYCoXUQVE6sJT0wmf8X0NATCF37Q4=; b=A7o+JPGoCJY/VTDMSM8ULoX3+Ok5GETblcPi7MQzH49CQbGEgpErhpwk8jgMi4irjj 2aBvJ8U1KLEe9ext1ficme8C9bePjqeESh16QVKJ9pWWsPm4s2919Y7usQEsfyzHe7IN RVFtQQsIx04c+YyzyJoySgqCnTBUVMersOjYj64PIhnz0ISNP4IYjrJehV1ylT+dTMI0 QiCjdzQKvy85u6wQN8G2nTLXymSe87MwOLA52y9x1w5XqY4tn4GysnC01ZFa/RiU87YK hRfzoT9ckxR/QypjNm8uzVNqq7QBDlGrBGu6Um1iGcipglrZUl99TUYZ5bel3xeWfbqa qMaQ== X-Gm-Message-State: AOJu0YyE1BHK4cBmRYCjV8W4OWTpgiU5sSwUmJ8soY+dxE2wjfJdE0/u ddPzxMi5q5E8D9DBIzJ3m9OIlKrmCDwS38tn3tyJ4ObvVIrXNkvDPTDclzfUo3BUchnUjoDIDg= = X-Google-Smtp-Source: AGHT+IEYxGxSDoioNYClblaAj4vxDm8fokdAPOdazIOTblzm8QXHXPeKE11+MRENrVgxIsmYT+ZQ2SYk X-Received: from wmjs2.prod.google.com ([2002:a7b:c382:0:b0:46e:3422:1fcc]) (user=ardb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4fc6:b0:46e:1a07:7bd5 with SMTP id 5b1f17b1804b1-46e61285d7dmr38854685e9.29.1759352647355; Wed, 01 Oct 2025 14:04:07 -0700 (PDT) Date: Wed, 1 Oct 2025 23:02:16 +0200 In-Reply-To: <20251001210201.838686-22-ardb+git@google.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251001210201.838686-22-ardb+git@google.com> X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-Developer-Signature: v=1; a=openpgp-sha256; l=814; i=ardb@kernel.org; h=from:subject; bh=40tSyXfxoCO4pZAvlNOPxZCROdcuajmQXIsSsXG3TMo=; b=owGbwMvMwCVmkMcZplerG8N4Wi2JIePudNZjToIdV9WeFedtulX01C0kb9ZiTfM1ap1FWzetS rNz+Liho5SFQYyLQVZMkUVg9t93O09PlKp1niULM4eVCWQIAxenAEzkSAsjw7scuSlTyt+Fs1z8 9Tm6LUE4x8+7eQ0f03c1h6unY6tVFjD8FeRM44laGepRWKlwYnJBPce7w3/PGx652jDr06pfoou aeQE= X-Mailer: git-send-email 2.51.0.618.g983fd99d29-goog Message-ID: <20251001210201.838686-36-ardb+git@google.com> Subject: [PATCH v2 14/20] crypto/arm64: nhpoly1305 - Switch to 'ksimd' scoped guard API From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, herbert@gondor.apana.org.au, linux@armlinux.org.uk, Ard Biesheuvel , Marc Zyngier , Will Deacon , Mark Rutland , Kees Cook , Catalin Marinas , Mark Brown , Eric Biggers Content-Type: text/plain; charset="UTF-8" From: Ard Biesheuvel Signed-off-by: Ard Biesheuvel --- arch/arm64/crypto/nhpoly1305-neon-glue.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm64/crypto/nhpoly1305-neon-glue.c b/arch/arm64/crypto/nhpoly1305-neon-glue.c index e4a0b463f080..013de6ac569a 100644 --- a/arch/arm64/crypto/nhpoly1305-neon-glue.c +++ b/arch/arm64/crypto/nhpoly1305-neon-glue.c @@ -25,9 +25,8 @@ static int nhpoly1305_neon_update(struct shash_desc *desc, do { unsigned int n = min_t(unsigned int, srclen, SZ_4K); - kernel_neon_begin(); - crypto_nhpoly1305_update_helper(desc, src, n, nh_neon); - kernel_neon_end(); + scoped_ksimd() + crypto_nhpoly1305_update_helper(desc, src, n, nh_neon); src += n; srclen -= n; } while (srclen); -- 2.51.0.618.g983fd99d29-goog