From patchwork Mon Aug 27 14:33:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mian Yousaf Kaukab X-Patchwork-Id: 10577175 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F6061390 for ; Mon, 27 Aug 2018 14:42:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A779297D9 for ; Mon, 27 Aug 2018 14:42:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EDF3298F2; Mon, 27 Aug 2018 14:42:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E72E4297F6 for ; Mon, 27 Aug 2018 14:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=Hb5oJt9HcKGF5l+Qr6dhToRO3wpKZGnVqhkWzH+GE0k=; b=AQG 5ImMMVTfFFtN5MhwdFhmmV5kBJRiFJG5DWxlQOEFj+7mi6mefxzWDdaRM8i+wyHTTyZliio2AZcGW YcW0oXMvcpB9dWYdr2vsSHLWLzpOJU1jN+4znEPkLk6HJoTO0Psli7unfWFGF5oWnMnXDPRoka1VS 1xR2MpqzdX7yHP8FDJ5yZp8cw6fTyb81R7LXYU8GC3Bt1i6OPiLVw1MeC12n7S0rt+HeP0A1C5Dtf den7HOVj+RmZbuwZICVButcpDMRyFc/8DefkeDayzk9VtefKNCQ/2Z7A9LLSZpiMVfsICXk0jc3gx /HpLD9px7tWUO46LehPmZA0s3ATXDBg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuIie-0001HQ-9q; Mon, 27 Aug 2018 14:42:16 +0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuIaY-0003zE-Ap for linux-arm-kernel@lists.infradead.org; Mon, 27 Aug 2018 14:33:58 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8F837AFE4; Mon, 27 Aug 2018 14:33:40 +0000 (UTC) From: Mian Yousaf Kaukab To: will.deacon@arm.com, marc.zyngier@arm.com Subject: [PATCH RESEND 0/6] arm64: add support for generic cpu vulnerabilities Date: Mon, 27 Aug 2018 16:33:04 +0200 Message-Id: <20180827143310.641-1-ykaukab@suse.de> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180827_073354_566366_BBA75215 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robert.richter@cavium.com, Mian Yousaf Kaukab , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, cwu@amperecomputing.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP GENERIC_CPU_VULNERABILITIES provide a common way to figure out if a system is affected by vulnerabilities like meltdown and other variants of spectre. This small series adds support for it in arm64. Thank you, Best regards, Yousaf Mian Yousaf Kaukab (6): arm64: kpti: move check for non-vulnerable CPUs to a function arm64: add sysfs vulnerability show for meltdown arm64: add sysfs vulnerability show for spectre v1 arm64: add sysfs vulnerability show for spectre v2 arm64: add sysfs vulnerability show for speculative store bypass arm64: enable generic CPU vulnerabilites support arch/arm64/Kconfig | 1 + arch/arm64/include/asm/cpufeature.h | 16 +++++++ arch/arm64/kernel/cpu_errata.c | 84 ++++++++++++++++++++++++++++++++++++- arch/arm64/kernel/cpufeature.c | 9 +--- 4 files changed, 101 insertions(+), 9 deletions(-)