Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp710303rdb; Tue, 5 Dec 2023 18:58:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7M/Amul6s1JVLZ2Tem3uvjDFzgTZ8gOAqQ6JF3MWdTrVITqthekfs9WUk08LOnh2ynlPF X-Received: by 2002:a05:6a20:1f2a:b0:18c:64e0:4474 with SMTP id dn42-20020a056a201f2a00b0018c64e04474mr119675pzb.1.1701831512666; Tue, 05 Dec 2023 18:58:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701831512; cv=none; d=google.com; s=arc-20160816; b=YHEY1FVMnakkFkMDVYYCAJIFlXXk+KmWgbwk2m/GmOOfFCUVQVz9ZrdZ59W6J54I3R ZxpHpVVyjevgUc7RT+1S0B9OTeC+2+nyNdk2S00AKndNMxsfrAlaoXSPw/O5QTUuTECd gka06Djy5VJ2i/c2AWT06ICtlbheFFNIoBgsfpDxvKPsD/uR4qc3ZwazM7lnTqtyPF8l GEJrmh06xXjgsIZEhqxhoDdh+IrJzBEaVgE+n0u2W2Sr0L+Jt8n8l+YMEypabqybGVSW HUVP6jKdKWpOvYUK7jvr0YCwzBrnysiNJFUKQcI+/+ChASkp+m+DJy46zvD1AWddb/54 kVjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=Xew00TzhJeX9h8OoFc9MuWr95HLDQ8hDCzCA6kpkblA=; fh=bWzpxpfwzLLhKrB10sQQU9LDW2ErFvGr7pfKR18Z554=; b=a0+yF2O5JHeiqxPi1xFifAabXN5lBkooNzLS3EQKvDlYqXU9IUzRMRzC0EMbhZ16iM b4ZViBU0Pi+MOP1WyZGMk63L+0So0RY+bf/sPVa/Me6uhxniWwZkk2FbQ2nhnhOR5o7P xVMod8ui8LvhpBySO+dOn4bERKAqXoPc396cOAF1JuCCEV2p3Iq1M/4HGYz8MCI80Yub mtolqNI7mcU7Jaat/CzUGBZ50EOE+xED5cEEfK1VutfVmLFcGPCiC9uDr+BxaU0im2ll 42FREtsmjvb2S9WuokTCKzWAHlyqGYctWuJJYcrwGlo1uG6VwoaGJtcTHZnCFJil5kiF ZxDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=tfJoT5Uc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id p21-20020a170902ead500b001d0b4540b7esi3478878pld.314.2023.12.05.18.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 18:58:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=tfJoT5Uc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8791980B6328; Tue, 5 Dec 2023 18:58:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229902AbjLFC5a (ORCPT + 99 others); Tue, 5 Dec 2023 21:57:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjLFC53 (ORCPT ); Tue, 5 Dec 2023 21:57:29 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D961A5; Tue, 5 Dec 2023 18:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1701831454; bh=Xew00TzhJeX9h8OoFc9MuWr95HLDQ8hDCzCA6kpkblA=; h=Date:From:To:Cc:Subject:From; b=tfJoT5UcFg9R+rGCLulA+8B5wHpmvHkdEfDK6zaJ2qIWAd1l1lVWztrvL/299aLOv wMxfh/t7qWjsPR/X1UN/7v/3fS4ORS+i/LASkm+PgkLSBZm+D8b0K6mbFLAmkmYWXn jee/spt99D7Wu8Mpcynd275SdevIJ+WwqzLRy85eAM4l21oKShFTF4AmCsoLxGyV67 Mg0MtYHIHKAzTu/1Sx8KAbgmk5f2jZnX8o31Az6jbTsBU0JVYjXq0X09YxugeRxmJE U0bLAQTqhCta+JlYQGyn7udaiCSKaveGBv+yigRJ3vhabGMLj4sKMRLpso3FIoUhgO 9YdQNHM5aYzbw== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SlMWx498Qz4wd7; Wed, 6 Dec 2023 13:57:33 +1100 (AEDT) Date: Wed, 6 Dec 2023 13:57:32 +1100 From: Stephen Rothwell To: Luis Chamberlain , "Eric W. Biederman" Cc: Alexey Gladkov , Linux Kernel Mailing List , Linux Next Mailing List , Thomas =?UTF-8?B?V2Vpw59zY2h1aA==?= Subject: linux-next: manual merge of the sysctl tree with the userns tree Message-ID: <20231206135732.46d1b2b9@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/vnGLMUvy2kcP/dSEqZio71j"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 18:58:29 -0800 (PST) --Sig_/vnGLMUvy2kcP/dSEqZio71j Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the sysctl tree got a conflict in: ipc/ipc_sysctl.c between commit: 54e1011bd95a ("sysctl: Allow change system v ipc sysctls inside ipc names= pace") from the userns tree and commit: a6dd7f5a787b ("sysctl: treewide: constify ctl_table_root::permissions") from the sysctl tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc ipc/ipc_sysctl.c index 01c4a50d22b2,d876f96f5992..000000000000 --- a/ipc/ipc_sysctl.c +++ b/ipc/ipc_sysctl.c @@@ -14,11 -14,10 +14,11 @@@ #include #include #include +#include #include "util.h" =20 - static int proc_ipc_dointvec_minmax_orphans(struct ctl_table *table, int = write, - void *buffer, size_t *lenp, loff_t *ppos) + static int proc_ipc_dointvec_minmax_orphans(const struct ctl_table *table, + int write, void *buffer, size_t *lenp, loff_t *ppos) { struct ipc_namespace *ns =3D container_of(table->data, struct ipc_namespace, shm_rmid_forced); @@@ -191,21 -190,7 +191,21 @@@ static int set_is_seen(struct ctl_table return ¤t->nsproxy->ipc_ns->ipc_set =3D=3D set; } =20 +static void ipc_set_ownership(struct ctl_table_header *head, - struct ctl_table *table, ++ const struct ctl_table *table, + kuid_t *uid, kgid_t *gid) +{ + struct ipc_namespace *ns =3D + container_of(head->set, struct ipc_namespace, ipc_set); + + kuid_t ns_root_uid =3D make_kuid(ns->user_ns, 0); + kgid_t ns_root_gid =3D make_kgid(ns->user_ns, 0); + + *uid =3D uid_valid(ns_root_uid) ? ns_root_uid : GLOBAL_ROOT_UID; + *gid =3D gid_valid(ns_root_gid) ? ns_root_gid : GLOBAL_ROOT_GID; +} + - static int ipc_permissions(struct ctl_table_header *head, struct ctl_tabl= e *table) + static int ipc_permissions(struct ctl_table_header *head, const struct ct= l_table *table) { int mode =3D table->mode; =20 --Sig_/vnGLMUvy2kcP/dSEqZio71j Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmVv4xwACgkQAVBC80lX 0GyJNQgAiWO/K7L2+KjmAFLk4pg11cH/ucDqiwQPtAI1OY6Kvc6ubjgWKiEpdZjb JzKLev/6kALbH4lk1Ch3dpuNmt74b+muukh3h87RIXz+KQuTSO1iYsXhklyLgDwn 0xBphoed1pWUYkmssRgrrgTQHXyhsXgLVt1ZKQhv8jkKPFv0lqDZ0NhI1LbynW5j OC5qROlEryuQWZiPduDTDA3pY+Coi5O0wnMXWYWkXrxd/s2xJ4RkOFhPXyrQtDza 76JJgfaGY/amqcntB252jS39LQBx9WVez/k7vxjvwQSHrWgla3TXh2o7GifvUC4r xB5YO/3fR7gP+g53WpEh6SLvEiE4zQ== =3LaM -----END PGP SIGNATURE----- --Sig_/vnGLMUvy2kcP/dSEqZio71j--