Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3615413pxu; Mon, 30 Nov 2020 06:56:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKj1TZHSpiCkAj6VN4Ul8y8NEyhC6XiEYJmC1oQiD569FYhyxOTdIgCeJkIdnGhsK1+4Tb X-Received: by 2002:a05:6402:cbb:: with SMTP id cn27mr21869270edb.275.1606748215292; Mon, 30 Nov 2020 06:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606748215; cv=none; d=google.com; s=arc-20160816; b=dtK1lou0L4Siv/tF+HamZJZmvto9weuJzSZnnsRkFKrdmiUsv26WdzWnjkmbn3MEdw hMh4yVkx2lF0QncFyDpdSyGrcExo7cp0RKtoyg+AzCZgm9Pdr03n/jDzBX/UDoqkdzwE L5wWclHyWDZs0PGMD74ftzTEioJmIxP8OoL3sziWlwWOOXAZVyae9tmzqEpqY7gqoXJQ z92zCFjHPxNPnUhFjAKtCmisU8qtTc6Kz2u4fTxL2yjAqc1uWD8gWUiYlqsAswgEYSh8 I5ap9nMK1xU+tfB9JYT49nbaSJParDJLzApLpn1hYvTGKDlxthVFk0zMB05h+4iqH5Rp 1FFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:to :from:subject:dkim-signature; bh=mIgk2M796MqJmPDC+eqx02rlCyplm7RsCXkEzpI/Tys=; b=juqz4wyA3hFVXI2K5IP98X8egSoaDVlyKovNz6hUVNBWctB3U9MBElYX53pSZZJ/vN O0Q6ZE/BjQ2jJe67zxjyBJGaFKJQAMc8w7Hs58xZrJtVjpTUgZTTXTy0as91RVvmNtmi Ceuw7QX7l3vE6eOpDgbhidENoLC21Zm1oRMaIe0SXra3Af2paukWsm0c3FZACgmN2avk iiHUseD+SX/a/qUXdp4vbsPgT43097DbBIVN+AaDU+agXEaoZ1q/r1dSFqmUYiJodKSi AmjpLPATOlFqdMABQnyqaJryQDCBx4fqfderzM2TRQbtka+rce9haEBKt3pKy2ZqO0CM 1uaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rothenpieler.org header.s=mail header.b=EfnGzQWf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=rothenpieler.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si1029981edc.33.2020.11.30.06.56.24; Mon, 30 Nov 2020 06:56:55 -0800 (PST) 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=pass header.i=@rothenpieler.org header.s=mail header.b=EfnGzQWf; 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=pass (p=NONE sp=NONE dis=NONE) header.from=rothenpieler.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727205AbgK3OzQ (ORCPT + 99 others); Mon, 30 Nov 2020 09:55:16 -0500 Received: from btbn.de ([5.9.118.179]:50434 "EHLO btbn.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727009AbgK3OzP (ORCPT ); Mon, 30 Nov 2020 09:55:15 -0500 Received: from [IPv6:2001:16b8:64b8:ea00:8985:359a:bb0c:c985] (200116b864b8ea008985359abb0cc985.dip.versatel-1u1.de [IPv6:2001:16b8:64b8:ea00:8985:359a:bb0c:c985]) by btbn.de (Postfix) with ESMTPSA id 4C9A7259621 for ; Mon, 30 Nov 2020 15:54:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1606748074; bh=mIgk2M796MqJmPDC+eqx02rlCyplm7RsCXkEzpI/Tys=; h=Subject:From:To:References:Date:In-Reply-To; b=EfnGzQWfN3SKrKR8Ixbk7MIJOmb/yYmSt+dT6HQ7JELNqRX+rKE0LyUf29vDKzQzo g68L+SBcdSdFqbPLVzPL8i+5dWFlhu6SwfLhlcR0dcV7DkI77ocwG4MSFeEFOVXvpg uyMv8PthiY689n52koJMfAFDFH+SdlEYFgqu8objATYU0KfREDijvTXOLA6vKdoaFi hab2fygLE47oBjfCg0xXM74NeItgLtFm3KRgOqU1Dlx7odm2rE/wZwh43U/pkyzEl1 BI0B83fy4iGLcNlYUNjaVqmRZfjIh1oIago25RqNGcbwoY0fmHaVPYA0Awrqzl/3RS YgB9CrBeHheRQ== Subject: Re: linux-5.4.80: "refcount_t: underflow; use-after-free" in rpc_async_schedule->rpc_free_task->nfs4_put_copy From: Timo Rothenpieler To: Linux NFS Mailing List References: <81fa8f5a-5ebf-07cb-f9a9-8b3da63f330f@rothenpieler.org> Message-ID: Date: Mon, 30 Nov 2020 15:54:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <81fa8f5a-5ebf-07cb-f9a9-8b3da63f330f@rothenpieler.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 30.11.2020 14:12, Timo Rothenpieler wrote: > Quick update: I applied that commit on top of the 5.4.80 Kernel, and > have not been able to reproduce the issue anymore in a quick test. > Will leave it running like this for a bit and see if it's fixed. > > I don't know if this is in any way correct though. Partial success, I guess. The use after free did not occur again, but users still get their singularity pulls stuck, waiting on copy_file_range() to return. Must have just been a coincidence that those two always happened at the same time. It works fine on a fresh mount, until at some random point all attempts lead to it getting stuck. Re-Mounting, rebooting client or rebooting server all seem to resolve it temporarily, until it happens again.