Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5418469imm; Sun, 22 Jul 2018 22:13:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfOcLPYkueJQUU8RVArHGFeUpkWzWE7A1F21hFqIcIoj1N3wsDnPvMqksCJTwLyexUUoJdm X-Received: by 2002:a63:b02:: with SMTP id 2-v6mr10482123pgl.301.1532322811899; Sun, 22 Jul 2018 22:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532322811; cv=none; d=google.com; s=arc-20160816; b=CwJI9NMEU1GIRtZV1QGDZUgM7eVnG1GPWEI/WJkgINiKsJJhn36//CrCvg5bLdJyvP 8hZVDoJdm96F2O4RHpU0DvGSgXpejdkNPqfsSax03cZNBlSXLLMplbVs/92E8ob3cHHH Ka8OR9RIbWteZI6XMq5dTqrKICKCQIMTstZ4UVw0nF6fG11b7NMlVihKx8EJIaHL0viN XNLQr+KQfUE2dwffSPwJLoa/AWzlb1aIpiLyIz3jHixjkr2PSQtCrV547NVoTO12G371 loodtvCAAGo5/JB/oINJ+/qsENO3HMbRb/8oBd1+MVS4v0tT7m/n1JMGbe9LjGre7Avf 7uxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature:arc-authentication-results; bh=5OdEAE7EnJ83w2VxC9MxaM1zjIXU/8WFhK8gVBmpP0A=; b=o4Vm15LdqA4hNFLxJtrJ8KQPzL0Z7FTOLrL6P745SCQgXuVD0crRaSiDOYUriv7hV7 H+xF1BpIbKIVp0UL42gyXdHlF41upBWo9uKjVxOqb1J3MQYzgIVzcr73XOnfHYmhLqsf 9Cnl4JMT/HK9q93bmKjHKuFU+vkVWLip9x8vmrLteHEIuzmFwrcI85glCnD31t0EO12r RfvWgy/sx+FFcJbMy97kgRn2KJ0vbeQqQJS3Ch4bMCDENWpfqB1Q8kuUkmDlNbQv9oKj XJq8PacRfHBFH7dEY8ck9Ns9Ifu3XhnhLvhH5FzTUmPmoeawsXQFG0fbRw7LhceoC3EU frWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=SbGY6Xxd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4-v6si7637377pgc.284.2018.07.22.22.13.17; Sun, 22 Jul 2018 22:13: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=@canb.auug.org.au header.s=201702 header.b=SbGY6Xxd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387805AbeGWGLv (ORCPT + 99 others); Mon, 23 Jul 2018 02:11:51 -0400 Received: from ozlabs.org ([203.11.71.1]:50511 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728188AbeGWGLu (ORCPT ); Mon, 23 Jul 2018 02:11:50 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41YqP45wtVz9s2g; Mon, 23 Jul 2018 15:12:24 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1532322745; bh=uEy685YQ3HSm4JjhPS9fLwAkPjoJLSDVwLiPEnfrtRc=; h=Date:From:To:Cc:Subject:From; b=SbGY6XxdfMqwq8hmLrT/PsccAwgFEl9wCi0gN80k7kthU7bpcu4lFC9qja49cuHtE lGBT+rCwGHGVkGoG5Ey3nlqmR7VaGUVBnJathA0WzGoZkKLV+xHtTygz0hCOSO1gKg M5VcHJksI5Ia+jZhCvc1MATTNq3GGezeD1ryg0cupDERjOTHIqhImiCFiGO8E8K09C wAhZi12d2wOy3AjuixJc1Nfe+r5kIIy3xDEM+o5vP3JDa4aYUQfOcSK4emyBC8/bbZ /yqJCydO/pEL83y+acFSQ9cKx7UFctAV+9UYYW2kBC2dg9eyg8qZxMnKJBOyn0/PXH 04Ribqyq8PpLQ== Date: Mon, 23 Jul 2018 15:12:24 +1000 From: Stephen Rothwell To: Greg KH , David Miller , Networking Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Dmitry Torokhov , Rajat Jain Subject: linux-next: manual merge of the driver-core tree with the net-next tree Message-ID: <20180723151224.69a73892@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/IOndqov/G_gyZt2cVw+4vKf"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/IOndqov/G_gyZt2cVw+4vKf Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Greg, Today's linux-next merge of the driver-core tree got a conflict in: fs/sysfs/group.c between commit: 5f81880d5204 ("sysfs, kobject: allow creating kobject belonging to arbitr= ary users") from the net-next tree and commit: c855cf2759d2 ("sysfs: Fix internal_create_group() for named group updates= ") from the driver-core tree. I fixed it up (I think - 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 fs/sysfs/group.c index c7a716c4acc9,38240410f831..000000000000 --- a/fs/sysfs/group.c +++ b/fs/sysfs/group.c @@@ -122,15 -118,23 +122,24 @@@ static int internal_create_group(struc kobj->name, grp->name ?: ""); return -EINVAL; } + kobject_get_ownership(kobj, &uid, &gid); if (grp->name) { - kn =3D kernfs_create_dir_ns(kobj->sd, grp->name, - S_IRWXU | S_IRUGO | S_IXUGO, - uid, gid, kobj, NULL); - if (IS_ERR(kn)) { - if (PTR_ERR(kn) =3D=3D -EEXIST) - sysfs_warn_dup(kobj->sd, grp->name); - return PTR_ERR(kn); + if (update) { + kn =3D kernfs_find_and_get(kobj->sd, grp->name); + if (!kn) { + pr_warn("Can't update unknown attr grp name: %s/%s\n", + kobj->name, grp->name); + return -EINVAL; + } + } else { - kn =3D kernfs_create_dir(kobj->sd, grp->name, - S_IRWXU | S_IRUGO | S_IXUGO, - kobj); ++ kn =3D kernfs_create_dir_ns(kobj->sd, grp->name, ++ S_IRWXU | S_IRUGO | S_IXUGO, ++ uid, gid, kobj, NULL); + if (IS_ERR(kn)) { + if (PTR_ERR(kn) =3D=3D -EEXIST) + sysfs_warn_dup(kobj->sd, grp->name); + return PTR_ERR(kn); + } } } else kn =3D kobj->sd; --Sig_/IOndqov/G_gyZt2cVw+4vKf Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAltVY7gACgkQAVBC80lX 0GzHPQf+J0/auWMhpVVK4yFCEdUYpMxE7Rdox/lf6dwyOLQOM2TK1d1mWywV5eLy qhIRwzOfSP7IJsAS5Oed/zZjdaNt6YYSFaKkzqiIq9yNasCqvr0fmvgfUucr/gE4 irv5YMDWKsBbJ1oOsTVsbc1MeB7RfPE5vekea3RWG1QqEeh09lyJcwtysCwUdM62 Nlw44p+oGPi+L+x/poGCOoPuUKBAtJsi5dqbCfeegdx0OyAA5kNnr1FadkCuL4sY 5Cwr7yj3ArhGrMMBuFwKnNCIO0efptr+kRaYp9O8jOA3X0o5zn8r3vRsRGadxu3e N6Zd1ieT0ARvdJtAnZVUGRBqdkpcig== =ImcX -----END PGP SIGNATURE----- --Sig_/IOndqov/G_gyZt2cVw+4vKf--