From nobody Thu Dec 16 04:44:52 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 C126918F1567 for ; Thu, 16 Dec 2021 04:44:52 +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 4JF0044Ly0z4s12 for ; Thu, 16 Dec 2021 04:44:52 +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 755DE29C21 for ; Thu, 16 Dec 2021 04:44:52 +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 1BG4iqKi096817 for ; Thu, 16 Dec 2021 04:44:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BG4iqtT096816 for fs@FreeBSD.org; Thu, 16 Dec 2021 04:44:52 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 04:44:52 +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: Rincebrain@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=1639629892; 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=cCwAPCzJqa3DnxiGsGpk38W/U9pXEzSR1GPOf1i/6+c=; b=U8uneSpoC5MFBDAfo/3LsE2BswsKzGPmcxGbKN3asu6ZYSah9lkpQ0HNlD2RLWnUrBS+7a PTfVGLno0izB85fQaJqVP9qf2K9ajtiEEWaEsP4wjLM6XKYIWou/ONym4NqeX44REyRPN6 hUw7G62nzrULrBKt0tKriHbLK6cNKXmQyZmvsEys6WKXtboyal3tm4shtBiMF5NSYbB3v2 bEANC+lZ/c3kkSN/eQfB0eQQ6ztP5XhpINQT7xS6/WoxGEauEEMotJuGSE20i/HZF7pZ4i htkFs5ISmTD3pbkM7mWk98+WE7vRCfs9EbeRzwBEbLfkNROB+36kRpwRDRJqCg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639629892; a=rsa-sha256; cv=none; b=mgCXIbEelnAn3Yu3vlDPaJk1Nqn310+DdwHXBn02lm2u49ONjz+fmbAyXZIROP9bn/MSQo 06GBLOXj6DQioXy8HaasVk6vk5EnQl85paiIhcRT836L9MvPpRY/7Z1PfUjMrMFZtsRb6S J/uJbx5A24QGvj2EJ3haW/szGTOTwqJEyj3GyeeKDKwph5iAPoqik/LbuESJT+OpLVJL1D eqdgugGb82O70lEtthu1Ep0+fJa5yk3RJTTCRpi7aSMGG4sxBrzLwHK2td9QY+MnxjZWsx GPxuDxaeQrg/WU03/lRd/SEqx2BM0XRseru3M9kVF67/jRjE3Gd32evK4iSgKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260453 Rich Ercolani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Rincebrain@gmail.com --- Comment #2 from Rich Ercolani --- This reminds me of the bug https://github.com/openzfs/zfs/commit/c23803be84cb5cc9d98186221f4106a9962df= c45 and its predecessor commit https://github.com/openzfs/zfs/commit/de198f2d9507b6dcf3d0d8f037ba339402087= 33e were intended to fix. Obviously, this isn't SEEK_DATA/SEEK_HOLE, and in that case, you wound up w= ith correctly sized files with zeroes for the last $WHATEVER. But I still thoug= ht I'd mention it in case the logic changes there might help. --=20 You are receiving this mail because: You are the assignee for the bug.=