From nobody Fri Jan 26 17:34:15 2024 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 4TM4Z023yYz58WTr for ; Fri, 26 Jan 2024 17:34:16 +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 4TM4Yz5DPrz4rJ3 for ; Fri, 26 Jan 2024 17:34:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706290455; 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=ZkXGDcEac6VxtXhDYHTqtFDbttBwvc6CLT+ImUWwKWo=; b=COUSDXi0MORV6xyBsTPPkrI9nK+TCpIkR2esVS3RYEsgR4JUuaT7XdtHQy66T0F5GKQCF1 boS5Nr/z0bUKUQQ0D1GUGHiEtvMx7z7oMvaXMBp2f88wZCtBmsAVNlkqffTpf7RSLbl09O rUY3gf65fdp06x4a99PpOEtYmfFTv0L0/J7uc37ALFccbBduedxVa00CmUr2ta/1GcJjbW e82kYMivvKSfEeRhp8JiTRu5hUdW8tGgIeSHpe7TTwHEu23l33S+zZE2jsLyFUzM+KRDZd fS8qGufiWPSGv2At46XxJmkPQUm09f9tmGJNEJRz/goS31bS8bNhl12u2Oa91A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706290455; a=rsa-sha256; cv=none; b=jQXGJdJNr2SLoTd8R05jLV3WTrN/1aOGxZV5ECOX3A9y4kz2AgejCT4zHN/A/3jk5rmvY8 kuBkUTW8JjDMBMeJAi8f1HJnLtHbzUtUmagSCRfEcRebawgMXhJ0frv7x1+bQ5BD66gPKC WUaY0Hr7KiyphQiHrG203rNUSk3dUxCBVV55sIvhlqbMLKY+By6XrZbp1V287ILa1T+XuH LNGnghvQXTckHECQDBJGvbnEaWmype4ensq9lQGk4QG5jMt0F1KkM+qHYKL3hd/RaA4NWn ecsMQHdYrDtmApIjbi15tWZAZCnuSZp5S9g3SW5ghMnW0GL8b0nzSfoO0jWnYQ== 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 4TM4Yz4J8GzqDw for ; Fri, 26 Jan 2024 17:34:15 +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 40QHYFRc087359 for ; Fri, 26 Jan 2024 17:34:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40QHYFNY087358 for bugs@FreeBSD.org; Fri, 26 Jan 2024 17:34:15 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 276645] Fix for swapon overwriting Linux swap header Date: Fri, 26 Jan 2024 17:34:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rbranco@suse.com 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276645 Bug ID: 276645 Summary: Fix for swapon overwriting Linux swap header Product: Base System Version: 14.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: rbranco@suse.com The Linux swap partition uses a 4096-byte header that holds the label & UUI= D. You can see the structure here: https://github.com/util-linux/util-linux/blob/master/include/swapheader.h The problem is thus how to prevent FreeBSD from overwriting the header. It turns out there's a neat way to do just that with GEOM using the gnop system tool. This PR modifies swapon to automate this process, which also works with /etc/fstab. This will benefit dual-boot installations and also live-CD's. Fix: https://github.com/freebsd/freebsd-src/pull/1084 --=20 You are receiving this mail because: You are the assignee for the bug.=