Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp218622lqp; Wed, 22 May 2024 02:27:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFg7ArD25KH2whooHNlaukcHNh23vpybqyze9/igKTuEx4rVOIv0XUjyc3w8frjdIOr31ify3cy/w3RcSxkx4rfzeWcIWp2MG9CpX+mA== X-Google-Smtp-Source: AGHT+IGGnEXgOFdameID0Lm+fL4IPY+TGh7UKsHB99vAJzoq+RSIi7WyitbQqITz0/kQVMs0Dh1/ X-Received: by 2002:a05:620a:46a3:b0:792:ba44:7b23 with SMTP id af79cd13be357-794994ce16dmr145374785a.67.1716370071415; Wed, 22 May 2024 02:27:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716370071; cv=pass; d=google.com; s=arc-20160816; b=hfwcrSprVu3yrIpWOSKbwaZOs+qqmP6xRysls0woNSRLA4V+dOotIq6T7KzkqgyCv8 v4EA3W/OROEBnCEyN4LkhuLrMS3nvWvxNpRRnpaX+kdR/iozoJcaS9qnlQFE2+lNsAEx t1XxTwmxplknaL6xaRFqS1/sSyesXzRvWwxixzQq6LVsjYXXOqK3XMqkCGb+cw7aC5bf OlcPk/q39sbotldyIByZ9XkkBw/1dCTQoXqpIWsb1IimFjqZ6pUgkv4H0XGGeDvu8/yc OTlEA9uWbGXjEMyOAuvIUkxeB55wlKiogTS0aTNIiTkbaJPUirIpQy2quxuCpeFc0Owp rNAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=J3RHkz1PAC1a1gnJwaqPWf+2yMWWiU1EZBBXLHMWkG0=; fh=XscD2L3vP++Fi4dCueHMxgcXhgsKUqLmX7egI3zz2sA=; b=DNXD/8Hr9yjvz0rMt5y34+J90UacZygy/UCz49qfuEoA4v1uu4L+26QfGPvH3+mSiG LinWONz/fQgnzfTtbNriW8AWp8SkccyzrS3gY83A4VDtxasrRCYQkmNh0AwZ46yHxM44 szOp7Y4YrRgGoxPmo1Y+cIAoO+pXX2fMyOYOk7OhpFvNv67AlYA5NN5O7eoak1Ruub5D IUbnnU+tBaa9+Iw5BJbjxqlw8Q+5IbgQczBdFuMAbDKv02jdhV4ftV3psDE5Wz/VNIVM FQxyBxItlC9L/T/8Dx4KAG6LOO1G1hiuQD0aQWRzbYUGYziaJ1q0RuwB/GVzQgZujBNV COIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XSHPEaob; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-185988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf277332si2869184885a.23.2024.05.22.02.27.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 02:27:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XSHPEaob; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-185988-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 28EA11C20ACF for ; Wed, 22 May 2024 09:27:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 143BB8120A; Wed, 22 May 2024 09:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XSHPEaob" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B633811E0; Wed, 22 May 2024 09:27:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716370062; cv=none; b=sMIfqagQ+jUBi/dH+RMVNRK8VRSxOv9/pFhZS3ETIWmIWYjD72z7V0PbRl5qxtDtWgcHd188z37d+bteCySd/I3kz6U6mB/kuXSqL5c5WeP3eUlFcdBKhXZnu/qmTR/7PnhNdr936N+gKHgwSE9GFkjpbUYtMHw7vGIwkYHSB7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716370062; c=relaxed/simple; bh=yIYBXGdl869XX2pTr1QmDY+AP5o/usnaarQJoGjwRv8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Tdw6sfM0zILYY9mHLy7o2IDkgo6ykfUAjmipjD/1QLdh6MhHIa69PbsECOmJa47p6ZuggkwPahFIL/oWaG4mRgfDoJWv1DMSQO6W1Idlzzolm4BNYj1tZAzAPlB5bP82LBb7w4fbUy9VMqyyV4fa+ZqwCK/Z2N3fOfjbioYLzTE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XSHPEaob; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5238b5c080cso7793190e87.1; Wed, 22 May 2024 02:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716370057; x=1716974857; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=J3RHkz1PAC1a1gnJwaqPWf+2yMWWiU1EZBBXLHMWkG0=; b=XSHPEaobQ9QyC7TaRkhuj1XVfte7fqlmkl1zwI76QejmgcVXIb3TtjszCV3XaUSBHL iejQNE4sIzbvqr9onGJaOShqjfFQRbubQ955RukW8YccLlUEqL3e6kIuU6SIIZt6N9In 6GKfJekFmwChbTjTafGbrdVGivvZYuUVnV7X7xRK5X6M6ukPLNMUP5DhRmhHR7nCJ0Yp 1N20QOodKBW2Y46hF9DZe16/GuxFgRnehcqZGCO2wXq0LRArn5isHJewuYVUby4OOOSS 2IUEgs6WOZb5RKq9rq0IEcoxZhIfE7m4oIEbLcESoSkDwB7HZS5KmQHEj0ph0nD3n19O ZoSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716370057; x=1716974857; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J3RHkz1PAC1a1gnJwaqPWf+2yMWWiU1EZBBXLHMWkG0=; b=M4vQv7ieRtTYvfAmu0uY2iLbFjEpRamcI4zJwpf6ajg4IOzdYZZEwKE03koXATYBhj G4FV0CLwyvE0icLM8FgPR4ya84peIomm/tAKSi1jKVoLh0KtAAtUVAnCr9kak8dGNYWn VchPSKO1nTt5Ec1ZK+iXvtxS2XFcHKBXJFUOwvlLN33Hzl+4vvuj1dTbboPtu5DQxRhf mp99imDqnzifVUjhVSEM0lZ/m4gg2dYPejiw5i7Kd+lgyz7+p4LRbH4q4WqNy+xqPI8q z2euO1wDLi7TctUddxKPtNPa5y+DeMkvL/76pXaadUsrhJZtRcAxPP4D/nJsFkjFrLKM C12g== X-Forwarded-Encrypted: i=1; AJvYcCUYf6PtWMOKbJIKkT/NNcCZN12mJ+sF1nusUUslL6AG8BKTANquIMsBtDGz0/k5ymqhxG/8Q7ie4PoM+HEtpH4IU0xKHsXWVA+kmUuX6cuvur0URZBN6bSyFxsAQ6M0ho9IOq85lxIiJEiDTT8UFooGfEHI5bk+75PuxGuZqrpZfqDIibSzcbk= X-Gm-Message-State: AOJu0YyVnFyGk+djvmk3YaO2icKogXF7DQ7u49nZbE8dwky3HwL+U4v+ iWJ+fmFdFLRIfV+GRiGKTeJIEEjdvYHlScaTkatZEVAeWCs0xiHOe3QftawrrtpvHsyqHV+R0i1 hnXDbDXQqML6u/eosPw6nihQ57uw= X-Received: by 2002:a05:6512:4dc:b0:519:2d60:d71b with SMTP id 2adb3069b0e04-526bdd47f63mr896360e87.22.1716370057087; Wed, 22 May 2024 02:27:37 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <367856.1716367128@warthog.procyon.org.uk> In-Reply-To: <367856.1716367128@warthog.procyon.org.uk> From: Steve French Date: Wed, 22 May 2024 04:27:24 -0500 Message-ID: Subject: Re: [PATCH] cifs: Fix smb3_insert_range() to move the zero_point To: David Howells Cc: Steve French , Shyam Prasad N , Rohith Surabattula , Jeff Layton , Christian Brauner , linux-cifs@vger.kernel.org, netfs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Added the patch to the test branch and rerunning tests on it now http://smb311-linux-testing.southcentralus.cloudapp.azure.com/#/builders/3/= builds/122 On Wed, May 22, 2024 at 3:39=E2=80=AFAM David Howells = wrote: > > Fix smb3_insert_range() to move the zero_point over to the new EOF. > Without this, generic/147 fails as reads of data beyond the old EOF point > return zeroes. > > Fixes: 3ee1a1fc3981 ("cifs: Cut over to using netfslib") > Signed-off-by: David Howells > cc: Steve French > cc: Shyam Prasad N > cc: Rohith Surabattula > cc: Jeff Layton > cc: linux-cifs@vger.kernel.org > cc: netfs@lists.linux.dev > --- > fs/smb/client/smb2ops.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/smb/client/smb2ops.c b/fs/smb/client/smb2ops.c > index ef18cd30f66c..b87b70edd0be 100644 > --- a/fs/smb/client/smb2ops.c > +++ b/fs/smb/client/smb2ops.c > @@ -3636,6 +3636,7 @@ static long smb3_insert_range(struct file *file, st= ruct cifs_tcon *tcon, > rc =3D smb2_copychunk_range(xid, cfile, cfile, off, count, off + = len); > if (rc < 0) > goto out_2; > + cifsi->netfs.zero_point =3D new_eof; > > rc =3D smb3_zero_data(file, tcon, off, len, xid); > if (rc < 0) > > --=20 Thanks, Steve