Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp752962pxb; Thu, 26 Aug 2021 13:53:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtYzd8ZI5uXVjs+PxHdLB2iO27yH1RdArjEMGyYGy9lkki3EMlTBiq7ohW3rCgNaH2oiIt X-Received: by 2002:a6b:e616:: with SMTP id g22mr4695710ioh.67.1630011219907; Thu, 26 Aug 2021 13:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630011219; cv=none; d=google.com; s=arc-20160816; b=x44kPbggHFRuZIOtoupETnwcIoAM3qeQK64xJzBbMqPGyN4Tix/YS7VO0ch6qUzDRq X/kvGls6x3U5L8AkSWOC+88Z5sKxq0gaSJtFoG5N9MxyhFmOfCg+lv9DJ5KLOPj3TgJK Ua/tbayM09SjaH1PIrezRbCUSLVSKE4/pF/uBGJtXWb8Pd17dWsxe9Vrv9+K6ViltpAc KR9qVtUpcEWtLtET+koiq2IEitNb1OpghCu1JafZFMCyZMy2v7iCXC9zLUcsdtUUYMRk KbRFYA3YNrqXMn2vDkCLuNoIL5R1mDFkjHaYrbkffg+oGO8761/Jt01lXqLCktdsqb2S Cy6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=dD17tvDiTgovKf+hr86IWYFEsUP3mvR55y14z6MDK1M=; b=m6VGPNLNXI1I3IFSUH+sr59BFx4WkJtCt4B9kmH909OooUPoXLNkuefrbue9v/YOZo vyZ7J9uz7A1e/NSzWHPkoYXguIbVucDwrBZuGeWCysOc6hMay3pxO1laWXy5tP07K22I KcPYhGLh3G+zdTZLYRZS71DnaukG2yDeKs7neJ/ulEWnBz0AxHKoO2KNBUP1f2OiHC9b W77VwnOQyZjlTkCFp1z6gGvcjsSGk/ZjYX28dMNbqs4Nc+B6pLvv8alr0ShZMPdk1oKf pDMahqzZVMKf3+XuddE96JfWtS01GXJ2HvcmLR+jM5TPxfkq4VJE4N9rZsccJ68eS/DE PUOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b="pk2uZ/+6"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si4606126jaj.38.2021.08.26.13.53.18; Thu, 26 Aug 2021 13:53:39 -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=pass header.i=@fieldses.org header.s=default header.b="pk2uZ/+6"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243562AbhHZUwk (ORCPT + 99 others); Thu, 26 Aug 2021 16:52:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbhHZUwj (ORCPT ); Thu, 26 Aug 2021 16:52:39 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ABDDC061757 for ; Thu, 26 Aug 2021 13:51:52 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id B641461D7; Thu, 26 Aug 2021 16:51:46 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org B641461D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1630011106; bh=dD17tvDiTgovKf+hr86IWYFEsUP3mvR55y14z6MDK1M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pk2uZ/+6E7cDuyhFfNNxXX0KMDFtConODJZdfab8e9icEclNByIQ2Ty8lHzU8bD6O YisuUiLxspkjYGlcclVirBl0Y8iid3pDBhnEELQwIjY3Fs5+ogFveq8uDQPvQWStRO uGCRdBaFARI8yMt4ryltYvLyj3EEHS40KraaptW8= Date: Thu, 26 Aug 2021 16:51:46 -0400 From: "J. Bruce Fields" To: Anna Schumaker Cc: Trond Myklebust , Linux NFS Mailing List Subject: Re: [PATCH] sunrpc: Avoid a KASAN slab-out-of-bounds bug in xdr_set_page_base() Message-ID: <20210826205146.GD10730@fieldses.org> References: <20210609210729.254578-1-Anna.Schumaker@Netapp.com> <20210614231440.GD16500@fieldses.org> <20210812203248.GA907@fieldses.org> <20210826204221.GC10730@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210826204221.GC10730@fieldses.org> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Aug 26, 2021 at 04:42:21PM -0400, J. Bruce Fields wrote: > On Thu, Aug 26, 2021 at 03:44:32PM -0400, Anna Schumaker wrote: > > On Thu, Aug 12, 2021 at 4:32 PM J. Bruce Fields wrote: > > > > > > On Mon, Jun 14, 2021 at 07:14:40PM -0400, bfields wrote: > > > > On Wed, Jun 09, 2021 at 05:07:29PM -0400, schumaker.anna@gmail.com wrote: > > > > > From: Anna Schumaker > > > > > > > > > > This seems to happen fairly easily during READ_PLUS testing on NFS v4.2. > > > > > > > > Yep, I hit a KASAN warning here every time, and this fixes it, > > > > thanks.--b. > > > > > > By the way, config NFS_V4_2_READ_PLUS still says: > > > > > > This is intended for developers only. The READ_PLUS operation > > > has been shown to have issues under specific conditions and > > > should not be used in production. > > > > > > But this warning was the only thing I was seeing. Is there another > > > known issue remaining? > > > > I think it was an issue around using lseek to generate the reply. The > > file contents could change between each call, leading to inconsistent > > results (and a new failing xfstest that previously passed) > > OK, thanks, I see now that you mentioned in 21e31401fc45 "NFS: Disable > READ_PLUS by default" that there were generic/091 and generic/263 > failures. > > Looks like they're both testing concurrent direct and buffered IO. I > don't know what we try to guarantee in that case. But I'd assumed generic/263 just wasn't supported on nfs anyway.--b. generic/263 81s ... [failed, exit status 1]- output mismatch (see /root/xfstests-dev/results//generic/263.out.bad) --- tests/generic/263.out 2019-12-20 17:34:10.493343575 -0500 +++ /root/xfstests-dev/results//generic/263.out.bad 2021-08-26 16:43:40.751891500 -0400 @@ -1,3 +1,262 @@ QA output created by 263 fsx -N 10000 -o 8192 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z fsx -N 10000 -o 128000 -l 500000 -r PSIZE -t BSIZE -w BSIZE -Z +Seed set to 1 +main: filesystem does not support fallocate mode FALLOC_FL_KEEP_SIZE, disabling! +main: filesystem does not support fallocate mode FALLOC_FL_ZERO_RANGE, disabling! +main: filesystem does not support fallocate mode FALLOC_FL_COLLAPSE_RANGE, disabling! ... (Run 'diff -u /root/xfstests-dev/tests/generic/263.out /root/xfstests-dev/results//generic/263.out.bad' to see the entire diff) Ran: generic/263 Failures: generic/263 Failed 1 of 1 tests