From nobody Tue Jan 02 23:48:34 2024 X-Original-To: fs@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 4T4V0y477Rz568k6 for ; Tue, 2 Jan 2024 23:48:34 +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 4T4V0y15TZz3XMg for ; Tue, 2 Jan 2024 23:48:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704239314; a=rsa-sha256; cv=none; b=IUPOATNBL8jAboFtm58D8uFs7wYMKRjJTtmvbnGYCZwRCXd+1FcCwCErs4Ux2/sB3vMk+N pdR6PF8mBy7yyGBessJ6oAW1GMBi6OWB37d5ez5vAiGv4JLQL5u2C9p01oG2cYG1aDHWae mM2YLeQq0tUqpX/drfukWwSLguzeFB1pkzAgQBWChNmMl563u3ralJujR2fb/lq11PUSxv 8V4MLRPhVn2c7dhh00ih4xkmAF5OKtDUTMwuf0M5joVuffOKsHD0lQIW/Cfd8ljsy5df1g kHKJeuiAqx4EOpohsjTfuKoz1TJLvkGnA2wSYJ+BqrFSCQAT2MoWT6tC9twIfw== 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=1704239314; 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=9Npl4rOTS1GQeOQkO48W2Dq6uRqa3Dkb8bUib3WfekU=; b=AzLfbI2VlczK3UeCnvUXOlu8OXclRjQggBlf3pm9+GWZc7AtMHsi1NNZe1kYE+oC+F7gSQ ACNffdNASsa2EOZFPT2hVPfbTg2A5NdLjE5/7mwsM0o3R1UjtJD8oYEAQAch5iNJOqQorN 6L9uOZZ93u7EaT6PWtlHEZqamQvqI2Dg30VxW/DMXv3aHWkV8i1SYczR5YplODkE3a9Qqy 93RM9r4So0m7SDGF7RJ2uaKZf9hlVMmUgfh10R64vHDYyk+3e0cGUI/PuGI81ZNXB0TQm3 vuvmiseQPViLD8lKRRFmrZIuANHUUZmYUEt7uqfXJb0cfl98vi82Zsxovw3mNQ== 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 4T4V0y03Zlz1LBv for ; Tue, 2 Jan 2024 23:48:34 +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 402NmXut086237 for ; Tue, 2 Jan 2024 23:48:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 402NmX8R086236 for fs@FreeBSD.org; Tue, 2 Jan 2024 23:48:33 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: fs@FreeBSD.org Subject: [Bug 276002] nfscl: data corruption using both copy_file_range and mmap'd I/O Date: Tue, 02 Jan 2024 23:48:34 +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: rmacklem@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276002 --- Comment #49 from Rick Macklem --- Created attachment 247424 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247424&action= =3Dedit Make Setattr invalidate for setting size if mmap'd writing might have occur= red This is another patch that Alan can hopefully test, since his test does include truncation. The patch adds a check for vm_obect_mightbedirty() as well as NMODIFIED (which is set for writes into the buffer cache, but not writes to mmap'd pages) to decide that flushing/invalidation should occur when a Setattr of size is done. --=20 You are receiving this mail because: You are the assignee for the bug.=