Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp7254ybl; Mon, 12 Aug 2019 10:46:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvdmHNGS1N69zgHBu3Qv62RUrWXhKYeldn4+MczGvHG6gJMjDKbdfSDP53L1wCD9MRYBgT X-Received: by 2002:a63:1c22:: with SMTP id c34mr30998884pgc.56.1565631991557; Mon, 12 Aug 2019 10:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565631991; cv=none; d=google.com; s=arc-20160816; b=OAheGn9CZbVEqhXKvJDGQ/NX0xSyHCnTYqBVaXwC+TbeZmpJ5i0bQTe00FGFBd4ZXx 65kD25/dXVpvOGM8kjBR8YZk9NJID59aGn1CX/OaWEyFnpwxu41Q8VNn1elq+94TkJrc XvkKQkp5U5A2go06D5yA+P2PRZbl3V2DTsbTaIM30qHBIl38TzHY1P6nKkg0Lo5lmc/Z wn7m+DKR5UeBNgBqcSuiVOW9FdyLpMzIJO8jw3322aC9m7X9xenW+owTcBOIgicCj3HG 18XVuBjt9BxuWkzrVlvh3xS72NeT7YdxUax1MeEF7UBiYaP98lq39tcKSfFZNQ8k0kdK h+Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=aYWUhLUhFWFaj2IBlyeqpyuiKYe3byR6cuy6O3+sAu0=; b=Dsc1Bic9NPRwXqJD6UNYrTivFBZ9h11ez/b/BE80C51Zay2qtW51vmuB3l2FSvB8cM djEw63loi1ykQ4+rDjj9VH3Tmb8H9+hKy2InLNMd/ktCJgWqebEwnSwmhfebACzg7Ip5 XwdwCCrkwcbgsR8eKyLLZF8GTVe1C6QS9589FiTKZOWTiobGqieA1wQxUOZyRxPHPpzz WM5HdpWJu5LspUyh8zLGtuOUF56SSGE8vHA9s9EliipYfxZmQR2/yRZcsRohpIlwi2Jc yBz5wHs/uMWfJi0GrHTJ3W6wh455rkKiZwJuZWesr5P6d0MkW/vwIUjUlnjYPAWfYCMN pxOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fD5g47S8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c136si4705157pfb.13.2019.08.12.10.46.07; Mon, 12 Aug 2019 10:46:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fD5g47S8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727222AbfHLReU (ORCPT + 99 others); Mon, 12 Aug 2019 13:34:20 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33446 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbfHLReU (ORCPT ); Mon, 12 Aug 2019 13:34:20 -0400 Received: by mail-pf1-f196.google.com with SMTP id g2so50038400pfq.0 for ; Mon, 12 Aug 2019 10:34:20 -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:references:mime-version :content-disposition:in-reply-to; bh=aYWUhLUhFWFaj2IBlyeqpyuiKYe3byR6cuy6O3+sAu0=; b=fD5g47S8va3cncoYwUYSfFVsmYgZaWoR2hcX0eKKr+lM5nS0EMz/ThVSf72l3/xsfD h4IlLKwvYcz9v/Oaar90eFTbIZObIY1NtQQTMtlIOPsoS+d/Hr8jTEWOrWaBCOZy1F7X W4A6Isn4U+hPtfj0YcYUWhMCB7VYTpU36Nevk= 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:references :mime-version:content-disposition:in-reply-to; bh=aYWUhLUhFWFaj2IBlyeqpyuiKYe3byR6cuy6O3+sAu0=; b=Mw8hQIgwcgz4hOdEo8/o/341wmzxgDTPj4/BEn9pYCdTQsRlcTpkNSojcShRo7aSuX gewfajytfQ4CXZAmdxAKshzE0yxukBqX/Ww2DlYpKCEm8JeqOSO3Zi1i+87cC5iOwmVM 7xLoynmVY7Mu7HL1OUUtWI/Vuzeo0WUAgtsFB2sbxFpU9FcsIksbYHbfk4wrMFq1mwow N9UA0K2JXdwk5v/L8Ri0uJKB7SnYuc5N1ulK651fmx26Stt0v0/5cDYL3KVRjlx/+R3A YltEh8HBqNDFFdqe+Ng1jUyICpBwwr4ZbEvB2f9RDaWwijOjxGuHGyOc9LksKGm58Vsk 0S/g== X-Gm-Message-State: APjAAAVALKaIWRldgVeamLAT9KBtRSqKk4VkDY9e8RWQPnv5eBt1E/Ox erSHMXoloXG4J7f+X9shnxBiIiZFqRg= X-Received: by 2002:a63:3c5:: with SMTP id 188mr30385877pgd.394.1565631259650; Mon, 12 Aug 2019 10:34:19 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id g11sm117389053pgu.11.2019.08.12.10.34.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Aug 2019 10:34:19 -0700 (PDT) Date: Mon, 12 Aug 2019 10:34:17 -0700 From: Kees Cook To: Stephen Rothwell Cc: James Morris , Linux Next Mailing List , Linux Kernel Mailing List , Matthew Garrett , Casey Schaufler Subject: Re: linux-next: build failure after merge of the security tree Message-ID: <201908121033.BFBE9516AC@keescook> References: <20190812145823.63d77573@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812145823.63d77573@canb.auug.org.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 02:58:23PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the security tree, today's linux-next build (arm > multi_v7_defconfig) failed like below. > > Caused by commit > > 45d29f9e9b8b ("security: Support early LSMs") > > I have added the following fix for today: > > From: Stephen Rothwell > Date: Mon, 12 Aug 2019 14:54:20 +1000 > Subject: [PATCH] early_security_init() needs a stub got !CONFIG_SECURITY > > An arm multi_v7_defconfig fails like this: > > init/main.c: In function 'start_kernel': > init/main.c:596:2: error: implicit declaration of function 'early_security_init'; did you mean 'security_init'? [-Werror=implicit-function-declaration] > early_security_init(); > ^~~~~~~~~~~~~~~~~~~ > security_init > > Fixes: 45d29f9e9b8b ("security: Support early LSMs") > Signed-off-by: Stephen Rothwell Acked-by: Kees Cook -Kees > --- > include/linux/security.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/security.h b/include/linux/security.h > index 807dc0d24982..23e1c3f17d48 100644 > --- a/include/linux/security.h > +++ b/include/linux/security.h > @@ -473,6 +473,11 @@ static inline int security_init(void) > return 0; > } > > +static inline int early_security_init(void) > +{ > + return 0; > +} > + > static inline int security_binder_set_context_mgr(struct task_struct *mgr) > { > return 0; > -- > 2.20.1 > > -- > Cheers, > Stephen Rothwell -- Kees Cook