From owner-freebsd-stable@freebsd.org Tue Mar 30 03:23:01 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EAF9E5B8884 for ; Tue, 30 Mar 2021 03:23:01 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F8ZX50Tqmz3QZh for ; Tue, 30 Mar 2021 03:23:00 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pj1-x102d.google.com with SMTP id ha17so7023168pjb.2 for ; Mon, 29 Mar 2021 20:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:message-id:date:mime-version:user-agent:reply-to:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=SnhaLDh2FR3HD4IRxNkjNNiZv7yrHB1OopbZCKJ2xMM=; b=RzR5jF5DodK4qsa17x5Dx7gz/oVn/fl5wcdAwBRTqlRqICSjfKcWuwlBr+52lwin5Y iUeymwZ3s1y8tB3e1dIQ+/soCBJsDw+2wIvgKL4EuQvtvK7xZgbZLQ1ZwFLroCBxRlVt rp0x1MK1Wr0r1QO8BvUcMbYMYF92IPvYNasL0Dz15GxB5oFYmt5Jizl8ce0byCYW+5mz DbwbNU+VehJ5rTASfjksX1b+pQVWt3kZ10t1eclkwP+ToKCF71XcXhv6M6t9gYEVAQNO t7bLg3J8crXTtDJC2QEqaSyg6buChJcRrGxmRSEzMMa7EvqSVtfUyMwnJ8k7r9eKeiWV HmBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :reply-to:subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=SnhaLDh2FR3HD4IRxNkjNNiZv7yrHB1OopbZCKJ2xMM=; b=XPvlKL8MHj+8Ldtj6wjZJO+cHa+33prlx9ahoSo+xDuKWwmiXW7h/qAmlZEs3yVbEC 8wNbXewt08DhASfTAmhdURzv2iNzKqXlWIAWHgJ9bHUlo4iLzJubEMyB8FFbi81veFmE rmDmxp2WtxD7mmSmTP4HDSfIe3QZjVyetdaP3OuP9GLv5i/227C6xROF+LQSmnwKs5jy msPYFbjbsXwrsoduQUI+pFZDGnY/OskwAKcYCbraSZcyLxfSIJglAPI+L03ckaOaQH3L fr9M5zO5+v5ZQPK6oBs8j6i6c+jux6zgbOBeuheKIfjLmHkQ0vmZIjLju20v91n/eHFU B7aQ== X-Gm-Message-State: AOAM531oiThqIg2clL0em3qSgDj3yq3HfNU+3DasSYaUXlvPuvSK4aym Lw29cDNEf7EFFns/rypm2JU= X-Google-Smtp-Source: ABdhPJysDuKWF4XIpgyTfmp+oz3JEGQr+F3fbAiyYxS6HZ0++LVpM9sGoYhRJjKbffz5bO0kIovsRQ== X-Received: by 2002:a17:902:edc7:b029:e6:f01d:75a9 with SMTP id q7-20020a170902edc7b02900e6f01d75a9mr32472740plk.63.1617074579734; Mon, 29 Mar 2021 20:22:59 -0700 (PDT) Received: from localhost (2403-5800-7500-3601-5929-d077-f03b-449f.ip6.aussiebb.net. [2403:5800:7500:3601:5929:d077:f03b:449f]) by smtp.gmail.com with UTF8SMTPSA id r16sm18556200pfq.211.2021.03.29.20.22.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Mar 2021 20:22:59 -0700 (PDT) Sender: Kubilay Kocak Message-ID: Date: Tue, 30 Mar 2021 14:22:54 +1100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Thunderbird/89.0a1 Reply-To: koobs@FreeBSD.org Subject: Re: FreeBSD NFSv4.1/4.2 server is broken when Linux mounts use "nconnects" Content-Language: en-US To: Rick Macklem , freebsd-stable References: From: Kubilay Kocak In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4F8ZX50Tqmz3QZh X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=RzR5jF5D; dmarc=none; spf=pass (mx1.freebsd.org: domain of koobsfreebsd@gmail.com designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=koobsfreebsd@gmail.com X-Spamd-Result: default: False [-3.20 / 15.00]; HAS_REPLYTO(0.00)[koobs@FreeBSD.org]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_NEQ_ENVFROM(0.00)[koobs@FreeBSD.org,koobsfreebsd@gmail.com]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::102d:from]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::102d:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102d:from]; MAILMAN_DEST(0.00)[freebsd-stable] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2021 03:23:02 -0000 On 30/03/2021 8:52 am, Rick Macklem wrote: > Hi, > > The FreeBSD NFS server is broken when handling multiple > connections for NFSv4.1/4.2. Whats the version scope for this issue? If a regression in 12.x 13.x, adding to RELNOTES and ERRATA would be great > It incorrectly binds the back channel to a new connection > when is sees an RPC with Sequence in it (almost all RPCs) > and might send a callback on the wrong connection. > > I have a fix, but it won't be in a release until 12.3/13.1. > It can be found in Bugzilla PR#254560. > > In the meantime, avoid using the "nconnects" option > on Linux client mounts. > > Thanks go to Ben Coddington @redhat for diagnosing > this and testing the patch. > > Sorry about the breakage, rick > ps: It was done intentionally long ago, when clients > did not do BindConnectionToSession and then slipped > through the cracks.