Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp901253ybt; Fri, 26 Jun 2020 14:32:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCTPVVlx7LK2DKz9Z/ZmSTrHbDUxP9/rothxE1pYDKVgJx6yMv8qrewg15ZNE89+Objulg X-Received: by 2002:a17:906:970a:: with SMTP id k10mr4564132ejx.236.1593207143827; Fri, 26 Jun 2020 14:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593207143; cv=none; d=google.com; s=arc-20160816; b=QcdC8K4uEAwCKjavd+i4l9G8fTDYVkEtM5lYJFNctoOw27YGrqv1B2s2hHXyxcA3W+ NM4QgMmQLDqYNSaZR+MnL7oMERBEQInOQBLasSUEIP6RPxUCAuCsNGHi/pa4lDsaRbOa 4vGC8zRHz1a43V3Go7hpU0CCvr7bsIT03d+FxlzP/MvURLZ5/n90NEV4H5IV9H4T0Rvd qxqmuy6uuZ4nOCf17dYwE/PHJcY09EvVUjt/10pxY8V9iVMub/A44atTGiCIwvajhh6q TlrFpi6IWrHOouz0WhJnMIvutdeyMmopubJYTIZTLzGU+T2C+ytmHqhaqLYbwO28BmXG 2Mwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :dkim-signature; bh=rQVGUuTV+cLP33zJlCL5Rp2JBQPMkfcf1DDMtBVBnjA=; b=bZXFm08s0vbmdXaVa7ZYzuHiAc8cAA3iW1eQBxc2J3OMZMTuzP9aSY1h0kYjW3xfed jpW4+Y2f7ZQCOjDxzWuo4myxtukQvaGwoJnTCMo8EPmecIlGr06YklmeijJqpEjQYnOa n0ba/2R3kedX6bGg4d0ltXcOEnQkohIbyu3xbx06Wb/Zehjbxfe+Ib7l3KjgA/U5Kf06 2UwxKHh/caeqlIPsmG/jFjHlc+Iw7ZU9FrBmxTFdaeZPR2LVWiM1DilV0tipWeF3lPSd 9+lNQ5Fn4/HYqK7vv6/1ToQ/bjoLFbM+h5wzwolzyPhuaCY/dwY+GYxRq5h9rDFYZ372 Afcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nazar.ca header.s=default header.b=lNm3x11j; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nazar.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do16si21614000ejc.166.2020.06.26.14.31.50; Fri, 26 Jun 2020 14:32:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nazar.ca header.s=default header.b=lNm3x11j; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nazar.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725816AbgFZVaY (ORCPT + 99 others); Fri, 26 Jun 2020 17:30:24 -0400 Received: from ny018.relay.arandomserver.com ([172.96.188.180]:49283 "EHLO ny018.relay.arandomserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbgFZVaY (ORCPT ); Fri, 26 Jun 2020 17:30:24 -0400 Received: from nyc006.hawkhost.com ([172.96.186.142]) by se004.arandomserver.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jovvN-0004LW-Q0; Fri, 26 Jun 2020 16:30:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nazar.ca; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Sender:Reply-To:Content-Transfer-Encoding:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=rQVGUuTV+cLP33zJlCL5Rp2JBQPMkfcf1DDMtBVBnjA=; b=lNm3x11jsNvYyUrIOjeQ6DZKSt RbH7BV//wuSz/ulC6dOODegyTEncRztst6Vf1m2UeGtI+aYcySXXkdnWZy0rHOi6ANd9m3e8nR8me tiiAInaThxNzy6pCTKXIPLwdYKKfZ3307ylVUrAyz9LDL0oR8tRIGoi2VoZJ2ztZyXNOgb+54cQGj +QO9oc75PrTmoxYly2PgggV7fM1bgzWE9uS11iyBg/BFa5FjZrM3CtMxtk0LEz2nMeEUwP5Zcy26I EPh24Lb05/sOTMQc+HEp345UZpNaWh1wIAmY6otgwfC99/O8HN8zT8utkEDCicVG8Osy+nPF56hYc LLsiqdOQ==; Received: from [174.119.114.224] (port=62434 helo=[192.168.21.100]) by nyc006.hawkhost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jovvM-0001yF-9B; Fri, 26 Jun 2020 17:30:16 -0400 Subject: [PATCH v2] Re: Strange segmentation violations of rpc.gssd in Debian Buster To: "J. Bruce Fields" Cc: "Kraus, Sebastian" , "linux-nfs@vger.kernel.org" , Steve Dickson , Olga Kornievskaia References: <28a44712b25c4420909360bd813f8bfd@tu-berlin.de> <20200620170316.GH1514@fieldses.org> <5c45562c90404838944ee71a1d926c74@tu-berlin.de> <20200622223628.GC11051@fieldses.org> <406fe972135846dc8a23b60be59b0590@tu-berlin.de> <1527b158-3404-168c-8908-de4b8a709ccd@nazar.ca> <20200626194622.GB11850@fieldses.org> <3eb80b1f-e4d3-e87c-aacd-34dc28637948@nazar.ca> <20200626210243.GD11850@fieldses.org> From: Doug Nazar Message-ID: Date: Fri, 26 Jun 2020 17:30:15 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.0 MIME-Version: 1.0 In-Reply-To: <20200626210243.GD11850@fieldses.org> Content-Type: multipart/mixed; boundary="------------C76790290F3F872CF2D00FA5" Content-Language: en-US X-Get-Message-Sender-Via: nyc006.hawkhost.com: authenticated_id: nazard@nazar.ca X-Authenticated-Sender: nyc006.hawkhost.com: nazard@nazar.ca X-Originating-IP: 172.96.186.142 X-SpamExperts-Domain: nyc006.hawkhost.com X-SpamExperts-Username: 172.96.186.142 Authentication-Results: arandomserver.com; auth=pass smtp.auth=172.96.186.142@nyc006.hawkhost.com X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.12) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0f6LF1GdvkEexklpcFpSF5apSDasLI4SayDByyq9LIhVJhm2GOwmKO19 wDmm9pYrhkTNWdUk1Ol2OGx3IfrIJKyP9eGNFz9TW9u+Jt8z2T3KR4lRsex1/puusHYPsyX5H9tx bz3GYvAjJyiUl0OtJpjPBiWknRaZaaGnN6gGyaYwEGP/cqT9NdutmxL11paD9RSJLpr0rbkIUL2o EIoo76BEzauJ6YXpjEPQ7tY6Jp26dMYM20ZSLTLtJaZEMmvD/c7Dbkj85KuFQPLurFT3ssmh2yTx /diQ6rtfAsExIdyDlww4iRtLrmhscolv/KaRUhkgrBVYrN7YanzFOzWobVxLQy8tYl8J0LAsulR1 XvL3u+CcQFhF3Ve2xEEkOAAzscANa8quVkvBiHTzhivdHXlWgxmTepC+rmMtfXSN6Ucc1Ez10wji WnnY4jRBGidiEoqBnj5U6/fHlgezJ9XnhlGYm6FqIq99D5E8Q5RXzOzL5Tftr1mguUs28jpRgxoQ COESyYS1TAnGSFxoa9LQM45/hHmn7zCr7+t8L1Q8S+JfvjG3qIgLxSyrB7IjX9oEa2pNZuMl2RpF rF/ORCBqH7EGtpV0foUL7ai8FSlqJ3s51NDVH01yDqixrqvs49JMssEavzt+PYIWFngwZuyqjCbS DObWhW6of+A2ttxrz9XWxJeBk/os5j8abOYt1SAwFTiWFYSlhfdXoL2rBaBWqCutI4g+l6rCWbY0 MZcgnbHsZ1ht3KqvGB1MqKP+ucII3zwOWOdjs8pfb394bdk8bLFOZZWZ1JY6LoDTzqwr/YmPqSgO fU86R1qZYeUk9bUzgTkZZY5zsAE0Arxw40k6pMbNbtLtUIjMdb1GvM5tzHodiwQzKw+6v3CaIMG6 s7LqJBLmYjCOi0cmvn108hito8RsTZSu5kJuva5eg7LJdoHM6y1zz0LVIPvtAv8cWsyd4fO9hgpU tCt2tcG8L7AfIec6B5uKB97Duy8oXNoPh0C8GwLLg5ZvYQtTn1uOB16qmsOpyKA69LF1Ge2GaGfx mfqLgBN9XPCGAMq9kHVrmjSW7PeJkVKMi5Wvc2RoRDB4klTXXYXYK6IJb19tR0RM6s9OB0fQQI8V ICRbS6zGNgmkeXycJ3K3myzhu/bui2AZoafXtaM9VcEKbRMrOhuT3DZOiXVHuYsB8MEITB75Hn54 X-Report-Abuse-To: spam@se001.arandomserver.com Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org This is a multi-part message in MIME format. --------------C76790290F3F872CF2D00FA5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 2020-06-26 17:02, J. Bruce Fields wrote: > Unless I'm missing something--an upcall thread could still be using this > file descriptor. > > If we're particularly unlucky, we could do a new open in a moment and > reuse this file descriptor number, and then then writes in do_downcall() > could end up going to some other random file. > > I think we want these closes done by gssd_free_client() in the !refcnt > case? Makes sense. I was thinking more that it was an abort situation and we shouldn't be sending any data to the kernel but re-use is definitely a concern. I've split it so that we are removed from the event loop in destroy() but the close happens in free(). Doug --------------C76790290F3F872CF2D00FA5 Content-Type: text/plain; charset=UTF-8; name="0001-gssd-Refcount-struct-clnt_info-to-protect-multithrea.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename*0="0001-gssd-Refcount-struct-clnt_info-to-protect-multithrea.pa"; filename*1="tch" RnJvbSA4ZWY0OTA4MWU4YTQyYmZhMDViYjYzMjY1Y2Q0Zjk1MWUyYjIzNDEzIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBEb3VnIE5hemFyIDxuYXphcmRAbmF6YXIuY2E+CkRh dGU6IEZyaSwgMjYgSnVuIDIwMjAgMTY6MDI6MDQgLTA0MDAKU3ViamVjdDogW1BBVENIXSBn c3NkOiBSZWZjb3VudCBzdHJ1Y3QgY2xudF9pbmZvIHRvIHByb3RlY3QgbXVsdGl0aHJlYWQg dXNhZ2UKClN0cnVjdCBjbG50X2luZm8gaXMgc2hhcmVkIHdpdGggdGhlIHZhcmlvdXMgdXBj YWxsIHRocmVhZHMgc28Kd2UgbmVlZCB0byBlbnN1cmUgdGhhdCBpdCBzdGF5cyBhcm91bmQg ZXZlbiBpZiB0aGUgY2xpZW50IGRpcgpnZXRzIHJlbW92ZWQuCgpSZXBvcnRlZC1ieTogU2Vi YXN0aWFuIEtyYXVzIDxzZWJhc3RpYW4ua3JhdXNAdHUtYmVybGluLmRlPgpTaWduZWQtb2Zm LWJ5OiBEb3VnIE5hemFyIDxuYXphcmRAbmF6YXIuY2E+Ci0tLQogdXRpbHMvZ3NzZC9nc3Nk LmMgICAgICB8IDY3ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrLS0tLS0tLS0t LQogdXRpbHMvZ3NzZC9nc3NkLmggICAgICB8ICA1ICsrLS0KIHV0aWxzL2dzc2QvZ3NzZF9w cm9jLmMgfCAgNCArLS0KIDMgZmlsZXMgY2hhbmdlZCwgNTUgaW5zZXJ0aW9ucygrKSwgMjEg ZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvdXRpbHMvZ3NzZC9nc3NkLmMgYi91dGlscy9n c3NkL2dzc2QuYwppbmRleCA1OD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