From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E61C8C433E2 for ; Fri, 11 Sep 2020 15:33:15 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 73AFD206E9 for ; Fri, 11 Sep 2020 15:33:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IEOHy1lo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="InakMd/C" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73AFD206E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QMyamGMNPI1LBwhWe5g2dO6ivKEgJEmwuoz+b6vzt3I=; b=IEOHy1loOZ9l9+gJtwnfL0rLs W5B+o3NXJj0epRwdgq4kQ/HUZ0hw/yuHEu2yQAxoU4c5kQGMDBQFXvITmKQGNuUDGKtRhb5YjPq8Y w657JKGO07IC/LEVEahGtnW7CququMib9PXuEWptzZJX7aYOv67Vm1GinEksEGL50XNCoK4OGP1Bh AFYhTgwhmE2eAY5D6Qr+zScSroaE1uni2l/GSFlIma9H2Y6fM9S6ffOeGs3O3kmP+9N3PRU6bpzFF kMDQcPYlr8AzOMhCS4o+6lXBXxFCaiK0LxoG3yIXY7a0Y4YPOASVuneyazg2R7vXGqrspYU6HMpHH FKSvPFfww==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGl20-0005n0-M2; Fri, 11 Sep 2020 15:32:09 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGl1q-0005iX-2g for linux-arm-kernel@lists.infradead.org; Fri, 11 Sep 2020 15:31:59 +0000 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A442B221EB; Fri, 11 Sep 2020 15:31:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599838317; bh=pnr+KrdHtt/fH3wF75oJarZDsiMbxqG9tfzitZPzg8w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=InakMd/Cg43FCBJCQfqfmzrJM5frJWjVHYplr4j2J9EmgQ1ATT4usy1uDp2E2uh6v BF1Y2778HCu4JJdHNCAk0LRdlyIo8hAI8bHioZ15YupxJ8gdIh+jkwXXsLwkgJAWPh tIKn6ZUZiRFKs3ALZhkuLHook1AQ0Pk1LR/XL6d4= From: Will Deacon To: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, Anshuman Khandual Subject: Re: [PATCH V4] arm64/cpuinfo: Define HWCAP name arrays per their actual bit definitions Date: Fri, 11 Sep 2020 16:31:49 +0100 Message-Id: <159983818680.1465915.16143462979896283824.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <1599630535-29337-1-git-send-email-anshuman.khandual@arm.com> References: <1599630535-29337-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200911_113158_215217_6F9DD57E X-CRM114-Status: GOOD ( 11.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Suzuki K Poulose , kernel-team@android.com, linux-kernel@vger.kernel.org, Ard Biesheuvel , Mark Brown , Will Deacon , Dave Martin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 9 Sep 2020 11:18:55 +0530, Anshuman Khandual wrote: > HWCAP name arrays (hwcap_str, compat_hwcap_str, compat_hwcap2_str) that are > scanned for /proc/cpuinfo are detached from their bit definitions making it > vulnerable and difficult to correlate. It is also bit problematic because > during /proc/cpuinfo dump these arrays get traversed sequentially assuming > they reflect and match actual HWCAP bit sequence, to test various features > for a given CPU. This redefines name arrays per their HWCAP bit definitions > . It also warns after detecting any feature which is not expected on arm64. Applied to arm64 (for-next/cpuinfo), thanks! [1/1] arm64/cpuinfo: Define HWCAP name arrays per their actual bit definitions https://git.kernel.org/arm64/c/4e56de82d4ec Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel