Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1135039rdh; Fri, 27 Oct 2023 05:56:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVy2D7FSQgPqKxL66FUjVrZTsS9sEPb9ZthuVnKFeQ8gr2+s6zXfjXLX9jXIFXfn7AZbVF X-Received: by 2002:a25:aa27:0:b0:da0:3c22:8374 with SMTP id s36-20020a25aa27000000b00da03c228374mr2804029ybi.5.1698411414161; Fri, 27 Oct 2023 05:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698411414; cv=none; d=google.com; s=arc-20160816; b=yANDqg9pM1j95CMAFQjpd5MuGl2x2Q/07ekFiVEu/jnM4AMy+Yulc6G/K8zcxhDZK0 yx7OCeGYXEZTGV6MyW3FwG6R7NaLl3ATMVP93yobAFzt7FZjj9x4JK0gg9PqYCHGaKX1 uGXYTM2vEWIIfWMSefHCKOlokVlFKK/iRNJbbW8v2qDfXcY2bsE89DaB8KLLIAFW7obP E5M27ONLlRq1EwDr+HSpWknN8Fz2Qg3kQiLSigk4i3eWrkgrYGNE9UnSVzTkvIA0er/o 9RNg8mGuMllP+v+Iy98eCFrgHBCV6x6estIW5EU7zE+tKjwIiYfCZIw46S8zVGWSjCyq q4PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wyNrxq7gVHhA76pM8LtG070ZvSnR5mverQA1J0QSKMk=; fh=c+YI5zWD34SDsJPvw64uF31F1jVQ4yjvELTlCnUcR1Q=; b=XpHA3v3ztgghpkJ+BWGYRpiMdXoEjsp3dB2nDvW2bW3XcdFXb6bj/p6WFh3l62+2Iw p/tHnVdsSM1YcxBXlINW3za3QvSsiCiVTpnsPwJh1bq7Y5n/DPnjCZzJGak0Xqpo8ra0 WpXkz2BMjCmnpaYdgkqJ/OyOpJUhWl7tDggfEN1D9Fva192ZD1Hk9k8VLAfhr8xVqI4V ypFubZuR9SOCSXsqV7bBSHW8YqCkhNBpIb2TJvsBtPNj3tsHE2L7anp9ok9JzWOZkOkZ 7z6qqk6Y6drstNc2ix+J0P0KRlwMTkNcM42Oypx+OJ3fGuQeYED9YLzs+parbRTFeFQt zfYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=YzqdC0uH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z185-20020a254cc2000000b00d8662700d83si2098000yba.134.2023.10.27.05.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 05:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=YzqdC0uH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5E73C829F1C0; Fri, 27 Oct 2023 05:56:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345609AbjJ0M4P (ORCPT + 99 others); Fri, 27 Oct 2023 08:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345616AbjJ0M4N (ORCPT ); Fri, 27 Oct 2023 08:56:13 -0400 Received: from smtp-42af.mail.infomaniak.ch (smtp-42af.mail.infomaniak.ch [IPv6:2001:1600:3:17::42af]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D43871AA for ; Fri, 27 Oct 2023 05:56:07 -0700 (PDT) Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4SH2j11TNVzMqTT5; Fri, 27 Oct 2023 12:56:05 +0000 (UTC) Received: from unknown by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4SH2hz6f9bzMpnyv; Fri, 27 Oct 2023 14:56:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1698411365; bh=QLUOoYYvr+Bp0vOk4oq52t6xX//eg65+2Kt6Rrj+F80=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YzqdC0uHeFaE/RAqamsgM3tIr2OvFxlVcZuqCExgD/dc6aTQT1bNtoZOxCJnlIBZ8 u86WcEql0uIWVHlhJ1Cm30u13gnXd5iiuE6m+nZ0NNUfkE9CkddK6EEPWG4Kydns4l 77wmyvAubvUdJaUV594E5b95euoekVDz1muoDMrw= Date: Fri, 27 Oct 2023 14:56:00 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Stephen Rothwell Cc: Paul Moore , Casey Schaufler , Kees Cook , Konstantin Meskhidze , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the landlock tree Message-ID: <20231027.Soon0Gee4xul@digikod.net> References: <20231027163400.5764d549@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231027163400.5764d549@canb.auug.org.au> X-Infomaniak-Routing: alpha X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 27 Oct 2023 05:56:24 -0700 (PDT) Thanks Stephen, your patch is good! I tested it with the merge of my branch and LSM/dev-staging. The new Landlock changes (tested in -next for a few weeks) add a new call to security_add_hooks() which gets a new signature with commit 9b09f11320db ("LSM: Identify modules by more than name") from the LSM/dev-staging branch [1]. I plan to send a PR with my branch in the next merge window (for v6.7-rc1). We should squash Stephen's patch in commit 9b09f11320db ("LSM: Identify modules by more than name") but it would not be possible without my branch. I see two solutions: * keep Stephen's patch in -next only, or * rebase LSM/dev-staging on my branch now, and rebase it later on v6.7-rc1 once my branch is merged (which is the workflow described in [1]). Paul, what do you think? [1] https://lore.kernel.org/r/CAHC9VhS1wwgH6NNd+cJz4MYogPiRV8NyPDd1yj5SpaxeUB4UVg@mail.gmail.com On Fri, Oct 27, 2023 at 04:34:00PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the landlock tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from security/landlock/net.c:14: > security/landlock/net.c: In function 'landlock_add_net_hooks': > security/landlock/common.h:12:23: error: passing argument 3 of 'security_add_hooks' from incompatible pointer type [-Werror=incompatible-pointer-types] > 12 | #define LANDLOCK_NAME "landlock" > | ^~~~~~~~~~ > | | > | char * > security/landlock/net.c:199:28: note: in expansion of macro 'LANDLOCK_NAME' > 199 | LANDLOCK_NAME); > | ^~~~~~~~~~~~~ > In file included from security/landlock/setup.h:12, > from security/landlock/cred.h:17, > from security/landlock/net.c:15: > include/linux/lsm_hooks.h:120:53: note: expected 'const struct lsm_id *' but argument is of type 'char *' > 120 | const struct lsm_id *lsmid); > | ~~~~~~~~~~~~~~~~~~~~~^~~~~ > > Caused by commit > > fff69fb03dde ("landlock: Support network rules with TCP bind and connect") > > interacting with commit > > 9b09f11320db ("LSM: Identify modules by more than name") > > from the security tree. > > I have applied the following merge resolution patch. > > From: Stephen Rothwell > Date: Fri, 27 Oct 2023 16:13:32 +1100 > Subject: [PATCH] fixup for "landlock: Support network rules with TCP bind and > connect" > > interacting with "LSM: Identify modules by more than name" > > Signed-off-by: Stephen Rothwell > --- > security/landlock/net.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/security/landlock/net.c b/security/landlock/net.c > index aaa92c2b1f08..efa1b644a4af 100644 > --- a/security/landlock/net.c > +++ b/security/landlock/net.c > @@ -196,5 +196,5 @@ static struct security_hook_list landlock_hooks[] __ro_after_init = { > __init void landlock_add_net_hooks(void) > { > security_add_hooks(landlock_hooks, ARRAY_SIZE(landlock_hooks), > - LANDLOCK_NAME); > + &landlock_lsmid); > } > -- > 2.40.1 > > -- > Cheers, > Stephen Rothwell