Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp350959pxb; Fri, 8 Jan 2021 06:41:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCPk7xt4MmiGcmIBZhYBe2LptIT66SGsIitvLLWXru6oZa4yp41Wk1NBvASEH858k/fEkp X-Received: by 2002:aa7:d407:: with SMTP id z7mr5829270edq.234.1610116907285; Fri, 08 Jan 2021 06:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610116907; cv=none; d=google.com; s=arc-20160816; b=aE2oUWHsYFlbB9lfnbw/+7YF7EAQWG3FUjIoyH1PJcOwwpJSSKRBDkmagAn8fVkub1 LA10INT/DbwjCYlVWMV9Xq+qq7Okoz0cz5tA/0ROBwWVnBcISJwb7O0h01jH/iemEbxN N7JQPaQMxhmfl7WttwOeoWWhqWNS16/q1cxmJrw6eLq21Bcjnit4F/f/oaKb2Scaz2zg Hj6BhDMcOTMsCvIH6XK2kLMZ3tcoecQD9E708Cka1wAbU/vKZhCuz4cD7k7Z1VVdhmdf W8EuTDDcGUPEtesI0/uFKdFJWRvZXUyHI+ckVjoRQmLdJN9XLh0kyke5ondhS9r2ZnlS oexQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=gasM4Z/yvlys4VTxro2jmTdW3K/l34teZaFDOAL0hqM=; b=A8Ljd2RtcfKtUUT0stWqEi23zgyMcMQXc2MYz+l5t9i2GVO1yZ1i83hPYKNgbAftvE lHgaZ2K0g/PKk72fIAQrtY4EdOEirGvJtegPr1xICcZ3ASyBeIhfwulUc5muglexSCr5 Gp/+WTe/BJr1pr5EOcJbjaQWXeFbwUeHnBJpurtzaDIYTgCSZ6h3sj0uCPvA/diV8NEw UQQ13x2k2PVsJn346Fiuq+Vp89gTSZZ160CdtFA7+PavvUFI8p9Odn6ETbZxjd1lgWSn JhbRFSFfJ0z49unQmV6zgdZvcDazCRvCjRt5mLmP7M1fDLYpCgGlhQV1KYDVEURxQZKY Q6RA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si3864925edb.242.2021.01.08.06.41.23; Fri, 08 Jan 2021 06:41:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727256AbhAHOkI (ORCPT + 99 others); Fri, 8 Jan 2021 09:40:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbhAHOkI (ORCPT ); Fri, 8 Jan 2021 09:40:08 -0500 Received: from cc-smtpout2.netcologne.de (cc-smtpout2.netcologne.de [IPv6:2001:4dd0:100:1062:25:2:0:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54A40C061381 for ; Fri, 8 Jan 2021 06:39:28 -0800 (PST) Received: from cc-smtpin3.netcologne.de (cc-smtpin3.netcologne.de [89.1.8.203]) by cc-smtpout2.netcologne.de (Postfix) with ESMTP id 319B0126B8; Fri, 8 Jan 2021 15:39:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cc-smtpin3.netcologne.de (Postfix) with ESMTP id 2E49911E68; Fri, 8 Jan 2021 15:39:26 +0100 (CET) Received: from [213.196.221.66] (helo=cc-smtpin3.netcologne.de) by localhost with ESMTP (eXpurgate 4.11.6) (envelope-from ) id 5ff86e9e-0799-7f0000012729-7f000001abc8-1 for ; Fri, 08 Jan 2021 15:39:26 +0100 Received: from nas2.garloff.de (xdsl-213-196-221-66.nc.de [213.196.221.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by cc-smtpin3.netcologne.de (Postfix) with ESMTPSA; Fri, 8 Jan 2021 15:39:22 +0100 (CET) Received: from [192.168.155.202] (ap4.garloff.de [192.168.155.15]) by nas2.garloff.de (Postfix) with ESMTPSA id 289B9B3B13A5; Fri, 8 Jan 2021 15:39:21 +0100 (CET) Subject: Re: NFS 4.2 client support broken on 5.10.5 To: Trond Myklebust , "NeilB@suse.de" , "Anna.Schumaker@Netapp.com" Cc: "linux-kernel@vger.kernel.org" References: <2f401e0a738b7acb926bd2375012e6384a2cd9b6.camel@hammerspace.com> From: Kurt Garloff Message-ID: <927fcf61-7992-1b9f-ae39-c71d96323fbc@garloff.de> Date: Fri, 8 Jan 2021 15:39:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <2f401e0a738b7acb926bd2375012e6384a2cd9b6.camel@hammerspace.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Trond, On 08/01/2021 12:58, Trond Myklebust wrote: > On Fri, 2021-01-08 at 12:41 +0100, Kurt Garloff wrote: >> Hi Neil, Anna, Trond, >> >> compiling a kernel, I suddenly started getting errors from objtool >> orc. >> (This first occurs on init/main.o.) >> >> I looked at all kind of things, before I noticed that this was not a >> toolchain issue (gcc-10.2.1 self compiled), gcc plugins (I use >> structleak and stackleak) nor an issue with objtool or libelf, >> but that there was an -EIO error. >> >> The kernel tree is on an NFS share, and I run 5.10.5 client kernel >> against the kernel NFS (4.2) server, running a 5.10.3 kernel. >> >> The issue does NOT occur on a 5.10.3 client kernel, but is easily >> reproducible on 5.10.5. Note that 5.10.5 on a local file system or >> against an NFSv3 server does not show the issue. >> >> Test program that reproduces this on the first pwrite64() is >> attached. >> Note that the call to ftruncate() is required to make the problem >> happen. >> >> I could go on bisecting this to a particular patch, but you'll >> probably be able to see right away what's wrong. >> > Hmm... If this is NFSv4.2 do you have READ_PLUS turned on or off in > .config? It really is not safe to enable READ_PLUS on 5.10 kernels > since that can cause random memory corruption. OK, it is turned on in my kernel -- looks like I have not read the warning in the config option help text carefully enough ... I'll test what happens if I switch it off and report back. Thanks for the quick response --- Kurt Garloff Cologne, Germany