Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp413478ybk; Wed, 13 May 2020 03:34:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLM/9z/Qa04jdeh3+UsTwLgjDyYv57y3XHp+oWzv/uoHS3Pd2MdK1prXWDCMAIMVsawUz3x X-Received: by 2002:a05:6402:3076:: with SMTP id bs22mr22242118edb.112.1589366044747; Wed, 13 May 2020 03:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589366044; cv=none; d=google.com; s=arc-20160816; b=smVUZZ27DgBpc3jkX/OGnhx0mF1G1uIf79Jd130wuozxNpR+78+6ixoUv+XJHbkXuN S4n2A6AZ1zcBa7txlz7rTbRE3GXv3p1O8DK3orkKuU3YLeD0ZqgWGhk9cmp0avofjYdn AbbCJCmCeirGmJFWkF4TaKUSFA+p+IW71Bj8puT2aJMq51FtkUSLSGDttAnLha164fvW 4IzCX1PaNsJnDHIe3JdDOvENBFSfeaU6F4VSceboWY6wgRnCyjIuTP/mgzzAffSYBEud t4kl6AN1GClvpe5d+6powQo6ssjdY/rk2EhbapGI3e0bY5Uo0NX9Y4/V325QD9XFHWF9 AoGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=j0g83NIEHiipiQgYyDDRZc71uODT2YrU4dc1Zjf2a/8=; b=DuLtvMaheY9vJOJF2eXKTG1A3uykJ6gio3QMtgM1PV/utJ6Nch9w184FfrW3UtGBCw ldgHn5iRwoQxzi3do2acMzT/qdKHU/TDzF7soEnzyJbWSz/R6q3BvF7/ibRea9qKRrOc sxHu2y9nJ5CeCfZ2U25clLDSEjTrYi+VUuWGTPUDiEXGQI0A8ECZB6bMgv7xqQ3d1s3E mSTv3zz2MewtNzNZVlXDfhay10c3SgpMNGs1XS2UVK2+v6+Q7uHo49OGobgb1gjLogKO yEftD39II622uzpJsLpmpnzsSOfo0jO2ynhcLevV8+L09kOYGVnbhfu7GKeOGvHI9N/4 n1Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=bjrvZ3+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si10366992edz.574.2020.05.13.03.33.40; Wed, 13 May 2020 03:34:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=bjrvZ3+h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732867AbgEMKbs (ORCPT + 99 others); Wed, 13 May 2020 06:31:48 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:50511 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727794AbgEMKbr (ORCPT ); Wed, 13 May 2020 06:31:47 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 448A65C00BC; Wed, 13 May 2020 06:31:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 13 May 2020 06:31:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=j0g83N IEHiipiQgYyDDRZc71uODT2YrU4dc1Zjf2a/8=; b=bjrvZ3+hSsatu1j9KkuhVD yXwKpC3TUhj4dmS2DTTGYl7oQHnfTVGJLaxwVak8ZXO2UpItAFmlTrCHuXrMO48l 7Bxs/SHAFu+YruV+HJl2/8erODBnGYM6AcE8N+zEEfQs72cwifl042+dTCEFICHA KpEKEfLVNyb6CLGunW5s7H8fvhcmzjifkGbzdd82jRePgUC+t4iLeRQlkHXwsdwa uG6PUmBqi6Dq8yxe0Y9q7Ig+sLAZvHv1etenM7AZ3bNYTpW4s7RSgU4VCei5RX28 Sb4H9Idm6UdKaQRDLTzVyK2z4zoOkKrMjp2pgqrM0QlvGYaAMnep6sjRl/JSh+pw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleeggddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcuufgt hhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecuggftrfgrthhtvg hrnheptdffkeekfeduffevgeeujeffjefhtefgueeugfevtdeiheduueeukefhudehleet necukfhppeejledrudejiedrvdegrddutdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: from localhost (bzq-79-176-24-107.red.bezeqint.net [79.176.24.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 5DD433066314; Wed, 13 May 2020 06:31:45 -0400 (EDT) Date: Wed, 13 May 2020 13:31:43 +0300 From: Ido Schimmel To: Christoph Hellwig Cc: "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] net/scm: cleanup scm_detach_fds Message-ID: <20200513103143.GA599365@splinter> References: <20200511115913.1420836-1-hch@lst.de> <20200511115913.1420836-3-hch@lst.de> <20200513092918.GA596863@splinter> <20200513094908.GA31756@lst.de> <20200513095811.GA598161@splinter> <20200513101037.GA1143@lst.de> <20200513101751.GA1454@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200513101751.GA1454@lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 12:17:51PM +0200, Christoph Hellwig wrote: > On Wed, May 13, 2020 at 12:10:37PM +0200, Christoph Hellwig wrote: > > Ok. I'll see what went wrong for real and will hopefully have a > > different patch for you in a bit. > > Can you try this patch instead of the previous one? Works. Thanks a lot! > > diff --git a/net/core/scm.c b/net/core/scm.c > index a75cd637a71ff..875df1c2989db 100644 > --- a/net/core/scm.c > +++ b/net/core/scm.c > @@ -307,7 +307,7 @@ static int __scm_install_fd(struct file *file, int __user *ufd, int o_flags) > sock_update_classid(&sock->sk->sk_cgrp_data); > } > fd_install(new_fd, get_file(file)); > - return error; > + return 0; > } > > static int scm_max_fds(struct msghdr *msg)