Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1203101ybe; Wed, 11 Sep 2019 10:59:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC+p9OQQbZf5J9i3DxonkyLjjvwO9esPR+BDPf1dF2cPX9HtuziWgPdKkHnr/LRgbni3zb X-Received: by 2002:a05:6402:1485:: with SMTP id e5mr38264142edv.191.1568224789551; Wed, 11 Sep 2019 10:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568224789; cv=none; d=google.com; s=arc-20160816; b=SIftAdRqRk/HuEQeHSMmTJruqnHHbEKJcu9hYR0GZ6rUVnHBV+SY2YuFjAOmoGZTbI 0YLifdS6I64KjHr2AWPwxuK4voeC5pyJYt4+A4AqL4kaY4ZoaKOddvEOE7pI7dhnNY8W vX7KG7Ya4BM+9AGcdfIBnXtStH+jtE5/PfzihcLCR1yVGsBXffUHIaVAKBl3X/i1YBko bDcfl469yD0CTM1RBl4+TapHSAtr9rgZhSahenUugnob8tvKrnLFwP0SWQhuoiMs+Hjo lFkugqRVjJTRH9llvQgH3PgAQEaNk5Ai0U7izIhME9yMI4Keyj4R/zmQu9S5PlVjavs+ iWAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=tfhpkJOUJimWIs/NptbOtm4mis+7YcUxgRlT7g68umU=; b=geRtsUGa9gnQtLcemwS2+Ph7u5rkzA4L78PjRhebBtAjBjACqlCy2q8Zp+iPb3rQmK OarKN8sKGYREZfBzC4TrUelDsAdACytNpbngfybBoq2w6mlphZvK+BO6hp2cMRjgwh3m 36wpRs2L6e+BJvYbFBX5fJBXlJYy9RSr+A7W19+r/M/LI6pl7ekAt0NmUhbu4wZIkVFt AMQoMRa3PubIt9OUO5vRb4pg93XL//zmUBYy6IiA8OrJCB0Nr/D7Ptr74H6N/3rtjKto /NeEhIf7IX4K973/ggJzSHUs+3i0TxCIu4elB92t7ZK/QuaMdZenOdA5Yy2kdHMCe6bU AvBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d58si14817334eda.62.2019.09.11.10.59.25; Wed, 11 Sep 2019 10:59:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729696AbfIKR7V (ORCPT + 99 others); Wed, 11 Sep 2019 13:59:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39182 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729675AbfIKR7V (ORCPT ); Wed, 11 Sep 2019 13:59:21 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 090BF10CC1F9; Wed, 11 Sep 2019 17:59:21 +0000 (UTC) Received: from [172.16.176.1] (ovpn-64-2.rdu2.redhat.com [10.10.64.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3CD365D9E2; Wed, 11 Sep 2019 17:59:20 +0000 (UTC) From: "Benjamin Coddington" To: "Chuck Lever" Cc: "Jason L Tibbitts III" , "Bruce Fields" , "Wolfgang Walter" , "Linux NFS Mailing List" , km@cm4all.com, linux-kernel@vger.kernel.org Subject: Re: Regression in 5.1.20: Reading long directory fails Date: Wed, 11 Sep 2019 13:59:19 -0400 Message-ID: <8DD22D2C-A26B-430E-AB10-E420B4C6A8F0@redhat.com> In-Reply-To: References: <4418877.15LTP4gqqJ@stwm.de> <4198657.JbNDGbLXiX@h2o.as.studentenwerk.mhn.de> <20190906144837.GD17204@fieldses.org> <75F810C6-E99E-40C3-B5E1-34BA2CC42773@oracle.com> <0089DF80-3A1C-4F0B-A200-28FF7CFD0C65@oracle.com> <429B2B1F-FB55-46C5-8BC5-7644CE9A5894@redhat.com> <8D7EFCEB-4AE6-4963-B66F-4A8EEA5EA42A@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.65]); Wed, 11 Sep 2019 17:59:21 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 11 Sep 2019, at 13:43, Chuck Lever wrote: >> On Sep 11, 2019, at 1:40 PM, Benjamin Coddington >> wrote: >> >> On 11 Sep 2019, at 13:29, Chuck Lever wrote: >> >>>> On Sep 11, 2019, at 1:26 PM, Benjamin Coddington >>>> wrote: >>>> >>>> >>>> On 11 Sep 2019, at 12:39, Chuck Lever wrote: >>>> >>>>>> On Sep 11, 2019, at 12:25 PM, Benjamin Coddington >>>>>> wrote: >>>>>> >>>> >>>>>> Instead, I think we want to make sure the mic falls squarely into >>>>>> the tail >>>>>> every time. >>>>> >>>>> I'm not clear how you could do that. The length of the page data >>>>> is not >>>>> known to the client before it parses the reply. Are you suggesting >>>>> that >>>>> gss_unwrap should do it somehow? >>>> >>>> Is it too niave to always put the mic at the end of the tail? >>> >>> The size of the page content is variable. >>> >>> The only way the MIC will fall into the tail is if the page content >>> is >>> exactly the largest expected size. When the page content is smaller >>> than >>> that, the receive logic will place part or all of the MIC in >>> ->pages. >> >> Ok, right. But what I meant is that xdr_buf_read_netobj() should be >> renamed >> and repurposed to be "move the mic from wherever it is to the end of >> xdr_buf's tail". >> >> But now I see what you mean, and I also see that it is already trying >> to do >> that.. and we don't want to overlap the copy.. >> >> So, really, we need the tail to be larger than twice the mic.. less >> 1. That >> means the fix is probably just increasing rslack for krb5i. > > What's the justification for that particular maximum size? Are you > sure the > page contents are not spilling into the tail? In the problem case, I am sure they are not. The justification is that if the mic straddles pages and tail, today we try to copy it to the end of the tail. The room we'd need for that is the size of the mic less any of it that is up in the pages.