From patchwork Wed Sep 20 20:49:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9962485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3711F60208 for ; Wed, 20 Sep 2017 20:50:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28C8B29232 for ; Wed, 20 Sep 2017 20:50:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D7C929234; Wed, 20 Sep 2017 20:50:38 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 A7CA529232 for ; Wed, 20 Sep 2017 20:50:37 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date: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=lVS7gJ8s650SvewOz0EIYa2gOCS+zUGr+KvCJF4eKjQ=; b=fPPFvxzJdjlxdb KOAA5yU7AjCsT2SjnRP2VmW7buUtuDxVTbgHkfr7E+RLTBuIo4mNTod06sOf8xkmQOXUKfubhTnYr 9+OdfT0DrtJNRW/gp27y9Abcp9INXtsXq0aq8/VFlcCOng17+k00Xt5doFa67zOebFsk2Gao+/YZ6 fjQtddSQuYi3aIFirmNBFArDGZlc3eltMxhNuNecWtyra7JhZaaoLzNvS+uJmBWd4mnSMb3oCs2vU Iwwu9GNiw0aS308KVBMBmuDAOiZlgxPuieo7SWCfSKDAQfCgn+c2qdEObIxyfkyFBeCjv8rv+geQD tmnSV2+RmIrdEsVXRMXg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dulwx-0001b0-2q; Wed, 20 Sep 2017 20:50:27 +0000 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dulwt-0000KM-Jn for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2017 20:50:25 +0000 Received: by mail-pf0-x236.google.com with SMTP id r68so2120340pfj.3 for ; Wed, 20 Sep 2017 13:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=mrCdzK5IKxeKWKpPRG1aiOazbStHA1pjrfeNWjac33M=; b=A+ujeLXwS266/PEIbXqyv8ihaMfMaZyhmTF9f5u9xrspkjq+7R8Su6h9NXcexXTTy4 QQpRiELetE8VO8urIjxlv+4xitD1U1INrxvMriim+KVYLkQQKC/dXNI2+qUNmMFrQ4bq HZWx++Ns5KqaVpXMTxG/Xa4VJRM6F+fEsAc0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=mrCdzK5IKxeKWKpPRG1aiOazbStHA1pjrfeNWjac33M=; b=EC4Jmhe3F5OO8htprSv+fI2vgka8sLB6LjL5kKmO5bdDJWmsvQbTRMKZhRz3QXbln/ AYmeXNo1twTVKeBRIk53xLZLi46YlvLN6WmcQIuSodjSN825hYkxEQzDNrtFiv7Jv05Z 04MhMbnQgl4HA5CFzBHgV5SATjJlqLkJmlosXh+iyh6mxgwL7zKp6LfjYilxKP4sFu2J iobCeY0aq2VkzaovinI/FANjzuZ6n4bpxfrKorjzv+U+u37v5w1UeVs9+w+lHlUr/2O6 PcFxDXBLVR7fuY0rXzrksyE0TYUM13xuZ2kiyId6bj+hYoHWXQ2H5G8HI4UpUFVTmiJD lxuw== X-Gm-Message-State: AHPjjUjLaa3PKroDxvVoBZgF7zIAMoGuQ+alM0C9ycYa8pSSz3NJiaiX ze1YlZ5npSBUF3yfnf25XFRr9Q== X-Google-Smtp-Source: AOwi7QD+UrnQ3iVuFlSP6o6lChMWnab2U77h3GOo5Jf1EP5KBQQ0up87v2knaA+N9Ug0cvc18vdQrQ== X-Received: by 10.99.99.130 with SMTP id x124mr3368850pgb.385.1505940601039; Wed, 20 Sep 2017 13:50:01 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id u8sm10210627pgq.52.2017.09.20.13.49.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 13:49:59 -0700 (PDT) Date: Wed, 20 Sep 2017 13:49:59 -0700 From: Kees Cook To: linux-kernel@vger.kernel.org Subject: [PATCH] arm64: Always use REFCOUNT_FULL Message-ID: <20170920204959.GA79741@beast> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_135023_690202_7CDD0896 X-CRM114-Status: GOOD ( 10.60 ) 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: Catalin Marinas , hw.likun@huawei.com, Will Deacon , linux-arm-kernel@lists.infradead.org, Ard Biesheuvel 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 As discussed at the Linux Security Summit, arm64 prefers to use REFCOUNT_FULL by default. This enables it for the architecture. Cc: Ard Biesheuvel Cc: hw.likun@huawei.com Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Kees Cook Acked-by: Ard Biesheuvel --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0df64a6a56d4..9fe7a7f4c94c 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -119,6 +119,7 @@ config ARM64 select PCI_ECAM if ACPI select POWER_RESET select POWER_SUPPLY + select REFCOUNT_FULL select SPARSE_IRQ select SYSCTL_EXCEPTION_TRACE select THREAD_INFO_IN_TASK