Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1517999imm; Wed, 15 Aug 2018 20:17:21 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxlwdMMU28Q1Uk83/hsFslVhVhFdeVBtijAwV2hmDmP9/MhC4M1W05JhUTFb4EY6WHCwCU4 X-Received: by 2002:a63:115e:: with SMTP id 30-v6mr27604907pgr.53.1534389441406; Wed, 15 Aug 2018 20:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534389441; cv=none; d=google.com; s=arc-20160816; b=WCpYJSDt2g5wLmIHycyxRDZ+9yTA6Je5pkYF2tjJbIV2ES6/qKKSoejyJzY/C3Ybaq b76xkJTN7l5Zo3S3AOzrYd36SWwa20mQ/W/uE5PSoadnPk8UpV7yHss4fLEE9rTBJ5Pw mtt4Txj8am3/ECcLWq1ysWFdfj41U5xpXWLZmdCvHdbCDf9fn3CTvwoxRYO6nAJVDAP7 HIEFzd8uHW+SaGk5KQFJvNhAOvTB1VemGjI8K2FXdzktwuP+RHGZTnZo6fHd/aabMAAA GxIQFqgk3+ZvEt23MpQQ/sQo6fuu6Ctp83vWAr5nkIR2hEPd0meph4qyL2alLWf99W6j QgTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=zVIrTKZc3diJ/rbC18LScnx/GT5nB9y5AwhQHrUMVmE=; b=jGsZoqi3TjO7UC6tCIJbsBHQYtnZ1Effa8O/AxlaY6Yh2fJWvxCKdf+16CevrregmT XoG8IgpsPS+w3W3Ux5mjfCTJu88E8KVTX3HS4FfGgFwgUIz46xXyubXFQ5Zj8YTjyf2r x1w5pZJb9HNnzZbC7PhhOEnpGWYzyLfIJuXagGKqze7dAX4YuniZmOeZQY1UPu7VWQtD ijhHUvzK4tvZ5Y17/3AqwQffM3wDxiNxEdTPiMBtcTL5DXVHrRXtih11xipbVLXdgOdX aGUA43FVnCeiaByXjSzTXE5KlUbc3N26/pC6+LGb7E2UF0kpVVemg63s8P03KjlhhRs9 Rb6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CXZKtRvj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si15588118plm.181.2018.08.15.20.17.05; Wed, 15 Aug 2018 20:17:21 -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=@google.com header.s=20161025 header.b=CXZKtRvj; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731379AbeHPDAf (ORCPT + 99 others); Wed, 15 Aug 2018 23:00:35 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:36544 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731294AbeHPDAf (ORCPT ); Wed, 15 Aug 2018 23:00:35 -0400 Received: by mail-yw1-f67.google.com with SMTP id v197-v6so2207819ywg.3 for ; Wed, 15 Aug 2018 17:06:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zVIrTKZc3diJ/rbC18LScnx/GT5nB9y5AwhQHrUMVmE=; b=CXZKtRvjrcrWCxnC9Vtz5m6cpZGQy5R085gid0FbON/wb2ot+7dkBi2M6ZqKN2avfD iecEh7ypyPvO5BFVpLdwVNUS7GseZxOAwinYlQ8WaHeLVYFRyFPSD0TUfkBH+7kaKfps DPqp8nNLOQxlKyP8A/OxfbPnrvUtTgPFUFamDmYNsianZ2UPBZdrcEZtZsUTDveoXvt6 ySlSXRp1215HyHu1ryaKgXNfwor+jXkev10jEDunjzT3PvP57S3wa7EghGoulMXzEkM1 vHxTEFGz9XNn+VaoMlGEfjyfxFJ4067qJBAHn069IlJC47kqJIvG5FFG5nlVoIGBDUuo HkUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zVIrTKZc3diJ/rbC18LScnx/GT5nB9y5AwhQHrUMVmE=; b=ZQ8je13UtqiKGwzpT2n7JLl3LBktvRsZN4WJYwzLFdpguwIGw+/uTpjuvHvdhlEI/Z C1M5LHdb1ytREpIsr57f4q633Ef5p7pP+duBo+iklOl3ThhQBE4NGwWoI+ATZrxGfGXx XU7kcAVBHfd+uQVW+hx7gCqezbTVxP+85N2rVNoPiJrN8KplCQE/eqlPkzQFnQAILsVQ QGmF1mP+ir58RQdo4f1LhjHJjeoOJio+UxZtPOH+DhBbQpHZjvf8rGsShRj6kSogcqEL LK02Pmn/BAKlD+RlYdHBwiM8v5YDPK6Xfu19k3trp5jwxJH+CS1copcP91OKlfQlWFea uzzQ== X-Gm-Message-State: AOUpUlF/RXeZTJ/o3rWXwZgD5sIsMVhG4tG3Or6WERNnf0awB/+gulpi dYzsKdOiCPtVUZMcX+FFHurlwhbTU8Qsd8q8Q4TkPg== X-Received: by 2002:a81:f102:: with SMTP id h2-v6mr16480195ywm.297.1534377960050; Wed, 15 Aug 2018 17:06:00 -0700 (PDT) MIME-Version: 1.0 References: <20180723151224.69a73892@canb.auug.org.au> <20180723062046.GA2577@kroah.com> <20180816094254.6e0bd68c@canb.auug.org.au> In-Reply-To: <20180816094254.6e0bd68c@canb.auug.org.au> From: Rajat Jain Date: Wed, 15 Aug 2018 17:05:23 -0700 Message-ID: Subject: Re: linux-next: manual merge of the driver-core tree with the net-next tree To: sfr@canb.auug.org.au Cc: greg@kroah.com, davem@davemloft.net, netdev@vger.kernel.org, linux-next@vger.kernel.org, Linux Kernel Mailing List , Dmitry Torokhov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 15, 2018 at 4:43 PM Stephen Rothwell wrote: > > Hi all, > > On Mon, 23 Jul 2018 08:20:46 +0200 Greg KH wrote: > > > > On Mon, Jul 23, 2018 at 03:12:24PM +1000, Stephen Rothwell wrote: > > > > > > 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 arbitrary 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. > > > > > > -- > > > 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 = 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) == -EEXIST) > > > - sysfs_warn_dup(kobj->sd, grp->name); > > > - return PTR_ERR(kn); > > > + if (update) { > > > + kn = 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 = kernfs_create_dir(kobj->sd, grp->name, > > > - S_IRWXU | S_IRUGO | S_IXUGO, > > > - kobj); > > > ++ kn = 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) == -EEXIST) > > > + sysfs_warn_dup(kobj->sd, grp->name); > > > + return PTR_ERR(kn); > > > + } > > > } > > > } else > > > kn = kobj->sd; > > > > > > I think this is correct. Rajat, can you verify it please? Sorry, I saw this very late. Yes, this is correct. > > > This is now a conflict between Linus' tree and the driver-core tree. Greg, please let me know if there is anything I need to do about this. Thanks & Best Regards, Rajat > -- > Cheers, > Stephen Rothwell