From owner-freebsd-net@freebsd.org Fri Dec 15 14:08:52 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BFD9FE82427 for ; Fri, 15 Dec 2017 14:08:52 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3AB7376FB5 for ; Fri, 15 Dec 2017 14:08:52 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-lf0-x22d.google.com with SMTP id g80so6139535lfg.0 for ; Fri, 15 Dec 2017 06:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=FDTTHTALRYYvKY/PpPXJBEOkA6+7LJeIf5CZ0lK//KA=; b=e9mR5gOjzrzcUdHx+Uu8RJE3PZgX2F4SIRELDzG5QpMzKvGGwdAYuSwBynLCDyHG3y eJ+sZVPr0EJgs4YLStG8ZuMR2U0NW8tlig60IrBJ28cCyQTlrC+64zZh5uNaSZ3O8/Nf apSfspIh5xVdWRH0BkMekduc208PQe69dDJIuRo9av44je1+GZcb+PCJOryjbsYhINZu hTFHbhn0HW5vWPSshwcdkH/vZ1KhJL/KfSC6ZfV8Hk+VeUvDMRg33iFoEcOL8tMSIJDr tN258LLBQkTb4nUnA7Pdrp3/qSr8KwFpWWi+SNeTH4AuoAaiNp3nOM2mPUr6tODJ3Su3 Tw7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=FDTTHTALRYYvKY/PpPXJBEOkA6+7LJeIf5CZ0lK//KA=; b=unOu+ss4q0hXP+bB5cVHPlaQ7vpUpnadxcdsM690GXq0k9KepAeCYvppVInxIlh9B+ ceHUMRdk5nujKlWh/yWkqC/lQcH/LVV5EqxU/L1sG7GSv1NCJbyhNQjI9NXPqPu3hbmv O4B3BAANg/GNIRWtjGLVpDim6NPxhwaX5R+nxvmtTZBD5Vkp95kT4c17Pmp37PP4YL5D wtO+RB/ImHN5tZcohzjGyD+42QgD6tBYPoLC3cyBBWoDNa5ad6ftbqm/GTG/i/JWJr6f RVNVP/Zt5HLf3igaQsr3RFOZuSHZ+5IrEypJIdonzu1L27JDX9zSjAUdqmrWj10+bmlT LWGg== X-Gm-Message-State: AKGB3mK0+05Mi5YbWPg0wNvMvOCWywShTyr6wXxLp0TWmFUwaGzHWr0i Rlt05meAKh9K2h+S7ufe7oSJIwFJxERQ745KjI8= X-Google-Smtp-Source: ACJfBosz1FD2c+D7Ne6cYVFqI05AK7dbzTQ329v2zcxWIeY5LVSk/4VZ9q2YrwWSX2dTlQpM6jUkb4WoUFyFhlzjue0= X-Received: by 10.46.27.24 with SMTP id b24mr6061882ljb.54.1513346929552; Fri, 15 Dec 2017 06:08:49 -0800 (PST) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.179.76.19 with HTTP; Fri, 15 Dec 2017 06:08:48 -0800 (PST) In-Reply-To: <20171215143456.278a3dc31bb09c9217e83927@aei.mpg.de> References: <20171215143456.278a3dc31bb09c9217e83927@aei.mpg.de> From: Alan Somers Date: Fri, 15 Dec 2017 07:08:48 -0700 X-Google-Sender-Auth: l8MwKYDe08Tw7W47g3Ry20m1jJA Message-ID: Subject: Re: Fw: 100.chksetuid handging on nfs mounts To: =?UTF-8?B?R2Vycml0IEvDvGhu?= Cc: FreeBSD Net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2017 14:08:52 -0000 On Fri, Dec 15, 2017 at 6:34 AM, Gerrit K=C3=BChn wrote: > Hello all, > > As I got no response at all on freebsd-fs, I try again here... > > > > Begin forwarded message: > > Date: Tue, 5 Dec 2017 09:04:51 +0100 > From: Gerrit K=C3=BChn > To: freebsd-fs@freebsd.org > Subject: 100.chksetuid handging on nfs mounts > > > Hello all, > > I just found that the daily security job on a system here was hanging on > chksetuid due to a defunct nfs server. Specifically, it turned out that i= t > was hanging on this find: > > --- > find -sx / /dev/null -type f \( -perm -u+x -or -perm -g+x -or -perm -o+x > \) \( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ > --- > > > My understanding up to now was that "-x" should prevent find from > accessing mounted nfs dirs (/ is on local disk, the hanging nfs mounts > are somewhere under /data/...). Why does the thing still hang, and how ca= n > I prevent this? > > > cu > Gerrit > > This is a known bug. It happens when an NFS filesystem is mounted on the same mountpoint as a local filesystem. It's fixed by [1] and MFCed by [2] and [3]. What version are you using? [1] https://svnweb.freebsd.org/base?view=3Drevision&revision=3D306048 [2] https://svnweb.freebsd.org/base?view=3Drevision&revision=3D306642 [3] https://svnweb.freebsd.org/base?view=3Drevision&revision=3D306644