Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2023 13:00:17 -0500
From:      Karl Denninger <karl@denninger.net>
To:        stable@freebsd.org
Subject:   Re: FreeBSD Errata Notice FreeBSD-EN-23:16.openzfs
Message-ID:  <02ab3650-3e42-4e92-a14f-559d9d3b0b13@denninger.net>
In-Reply-To: <CAGMYy3vF6h=4ZM5tBFUzNk3TX83cP5j_MiRsF6J3bm6%2BWPfS8w@mail.gmail.com>
References:  <20231201031737.DF0231B942@freefall.freebsd.org> <ZWsI4SbNU2xPjaPF@marvin.hueftgold.tld> <ZW2P8xz046Eqo_0u@fc.opsec.eu> <445y1eaxiz.fsf@be-well.ilk.org> <20231204230246.f11fce2914500a99e094de0b@dec.sakura.ne.jp> <CAGMYy3vF6h=4ZM5tBFUzNk3TX83cP5j_MiRsF6J3bm6%2BWPfS8w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms020407070906030709080402
Content-Type: multipart/alternative;
 boundary="------------OPEkGwm264EgXFclFmeylaNj"

--------------OPEkGwm264EgXFclFmeylaNj
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 12/4/2023 12:51, Xin LI wrote:
>
>
> On Mon, Dec 4, 2023 at 8:32 AM Tomoaki AOKI 
> <junchoon@dec.sakura.ne.jp> wrote:
>
>     On Mon, 04 Dec 2023 08:48:52 -0500
>     Lowell Gilbert <freebsd-stable-local@be-well.ilk.org> wrote:
>
>     > Kurt Jaeger <pi@freebsd.org> writes:
>     >
>     > > I had thought that the ZFS fix is a kernel fix so that the kernel
>     > > would also report -p1, but it does not. It might be because
>     > > zfs is a kernel module, so the kernel itself was not really
>     patched,
>     > > but I might be wrong here.
>     >
>     > As far as I can see, that seems exactly right.
>
>     As this kind of confusion caused by mismatch of patchlevel between
>     kernel and userland arises from time to time, now would be the time to
>     switch to keep patchlevel in sync between kernel and userland.
>
>     This would force both kernel and userland to be built using the same
>     patchlevel, even if one of which is actually unchanged.
>     But maybe helpful to avoid confusion like this.
>
>     What was worse this time was that a non-in-kernel-but-in-tree module,
>     zfs.ko, is updated but kernel itself is not updated.
>
>
> Part of this is because freebsd-update generally wants to exclude 
> cosmetic changes (like build timestamps, etc., which does not have an 
> effect on runtime behavior) in binary patches, so in order to "fix" 
> this we would need to change the update builder, at the expense of 
> always delivering a kernel change regardless if there are any real 
> changes to the binary.  At the time when I owned the builder code, the 
> consensus was that we are moving to a packaged base really soon (tm) 
> and the builder is in "maintenance mode" so we didn't invest a lot in 
> this front.
>
> Cheers,

I would argue that if /kernel modules /are implicated in a patch then 
either (1) the kernel /version /has to come from a module (and thus be 
bumped if any of said modules are updated) or (2) the kernel /itself 
/has to be updated so its version can be patched.

#1 is obviously a /lot/ less intrusive and perhaps the correct answer: 
/The "kernel revision" is incremented when *_either_* the kernel itself 
or any of its loadable modules are patched/updated, and the revision 
*_itself_* is in a loadable module and thus can be updated as a tiny 
little file instead of the entire kernel./

-- 
Karl Denninger
karl@denninger.net
/The Market Ticker/
/[S/MIME encrypted email preferred]/
--------------OPEkGwm264EgXFclFmeylaNj
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 12/4/2023 12:51, Xin LI wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGMYy3vF6h=4ZM5tBFUzNk3TX83cP5j_MiRsF6J3bm6+WPfS8w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_default"
            style="font-family:monospace,monospace"><br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Mon, Dec 4, 2023 at
            8:32 AM Tomoaki AOKI &lt;<a
              href="mailto:junchoon@dec.sakura.ne.jp"
              moz-do-not-send="true" class="moz-txt-link-freetext">junchoon@dec.sakura.ne.jp</a>&gt;
            wrote:<br>
          </div>
          <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On
            Mon, 04 Dec 2023 08:48:52 -0500<br>
            Lowell Gilbert &lt;<a
              href="mailto:freebsd-stable-local@be-well.ilk.org"
              target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">freebsd-stable-local@be-well.ilk.org</a>&gt;
            wrote:<br>
            <br>
            &gt; Kurt Jaeger &lt;<a href="mailto:pi@freebsd.org"
              target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">pi@freebsd.org</a>&gt;
            writes:<br>
            &gt; <br>
            &gt; &gt; I had thought that the ZFS fix is a kernel fix so
            that the kernel<br>
            &gt; &gt; would also report -p1, but it does not. It might
            be because<br>
            &gt; &gt; zfs is a kernel module, so the kernel itself was
            not really patched,<br>
            &gt; &gt; but I might be wrong here.<br>
            &gt; <br>
            &gt; As far as I can see, that seems exactly right.<br>
            <br>
            As this kind of confusion caused by mismatch of patchlevel
            between<br>
            kernel and userland arises from time to time, now would be
            the time to<br>
            switch to keep patchlevel in sync between kernel and
            userland.<br>
            <br>
            This would force both kernel and userland to be built using
            the same<br>
            patchlevel, even if one of which is actually unchanged.<br>
            But maybe helpful to avoid confusion like this.<br>
            <br>
            What was worse this time was that a
            non-in-kernel-but-in-tree module,<br>
            zfs.ko, is updated but kernel itself is not updated.</blockquote>
          <div><br>
          </div>
          <div class="gmail_default"
            style="font-family:monospace,monospace">Part of this is
            because freebsd-update generally wants to exclude cosmetic
            changes (like build timestamps, etc., which does not have an
            effect on runtime behavior) in binary patches, so in order
            to "fix" this we would need to change the update builder, at
            the expense of always delivering a kernel change regardless
            if there are any real changes to the binary.  At the time
            when I owned the builder code, the consensus was that we are
            moving to a packaged base really soon (tm) and the builder
            is in "maintenance mode" so we didn't invest a lot in this
            front.</div>
          <div class="gmail_default"
            style="font-family:monospace,monospace"><br>
          </div>
          <div class="gmail_default"
            style="font-family:monospace,monospace">Cheers,</div>
        </div>
      </div>
    </blockquote>
    <p>I would argue that if <i>kernel modules </i>are implicated in a
      patch then either (1) the kernel <i>version </i>has to come from
      a module (and thus be bumped if any of said modules are updated)
      or (2) the kernel <i>itself </i>has to be updated so its version
      can be patched.</p>
    <p>#1 is obviously a <i>lot</i> less intrusive and perhaps the
      correct answer: <i>The "kernel revision" is incremented when <b><u>either</u></b>
        the kernel itself or any of its loadable modules are
        patched/updated, and the revision <b><u>itself</u></b> is in a
        loadable module and thus can be updated as a tiny little file
        instead of the entire kernel.</i></p>
    <div class="moz-signature">-- <br>
      Karl Denninger<br>
      <a href="mailto:karl@denninger.net" class="moz-txt-link-freetext">karl@denninger.net</a><br>
      <i>The Market Ticker</i><br>
      <font size="-2"><i>[S/MIME encrypted email preferred]</i></font></div>
  </body>
</html>

--------------OPEkGwm264EgXFclFmeylaNj--

--------------ms020407070906030709080402
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC
DbowggagMIIEiKADAgECAhMA5EiKghDOXrvfxYxjITXYDdhIMA0GCSqGSIb3DQEBCwUAMIGL
MQswCQYDVQQGEwJVUzEQMA4GA1UECAwHRmxvcmlkYTESMBAGA1UEBwwJTmljZXZpbGxlMRkw
FwYDVQQKDBBDdWRhIFN5c3RlbXMgTExDMRgwFgYDVQQLDA9DdWRhIFN5c3RlbXMgQ0ExITAf
BgNVBAMMGEN1ZGEgU3lzdGVtcyBMTEMgMjAxNyBDQTAeFw0xNzA4MTcxNjQyMTdaFw0yNzA4
MTUxNjQyMTdaMHsxCzAJBgNVBAYTAlVTMRAwDgYDVQQIDAdGbG9yaWRhMRkwFwYDVQQKDBBD
dWRhIFN5c3RlbXMgTExDMRgwFgYDV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BMTEMgMjAxNyBJbnQgQ0ECEgLG8yH4PQFdbd9x
Ugmpzl1jXzANBgkqhkiG9w0BAQEFAASCAgAPlz9Xubntkh+p0ikR/A2F/l1BmCDJEWZxXxCK
YqiPMM5frL9r+TfQi1haf9ACWOGkHa3kuIGZ8C25YGqijm7Btj2gcFljAkWupvxOCbYYTYEr
djt5xRSwU3nr6pFvYTb11C4w122jIFbloyaStuKcSg9ZNNBD7WV1edk84P1ORVHhVHch77MA
VgkdQ//9bVdQu0+t2Ds05QUvJLNke6fjYuDE1Tjpz9MxMIP2DZp3yAICLSclc9Nnc192+y+x
ZHDC/erlU6jG3e6QzR9kAV5Cim+ZAcjkTbUv0rfzLhShHcEm6H7/otb2h2mu9EdN0fdgBccD
TpU7RwmF8VPwHbcZ6KW96uS2/zEp6u4Zn7nKm/aZh5/sSd9M7NFGX3H8o/Cfrt51+t2zo1Jy
G7dF9UBD9wm7p7Qd+tAbxOKqXAN1n+GW420tgmKl1CrV2SChub8AdiU3q0V9DRAdw8en1zZ+
4kr69sGt+aqGcBAZD3ggJuTyaF5ipVMsaKJhRcQ6s9JIqQguQwrjy57XRIoMZbPdP2a0mw6N
8c6cUgSLNc7rp2m0I8At8RUFtoZ9w6RozAYXQa0MN/uszp5YfDAKOYebySsqDd23mWvwchip
aRls3fCUjD+W67ugUReL6J5R+vRwCzbelp3GhGVGdKUIDO1pggmz59oUUaxe1bK4kNH5DwAA
AAAAAA==
--------------ms020407070906030709080402--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02ab3650-3e42-4e92-a14f-559d9d3b0b13>