Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp46654lqp; Tue, 11 Jun 2024 14:10:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtLBlCt31zHIa7jmReVTqUhvHIB4pGLHtLecb5ZzlmaO1kDB3siOIEazbT1NjVnsftULLEbzoL2gcvZEmpcxeHe8e++o77rkvWjnqPAw== X-Google-Smtp-Source: AGHT+IE8Uwof9lchdT/pz4guNG3HehyyUVFqOrYWYGybVpvrGaxjCouMIh6FMqRpGM93ZSSkaJtq X-Received: by 2002:a05:6a00:856:b0:702:24b3:d036 with SMTP id d2e1a72fcca58-705bcef2b1bmr85539b3a.22.1718140239747; Tue, 11 Jun 2024 14:10:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718140239; cv=pass; d=google.com; s=arc-20160816; b=oNmK5o4BpF9VgQUB4VZGzp9X7aBUGBLGJQHctCy7xsjkmlCjcR4b2MPo2CKxqq+tW8 pUrTK8J4Ggl/Lmi2vWh0wrtImvCsfFFAJX3Up6YNN/J1cyse8qC/ZG3QBuyPNd8cSgaV IJ39U3KSea1EVrGKMZHUxXBBy5d8KWTt5L7y7vP/z6DYqff679ThBunAfSE5Ry5vaK1G v8iQwkWnJY2RWEKhba4pJy+ys9YwqTRB6xHOetouxIG8HZ3BviZ8RbAEIQGVKuVJu74q LxeGWjfjiur4jXIN7O0LSuf0ElQKMld2syKJSMBdUnvk1xlFpDKcdoGvLUJ02/X/CY7g +CWw== 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=FRYYoIedR0kq08TkvByDILBzLvdsSyczT5bls5QRdJA=; fh=X1fumZeHYmnf+JVaWD3x1h5wE1X3+lIa95g9NxQO1gY=; b=N83Mb8kk5OTAi5wi24lJx/iqGp82knTzj5ZzNeCLz7sTjZvBYb5EecZC6dW+GzXSu1 b/CjONq8iYSXIi4v4hTVr4J7H79Bfu1IGowsAngxx7EP87jZ0iB5KRbvwCyR4NBde0gl oGDfVnrKm9McXFyQT0OtJE2zpR8mzkBKAY6pVuUuqkZCF1GtwixgDgUGrXSRu+KX7A0f FwY3ucnvFVJB0GZM66yrLwgB/YKbfvDLWBLQ3fufdOr0O1xlbAoD3jHXXeLnvJ7zwGlv ncLxek8Coc7a/NAs3RM0rCNbphT+Kd3jVGA1MY2wcPrk0rFVKVSwKXQTckD6jNNrGTwe gyLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RCZjFseK; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-crypto+bounces-4905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 41be03b00d2f7-6e7a12a219csi6500240a12.477.2024.06.11.14.10.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 14:10:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4905-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=@linaro.org header.s=google header.b=RCZjFseK; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-crypto+bounces-4905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 65880282400 for ; Tue, 11 Jun 2024 21:10:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74616386; Tue, 11 Jun 2024 21:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RCZjFseK" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 AE0A438DC8 for ; Tue, 11 Jun 2024 21:10:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718140236; cv=none; b=cNBqFggBXQHXGicxY393JmilOtQZCAUvtYhTQSW9SMbFr/m4AZ9EXRm6ajwBnWy1l2D+ZL9Uiohq4FLdzv70RqXwfsG5AxuVREt/hRTqVlxwZMcp1vAEWcJx6b4NpQ36K0HaGRV6N4Bk/cukLsa5EBmXe+OTDUZRxtMgU/uViHY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718140236; c=relaxed/simple; bh=FRYYoIedR0kq08TkvByDILBzLvdsSyczT5bls5QRdJA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OXXUOR4p37YqTfH7sldcyNhIzFYwt5ccM1kj2knWOlhaCidEL1Fnwhrqv3S4Djsat0WRgYUVLM3zTNiwL662iGMNd3iE1IvgSMfDKU6tr+6BDdzZ3NcThyIO28Q+nuCWvSuzl2PYEIT4PoFUwWhHzF7rbCkQ7qYXB8CyLDe4kI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RCZjFseK; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-52bbdc237f0so2034884e87.0 for ; Tue, 11 Jun 2024 14:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718140233; x=1718745033; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FRYYoIedR0kq08TkvByDILBzLvdsSyczT5bls5QRdJA=; b=RCZjFseKSbwqpBEmh3UnvnnD+Wkpn1IAEdeXI88b/rN0tOXTNvBZM6nqfFqMUDRBIU sTL3v7HJOJZDw0LvkhM4nvRRLybniA5GvGJgEAVPDnQBp6OoBlx0dVnwyaAQ5rKEtddq nbMJ9Mps+NVcqGLOUiumUf08fGpD21CfdQTrODuLrz//FlORnLS2ZSoLmXTly3wB+lb8 dIgfY6OBHpLgSV0eI8y1tVCLR8/4+8DJU1usZrlGCTcbU3p1dyefpOhyaZPeCJ5e/Xgw IxAB9IFhEClcFnWVauyKi9kc9URM/YQz4gz1hLPD4Z6HkWUca2SShYhPMKSoPqJCzTcJ V8Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718140233; x=1718745033; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FRYYoIedR0kq08TkvByDILBzLvdsSyczT5bls5QRdJA=; b=AjEs3MR/TlFEWA4GxLuVMQyFm4u+enzKsh8PCuQSx3+P9Z2pD1DBt/7fcmRS78Uu73 oZCmhFd1M1Eh96vCZ5EDTpmZoOKndmofXL5GV+TIxhsuvdrgC/47qfqMY6Vf2DTvDQpg sc7znqr2emnNi7ym3qwep3jPmiEcrlbfLUhNe8/DfALIShwcxHq5ATHkqIjkZbfqlZIY 0oCaTn5yXn2LHWfpGkmsB+6//ZyMW1BZkuhrFc9vvt6u0wtZXsV3JYUJhoVsdSO5AGUP Rz1nYYMZb9JigXX98KjC/An19wRyn2EgqGnRL1I+7i3nX1Uq/rtTn8vqkq5uupPI4kCx kKdg== X-Gm-Message-State: AOJu0YzZc0FzG3ZapDUX6gU5we4x225T/Emm5iiGcnIUcwffzdlOnOQC 600Q4TnxelSCzcsa2wpvlWUIE5HGKHYInQV+tHRiinwu0Uy6luMXo/OLhbrDj7XU8g+YBYMSAWD RNJWAFp7uwjIW7kUcf+eaXdRq5+3NUE+YBCCP/g== X-Received: by 2002:a05:6512:1150:b0:52c:95df:6dac with SMTP id 2adb3069b0e04-52c95df6f65mr2638281e87.14.1718140232899; Tue, 11 Jun 2024 14:10:32 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240610152638.2755370-2-ardb+git@google.com> In-Reply-To: <20240610152638.2755370-2-ardb+git@google.com> From: Linus Walleij Date: Tue, 11 Jun 2024 23:10:22 +0200 Message-ID: Subject: Re: [PATCH] crypto: arm/crc32 - add kCFI annotations to asm routines To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, linux-hardening@vger.kernel.org, herbert@gondor.apana.org.au, Ard Biesheuvel , Kees Cook Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 10, 2024 at 5:26=E2=80=AFPM Ard Biesheuvel wrote: > From: Ard Biesheuvel > > The crc32/crc32c implementations using the scalar CRC32 instructions are > accessed via indirect calls, and so they must be annotated with type ids > in order to execute correctly when kCFI is enabled. > > Cc: Kees Cook > Cc: Linus Walleij > Signed-off-by: Ard Biesheuvel Fixes: 1a4fec49efe5 ("ARM: 9392/2: Support CLANG CFI") Reviewed-by: Linus Walleij Thanks for helping to iron out the rough corners on these patches! Yours, Linus Walleij