Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp445457ybk; Wed, 13 May 2020 04:23:51 -0700 (PDT) X-Google-Smtp-Source: APiQypLv9mu6nxFGRD/tKe+zr902khGbE63BkIBfDvushnj7ASLp1DYLYPA6I55PF8mqUjN9jpCy X-Received: by 2002:a17:906:2503:: with SMTP id i3mr20791819ejb.293.1589369031710; Wed, 13 May 2020 04:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589369031; cv=none; d=google.com; s=arc-20160816; b=B/M1znoS9/6yTf/dslYn2MB2tnw7Egiz0AWy5hCH1BEzxtNuQBLfu3i3Vq7WSov/G5 2olGpXV3knQkpFzO9ug7zxpE7bYg8XAEuEFR361khbmSVOKr8Fp9QO9/LMcXjUtQEs1V Obb36dCltN+iw1+gQDhYcXP+JoITlz+TvTfK2Npn+yLTMC7XiAaREzReqe1oanzMZAQn zPzYV2dWOklzcN3nY5+R+7XpuzCJ7EkC8hhI5/I5B20thIUsmX2jKG1p/biJsdKppeql ijqjBK2uct9/g8v5q5LhevZyvr08oH+/UGr8By3lav73hE8c/6gpq/rmFiIwGheYWZBf MDuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rfsAP4JKJ+bKWzdYtRsPx48Bq4cv8JT9ox/c6jdomMc=; b=h3UnplO2a/CG0bmrpqlTQ0iY2wQJOHtIaJPZgzyTe3K6uLuyHsLL2KRfIRHXzZVlqm +1JeVaZgQboCMb6h5wenQbwRiLPK0dTzXkr4ChO+Mvp5zRKNj0th1dFUghPi3yVqPTXd /Wmq6oTxKgugp4yuDuLuQsrqPc/qiCLf1npUfiY1/lbQSleChF4RF/nLCOyKj33NZHOT ILnRDarBF1ayrTNrnTW5CksP9EdtBmF7irH8HwFXXJeY4UE5mXGAXOWKYZw6Z3+ssA4h sgtev8ZgNB3arssmJg3Y3iDKg/eUQw/8HJ1gy+9hOOr48+w7GRPEM+fueaEekQIlW5kZ Sc9A== ARC-Authentication-Results: i=1; mx.google.com; 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 y11si9435091edt.286.2020.05.13.04.23.28; Wed, 13 May 2020 04:23:51 -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; 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 S1732935AbgEMKR4 (ORCPT + 99 others); Wed, 13 May 2020 06:17:56 -0400 Received: from verein.lst.de ([213.95.11.211]:45564 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732472AbgEMKRz (ORCPT ); Wed, 13 May 2020 06:17:55 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 93B3E68C65; Wed, 13 May 2020 12:17:52 +0200 (CEST) Date: Wed, 13 May 2020 12:17:51 +0200 From: Christoph Hellwig To: Ido Schimmel Cc: Christoph Hellwig , "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: <20200513101751.GA1454@lst.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200513101037.GA1143@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) 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: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? 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)