From nobody Wed Mar 16 00:10:50 2022 X-Original-To: freebsd-announce@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 6185E1A2F413 for ; Wed, 16 Mar 2022 00:10:51 +0000 (UTC) (envelope-from security-advisories@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KJ9fL3ZQnz4fQZ; Wed, 16 Mar 2022 00:10:50 +0000 (UTC) (envelope-from security-advisories@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647389451; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=V3Slp2WBr7ztxWNnMSYBlJKRcPpYvUxFmdFBbz7qZJ4=; b=tGGitomROyuIhtfz/jDYOSu9fY3XUmIbldIEpb8S2GpkcSLH9nHJs+lMBxwqhfbZ8iyWst fUNX4R4NZnFACFhoKnaqdY1qGELQT7GqF8rhq1GOKo2mB0CKWYGsyB/V4D4qfFMicIEnje z5GkhHi1kN2zfnzJaOrreaNDIKXrtATlwQ29DZB6YrmtYTb7VBh4198YORVRxkBLS49WRi F4J7+9cjnnYltwu6xV360gk/6Uii/ILEMxL97g+ZTiyD9KeNDirCfnM53hOIHa8t3Fsplt Qtgm5mEFLp9bl/OojeasCsnOO4/ngloDOOOc9sj6isjCWQPq/pRyEb9J2A3nHw== Received: by freefall.freebsd.org (Postfix, from userid 945) id 4F8A952B3; Wed, 16 Mar 2022 00:10:50 +0000 (UTC) From: FreeBSD Errata Notices To: FreeBSD Errata Notices Subject: FreeBSD Errata Notice FreeBSD-EN-22:11.zfs [REVISED] Reply-To: freebsd-stable@freebsd.org Precedence: bulk Message-Id: <20220316001050.4F8A952B3@freefall.freebsd.org> Date: Wed, 16 Mar 2022 00:10:50 +0000 (UTC) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647389450; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc; bh=V3Slp2WBr7ztxWNnMSYBlJKRcPpYvUxFmdFBbz7qZJ4=; b=wd/jXwNGX6NbMc/PcmQiO6X/ifmDIsU1+hZUO2P3QVkdlPsM6i9MPSk1xkH1fhaNdvAW80 kAUSaDPCC2p57sCl6VYxET3XZfAnIArhO+ksGKv9X6Q4YiBDu/PH40O6r9GW02OChQOfzw T41iaY4aGqYf3NPkCuuXVL8hiv5w6HFOd7+0rb4EZVva5Mjo6ufTXNniWmQKJFMXKiykv6 kPYpwZ2CyaCQzZUA68LcB0uPTNV6tkp5M3u565ggO+fNtFjqDNDE46UvhKWWx+/rTpm3PI SrFdASGZ+3sd0jhJzhOgoCq2ebfhIR/RAOmfqvpvEgWpFG2NelmYziTiYkSyng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647389450; a=rsa-sha256; cv=none; b=uLxcbkVx5kfUhEnmgrXSQlvGW7qxQnu96XF+eN+haJZmnZBMfm9hAT3mBxmTxIZQSxJF8B O5VfukkF/TZUwDHpl0Oewd3YrZokoLbszMA/8zxeI3UsA6cHSxi3ux8GFEsBz++XLqPVjo 98KnPlYvXrmrJBTSr54YuhdqNqFYx4r+Z0Bo9PfTS2apbFscZ2kZPmRDd9h4ot2dAWs7BC fdHlaGM8Q8GAK3b3ZCn8Bqoa/Ivp7nFLXtEYvBcZ/pgVfRJl3YfdPl//3PSjWolX6SVWGX 28Bl5DwNvhqXJJlOKVdyroBEnRowJBAU+WpXIB3ZCo60T+JQPytJjjjCBIndJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N List-Id: Project Announcements [moderated] List-Archive: https://lists.freebsd.org/archives/freebsd-announce List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-announce@freebsd.org X-BeenThere: freebsd-announce@freebsd.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 ============================================================================= FreeBSD-EN-22:11.zfs Errata Notice The FreeBSD Project Topic: ZFS lseek(2) inconsistencies Category: contrib Module: zfs Announced: 2022-03-15 Affects: FreeBSD 13.0 Corrected: 2021-12-19 15:25:26 UTC (stable/13, 13.0-STABLE) 2022-03-15 18:09:52 UTC (releng/13.0, 13.0-RELEASE-p8) For general information regarding FreeBSD Errata Notices and Security Advisories, including descriptions of the fields above, security branches, and the following sections, please visit . 0. Revision History v1.0 2022-05-15 -- Initial release v1.1 2022-05-15 -- Updated Correction Details to point to fixed patch that was missing a prerequisite in the source tree. The standalone patch linked in this SA is correct, only the git repo needed updating. I. Background ZFS is one of several filesystems available on FreeBSD. ZFS supports many advanced features, including checksumming, transparent compression, and snapshots. File "holes" are used by filesystems to limit the amount of storage space occupied by a file containing long runs of zero bytes. Rather than filling disk blocks with zeroes, file metadata can indicate the extent of such a run and the filesystem hides the distinction from user applications. II. Problem Description When a file containing holes is mapped using mmap(2), mapped regions of the file may be ignored by lseek(2) when SEEK_HOLE or SEEK_DATA are passed as the "whence" parameter. III. Impact The bug may cause application misbehavior; the precise effects depend on the nature of the application triggering the bug. IV. Workaround No workaround is available, but systems not using ZFS are not affected. V. Solution Upgrade your system to a supported FreeBSD stable or release / security branch (releng) dated after the correction date and reboot. Perform one of the following: 1) To update your system via a binary patch: Systems running a RELEASE version of FreeBSD on the amd64, i386, or (on FreeBSD 13 and later) arm64 platforms can be updated via the freebsd-update(8) utility: # freebsd-update fetch # freebsd-update install # shutdown -r +10min "Rebooting for an errata update" 2) To update your system via a source code patch: The following patches have been verified to apply to the applicable FreeBSD release branches. a) Download the relevant patch from the location below, and verify the detached PGP signature using your PGP utility. # fetch https://security.FreeBSD.org/patches/EN-22:11/zfs.patch # fetch https://security.FreeBSD.org/patches/EN-22:11/zfs.patch.asc # gpg --verify zfs.patch.asc b) Apply the patch. Execute the following commands as root: # cd /usr/src # patch < /path/to/patch c) Recompile your kernel as described in and reboot the system. VI. Correction details This issue is corrected by the corresponding Git commit hash or Subversion revision number in the following stable and release branches: Branch/path Hash Revision - ------------------------------------------------------------------------- stable/13/ 3aa1cabca37d stable/13-n248633 releng/13.0/ 210991b1f28b releng/13.0-n244787 - ------------------------------------------------------------------------- Run the following command to see which files were modified by a particular commit: # git show --stat Or visit the following URL, replacing NNNNNN with the hash: To determine the commit count in a working tree (for comparison against nNNNNNN in the table above), run: # git rev-list --count --first-parent HEAD VII. References The latest revision of this advisory is available at -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/A6HiuWv54gCjWNV05eS9J6n5cIFAmIxJ20ACgkQ05eS9J6n 5cIQiA/+MTR6zs76LH3map57EjI5xSQmlGGRaf6QFKqHg1IeawkxdIKRHWc+fvZz zT4stvv7nz+EAo8wSIJllU7vnjMD+hbbDzgylFQcpVThCtR0VlXaShZtq8Tn4vNK WlIq4ArOB6gWFn2YdLc321kJrxHZOZQ2ttcirwFsLeg7hphw02rp/l7T3iPgKsK3 t8jAvDpuN/pjzQmDwMnVVR2FnofAa3SdMUdCC5LBh9pXf7RWh2yXAMfHr2R219It xYugZf+Nr/SyZGgQsLgkB2K5n/RxAIAQMp5eHgbWGUfMfhmlqmUdg9KE2u2j4v/7 Fj6B4pPpZhcVUKlHhiCryeo1TwURwZ5sUazLg3heIfjsJY7SsSnaKQEyuKNdBuob e5NKQtgKWuCs57DlBKvrjWCUcpWRqBGtxqh2DExQONuRI4DxoWrDL+gkoL5oIZ2j HNy2tCWcZH8meWj8UvBwxE8GBHYUdn1ICJSgyDt4me5AVa+8lYQlcCo2ZpUpMfYs eO8xHbEm+CmwBkGqtYeiZct2irl1XCSWXNIosMNGJz9u2aXj5dFsVjJAM+dMRfli M1Rn5b6H9DlQ4HsAuITlNaHbzey+ej6N/Oot2O95GFWrKnypqh5R3EaH2q971GPT nS1rledjMXwKxW4f7hCZK2NzzwMutxymGcRsBhzrtxZgP+YA22M= =i5YI -----END PGP SIGNATURE-----