From nobody Fri Dec 29 23:21:22 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T21bQ4Hj7z55VF1 for ; Fri, 29 Dec 2023 23:21:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T21bQ0Xjrz4Ln0 for ; Fri, 29 Dec 2023 23:21:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703892082; a=rsa-sha256; cv=none; b=llKLzyGpEAh2W/CM0DH+BSYXFxA9sateQ8NAFFcEr3XKmT4JyCZ73VpJlOwAdPJ179/f2r t7KbQ4H9OeBAm/n1K2PcZUz8wTzvyOGlPdTkzxY04pxqDpzhmIjMh7JnJ/1yvMrPRC/1ld IjrS5zO2/kp5qEX7gI+fNi1ZSQ4N+Zkb21FsEJOcVVpOOpUIr4BkwI+8zjbrzDGwLdYafc klxbZvtJ1DBdTFkV0onCoArF+qeyDi/9cN2DbUjbVU9SLRlJSwa7h96z5rn8sVJ70jT/ZA 1GfY/G6KgYz4JRFle3CaNjXhCHsX3M3F3/gADcAPZsw4WraJ1Bu1C0Bjdv3NFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703892082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gCiJSTQXzQN8BelF39N3niJZn0qlLJAZWaNuxXzQEbg=; b=pwxJOdO8fwW6shAhVGDamvptYTUeDK69dQKjlSES1KTHVs/jL4fat3JCw/df7TzuGMNrDH WgXuGxirjBgsHocGZZkaqB4gEwjsA+AQuuLSZNuVWgx78MGWyyF5mjrOVXrpbwUrTHficD 0YYp8a1FEzIIIwQachZ4r/2cMQmh4gE1KqfFpQLptK9Wy6hhl8ujXavV/Xel1h36xrrc+m 3SVwN+oe8Rbji5f8cG/Jsxi5cruo2CmDO2hVyltMtvtFRAe7WrmYy2NYZW2WuVtDApWYHx kz89avSH8JjBuw6RoJwf8kjiXbZYs+3QpTXttZfDaU9S20FZbyqE+UXLZbhQHA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T21bP6gT4zBgg for ; Fri, 29 Dec 2023 23:21:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3BTNLLbF090419 for ; Fri, 29 Dec 2023 23:21:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BTNLLSi090418 for bugs@FreeBSD.org; Fri, 29 Dec 2023 23:21:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 276002] nfscl: data corruption using copy_file_range Date: Fri, 29 Dec 2023 23:21:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276002 --- Comment #1 from Konstantin Belousov --- Could you please try something along these lines: diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c index a690e988b4b3..f86ecd53ad4e 100644 --- a/sys/fs/nfsclient/nfs_clvnops.c +++ b/sys/fs/nfsclient/nfs_clvnops.c @@ -3956,7 +3956,7 @@ nfs_copy_file_range(struct vop_copy_file_range_args *= ap) if (error =3D=3D 0) error =3D ncl_flush(invp, MNT_WAIT, curthread, 1, 0); if (error =3D=3D 0) - error =3D ncl_flush(outvp, MNT_WAIT, curthread, 1, 0); + error =3D ncl_vinvalbuf(outvp, V_SAVE, curthread, 0); /* Do the actual NFSv4.2 RPC. */ ret =3D ret2 =3D 0; --=20 You are receiving this mail because: You are the assignee for the bug.=