From nobody Thu Dec 16 07:40:21 2021 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 8225D18F27FD for ; Thu, 16 Dec 2021 07:40:21 +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 4JF3tY2cmrz3hqr for ; Thu, 16 Dec 2021 07:40:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 36D682BF69 for ; Thu, 16 Dec 2021 07:40: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 1BG7eLGI000413 for ; Thu, 16 Dec 2021 07:40:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BG7eL1v000412 for fs@FreeBSD.org; Thu, 16 Dec 2021 07:40: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: fs@FreeBSD.org Subject: [Bug 260453] ZFS truncated write to O_APPEND file from mmap'ed memory Date: Thu, 16 Dec 2021 07:40:21 +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: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@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: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639640421; 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=lmkaYaqtfxziEZ9NORC3GQKx22Gp0ut03zMH6IcIDOE=; b=N7FiuIu1MUVXUzoGgDb2beGqKR/p8nJKOe6Gxj+uptwxYbzud0BgsRRw1u1S/ILXzGmtTi agcuQjIYZKncizPzD444YdI3Je3bUMsFTcdM2LFyMfO/w3l4tEqTXa/WH8FhdraMgrCgZd S7/cTKWLH0B3d1oRAe7Dv9AjcnvbPZz1BoG6Yi3tJrJKUcaifDJPqNTozcTrRe3EbZZM/8 8lm22BhdHwkFuPtWahIP0y0uGFa/o4Z6QJNeSXunAGGa5gOJkoayMeZNIUNPoKWaRHisIH rGL7pkra7gWVp8n7PjzG88bc/0k6tm+9zMRzDPsU31+72Dgm6VV35t5KBZoGIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639640421; a=rsa-sha256; cv=none; b=DoJYDhKl36w/vKaqPXZkidk40Z2l4zkOXz2W83ZcZO/q9q7d4qP0FMOkaSARFyTtJ9dlMu UJtuKmP0xLFbvzRT5SxIOZqSG42tpukefqpcPJU5RSguBMTWr+u6aKxUunuKPqqGMWHHxS TRbzdTvAEyEgxyPvmTUFq98+bfUC4FOW4nBrIyZfQ5YoRAKp1UDI9Mlla4DVg8uySLhRZ3 n+fxlgXJn49S6M2O6VpwYlXBEnG1Xq6end3s+s7o7V7H6/PMIWjK5rmn+ruNnifYItis++ zAztSHzpcC21RSoWOmV+8gjSK2wSNC63LG1KrmbU46EmTjdca/Q83BQRYJpEfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260453 --- Comment #3 from Andriy Gapon --- Note that in the "old" FreeBSD ZFS (e.g., in stable/12) there wasn't a break after an error from dmu_write_uio_dbuf() and there was some FreeBSD specific code to handle / tolerate EFAULT. In the new OpenZFS that logic is gone. There is some Linux specific code for EFAULT, but for FreeBSD there seems t= o be nothing. FWIW, I think that tools/regression/fsx should / could have caught this kin= d of an issue. --=20 You are receiving this mail because: You are the assignee for the bug.=