From nobody Wed Dec 15 21:44:30 2021 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 8223B18D846A for ; Wed, 15 Dec 2021 21:44:30 +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 4JDpg21kqMz4crk for ; Wed, 15 Dec 2021 21:44:30 +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 1B63D23A74 for ; Wed, 15 Dec 2021 21:44:30 +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 1BFLiUli058803 for ; Wed, 15 Dec 2021 21:44:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BFLiUsR058802 for bugs@FreeBSD.org; Wed, 15 Dec 2021 21:44:30 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 260453] ZFS truncated write to O_APPEND file from mmap'ed memory Date: Wed, 15 Dec 2021 21:44:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: phk@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639604670; 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; bh=8JBBEAYUdzbXA4JLEkAp2LfCxjjM2KLC3jCdQnt1uqU=; b=pIsX1bSum7sgQBKb5I+El1U+CxM72d02rLGNGcY3F4K83BoFE4sSpjwOkUiW+PRe8fMv7X LKblD+oEYBUs9Xiv/DDmYtSNtbjE8zTNxg3OgfqbDfbGNDh3UaLTmTK4ZoXzIbRqwQS5Sr uTH+gN4iCX7jC8JDth83XNB00MPg+WqPb+ayALYMYibuINsLIsLIrb/1PLBk7G5pSoLpN+ b6yHoPZWowyDWWdBSBzSm+cwE55CCn3yrnaR3rtqz3nQAwmIVlsLEYAKcJgR83Tft4MmUt StENYkV5FjZKAf/aTbiSut6T+03h0f7bFARXZ1zc6awrLY0zLtGuImSXtbLDQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639604670; a=rsa-sha256; cv=none; b=pkrmojEN64IU6/Di7eYMB2dVgkgMnf5SIBxyKugl+9ovlLbkrbkp3xu8gcpRcFXRHtZRFH hwa1KURCUJJuZ7qJIT9llV8WiUFCHpOO0DUjd3/PyNXBOJm4lIjisjsGQ9RFK2Y/Ia+7/A 6zAHuoQkXJKrpEDr43sn2kspeXixGnKsk9ACasW9tPQ83buXyZXqSxDP1Z9K53SHuikyx7 x2Z0hwDsf/QakG5CWGcsrs2De0I0fdDYOp9OdCIb2a4YFqo9YGX/uVUkv1F8L3flL4dq8c qixNAeh5zvd3AHnkk4dYOJeHJ14W/Wcv0skxyUZk3/FWDhuld5lF88cKMMujyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260453 Bug ID: 260453 Summary: ZFS truncated write to O_APPEND file from mmap'ed memory Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: phk@FreeBSD.org Summary: A file is opened for O_APPEND writev(2) is called with 480 bytes from a mmap'ed neighbor file. writev(2) returns 480 The file only grows by 194 bytes. Seen on: 13.0p5, emaste reproduced on ref13-amd64 ZFS seems to be a requirement for the failure. To reproduce: git clone https://github.com/bsdphk/AardWARC cd AardWARC make test (The action happens in /tmp) The bug triggers the following assert: Assert error in silo_attempt_append(), wsilo.c line 436: Condition((off_t)s =3D=3D (after - before)) not true. --=20 You are receiving this mail because: You are the assignee for the bug.=