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=-6.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 14EC1C433FF for ; Mon, 12 Aug 2019 17:34:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6DEE2070C for ; Mon, 12 Aug 2019 17:34:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="fD5g47S8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726479AbfHLReU (ORCPT ); Mon, 12 Aug 2019 13:34:20 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:37459 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfHLReU (ORCPT ); Mon, 12 Aug 2019 13:34:20 -0400 Received: by mail-pf1-f193.google.com with SMTP id 129so3119802pfa.4 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=VUxz+IUEh1LlDxkBV0FccpfRCnNFXWdzWtA8q5fpigIK422R3hBbavnwBDDBJ/eQcS c/nKVh1F5STwilvkUQT5UWEKvOcsVbLmN1z1jFX96BWPr4bYcyqgmul5LKIajor3nSfH K+2mQ795IHQfFJEF340RqxpgC4uxtPAsp/T4dzy9uoluslIsiFhcaxzxYhVSo7w257tF LgL36pSRrLsmtKq271xw+xeNaQUdwG2gZl8cb4h5Ym9+uuhB0DbZctEa1ZTPcz8ET7WY wxgmocDcGrjr8UuCZ6QsFrU/z5Vp0aLht7BsuYcva4ao/VNWF5U4kL7Ffw9LxK4C2rgs eZ+Q== X-Gm-Message-State: APjAAAUuxn3dT4HEhXiJrltYHou5voFqXSCvrikmUggkMhT3IQRK/jDP EO8il4HGd26OZwkqbWZHi+zozw== X-Google-Smtp-Source: APXvYqy7nuO9ZhZSKKRKRLzTnBsZpSlU4CtfOGJO2cEtb5hebTjlSiZu4egZRrDRFERHPfcTBeSvxw== 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-next-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-next@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