From patchwork Thu Jan 4 12:28:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinbum Park X-Patchwork-Id: 10144639 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 443CE601A1 for ; Thu, 4 Jan 2018 12:29:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34B3F2623C for ; Thu, 4 Jan 2018 12:29:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 294A126253; Thu, 4 Jan 2018 12:29:25 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, 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 B806F26E76 for ; Thu, 4 Jan 2018 12:29:24 +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=t8H6iDe0OMuPKoKnFn++/WzTUVMxf5GNHad94cvltaU=; b=UR5gib1hz8AR19 sfSHIHFmG6scl9XnJ/lsQvhb8iRxvQLWFjsaLUPJdAgkQ5MeemhPfaGEKg3AOAfgtOsbMqCwskRug IhuSI6J3tCWhwVVyYPLVnu+S1TanRMWbY9sOADWX6yZW2S10KncdYXUBXVq5H3hQv0u8uWKoH0Slx 5DoKR7VrztMTUKlZ8kRs8Xd5e1YF2sJjLdomUWCiOT6PtKQnQPlMIPCrjlJkwPzClvcy4+45VMQxu 8QY8KvHH8HRSL++sT6G1SJjxSA0oqnQ5j0RDYRM9Cls6a0K/n6fYGJfDkU6ILxx16mNSx+pU+DKAx Mm1Ou5/dmhHgUN3/aB/Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eX4eA-0007wi-48; Thu, 04 Jan 2018 12:29:22 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eX4d9-0007JQ-9z for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2018 12:28:47 +0000 Received: by mail-pf0-x243.google.com with SMTP id a90so696246pfk.1 for ; Thu, 04 Jan 2018 04:28:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=3BHM47RwL2F/d07l0kP4eI/Kq6q2ZFgCAQatLRV4gaw=; b=T29xiGi/hBxkf7a9BqD7izLWk/6YukdunuHzkuLTk/vGi/r+1fusFr3at9PUvHFV9R kDhYtHr/kklIs517M41A4ZEaXysDLguxolPuF/YuAQfrgxZGrU0FuDf81o2Am5+nhW0v lASDl++Si0iaCRqNjro1dWEHoPAejqXg2cwrAXGO9mDImBXmlNo8NNwwETWQvSBjef6O mvp98jRQGgcmnvmpT5oKy6qwFmxAOqc/8PUmcm83LlWNe+05PDgUexvgILi+zhunHRmF OLCTHr8X0dyMZeAtImEcb3PK65goRirOhNu0b7vxczMZIZQYCYLPKc1JdcHwa9N5ercY UaIg== 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:user-agent; bh=3BHM47RwL2F/d07l0kP4eI/Kq6q2ZFgCAQatLRV4gaw=; b=rueYsjf7UrxIc3owOm4bdxkJWgPDfrZSoG47Ctkxgobu6RyNSIJjAytHutVgxrvdqR lR9mXwGcSQ99MbrL1oqom4ohi0u6oGxsZA2DCNyWcTmEhsy+X6IR5LWWeU2dYnp3jRib RrBK1/8+iPJloAUNl5b0vdJWg3GZohk20W+hsoO+6zyT3ywlCoU2td+DY0i2hWnvnIQy /b1lMqyCZReGKwLEB3yOZbIcdZUR5F1PGxCjy4Lw/Mh0UIpKT1lmtAUoLM+1WjBdxn9T dp/xNBBJcOuKWvh9Xw0iODnP9F3eIlFYOVxa/pjRyJOAAUVu+zF1mZu0Ymchx8nlTJes i6oA== X-Gm-Message-State: AKGB3mKyp9nruNvaVIHMNHBgG9NXDNHWfedpO8OSpwmfaktZ2PF1MDlE WMdyiU89E3C0YTielgPeTI0TiA== X-Google-Smtp-Source: ACJfBouvwxwT2HmgnEvr7KgrZLFGGRRBo4euJulIHB/g+d481/BBgUJK8xwci+Sy3lbkfAogcYyqUg== X-Received: by 10.98.105.69 with SMTP id e66mr4574756pfc.164.1515068888049; Thu, 04 Jan 2018 04:28:08 -0800 (PST) Received: from pjb1027-Latitude-E5410 ([58.227.15.43]) by smtp.gmail.com with ESMTPSA id e8sm8664628pfk.6.2018.01.04.04.28.05 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 04 Jan 2018 04:28:07 -0800 (PST) Date: Thu, 4 Jan 2018 21:28:01 +0900 From: Jinbum Park To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: [kernel-hardening] [PATCH] arm: Always use REFCOUNT_FULL Message-ID: <20180104122801.GA3038@pjb1027-Latitude-E5410> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180104_042819_973413_9724445E X-CRM114-Status: GOOD ( 10.48 ) 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: Dave.Martin@arm.com, will.deacon@arm.com, keescook@chromium.org, ard.biesheuvel@linaro.org 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 arm prefers to use REFCOUNT_FULL by default. This enables it for arm. Signed-off-by: Jinbum Park Acked-by: Kees Cook --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 3d349b4..ec80270 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -100,6 +100,7 @@ config ARM select OLD_SIGACTION select OLD_SIGSUSPEND3 select PERF_USE_VMALLOC + select REFCOUNT_FULL select RTC_LIB select SYS_SUPPORTS_APM_EMULATION # Above selects are sorted alphabetically; please add new ones