Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2021 16:56:18 -0500
From:      Karl Denninger <karl@denninger.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: How do I know if my 13-stable has security patches?
Message-ID:  <7d4e7a1f-da3e-2860-62b1-7be88123bee9@denninger.net>
In-Reply-To: <CANCZdfo2zq1fR5q7X47QFAFt00WrfvSzyqg4vDVbRwdGGXgfMQ@mail.gmail.com>
References:  <CAN6yY1tTt%2BEn6hzMYrjm2fRkUPBAuN9t8%2BR27Z3To_sJRbfUVA@mail.gmail.com> <1748076.jFELhIj8lM@ravel> <CAN6yY1sehRjej7vf3B_TPsg%2BecpDLG=naQ2oiMZ=DATs3PUGzQ@mail.gmail.com> <3308997.ajJYar8FF2@ravel> <001a5401-c334-5937-4ce3-315ff89e34be@denninger.net> <CANCZdfo2zq1fR5q7X47QFAFt00WrfvSzyqg4vDVbRwdGGXgfMQ@mail.gmail.com>

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

--------------ms020408010007060203020801
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On 2/25/2021 15:56, Warner Losh wrote:
>
> On Thu, Feb 25, 2021 at 6:37 AM Karl Denninger <karl@denninger.net=20
> <mailto:karl@denninger.net>> wrote:
>
>     On 2/25/2021 04:30, Olivier Certner wrote:
>     >> Neither command is what I'd call 'intuitive', so it would have
>     taken me a
>     >> long time to find either of them. I cut and pasted the 'git
>     branch' command
>     >> and it took me a moment to realize what that meant. Never ran
>     "grep -l" on
>     >> a pipe, I guess.
>     > You made me laugh! Apart from relatively simple commands, git's
>     interface is
>     > far from intuitive. That's the reason why I regret that it
>     became the hugely
>     > dominant DVCS.
>
>     Regression doesn't have to come to a project, but if the tools you
>     choose do things like this then you have to work around them as a
>     project to avoid the issue, and that might wind up being somewhat
>     of a PITA.
>
>     This specific issue is IMHO quite severe in terms of operational
>     impact.=C2=A0 I track -STABLE but don't load "new things" all the
>     time.=C2=A0 For
>     security-related things it's more important to know if I've got
>     something out there in a specific instance where it may apply (and
>     not
>     care in others where it doesn't; aka the recent Xen thing if
>     you're not
>     using Xen.)=C2=A0 Otherwise if everything is running as it should d=
o I
>     wish
>     to risk introducing bugs along with improvements?=C2=A0 If not in a=

>     security-related context, frequently not.
>
>     Well, this used to be easy.=C2=A0 Is your "uname" r-number HIGHER t=
han the
>     "when fixed" revision?=C2=A0 You're good.=C2=A0 Now, nope.=C2=A0 No=
w I have to go
>     dig
>     source to know because there is no longer a "revision number" that
>     monotonically increments with each commit so there is no longer a
>     way to
>     have a "point in time" view of the source, as-committed, for a give=
n
>     checked-out version.
>
>     IMHO that's a fairly serious regression for the person responsible
>     for
>     keeping security-related things up to date and something the projec=
t
>     should find a way to fix before rolling the next -RELEASE. (Yeah,
>     I know
>     that's almost-certain to not happen but it's not like this issue
>     wasn't
>     known since moving things over to git.)
>
>
> We should likely just publish the 'v' number in the advisories. It's=20
> basically a count back to the start of the project. We put that number =

> in uname already.
>
> You can also=C2=A0 find out the 'v' number in the latest advisories by =

> cloning the repo and doing the same thing we do in newvers.sh:
> % git rev-list --first-parent --count $HASH
> and that will tell you. This needn't be on the target machine since=20
> the hashes are stable across the world.

(list of further "stuff")

But that's my entire point Warner.

The time (and present items) on a given machine to know whether it is=20
covered by a given advisory under the "svn view of the world" is one=20
command, and no sources.=C2=A0 That is, if the advisory says "r123456" ha=
s=20
the fix, then if I do a "uname -v" and get something larger, it's safe.

If I get something smaller it's not.

I don't need the source on the machine, I don't need svn on the target=20
or, for that matter, do I need to know if the source tree I have on a=20
build machine is coherent with whatever is on the running machine.=C2=A0 =
I=20
simply need to know if the source that built the code that is running=20
was updated *after* the commit that fixes the problem.=C2=A0 What if the =

source /isn't on that machine /because you build on some system and then =

distribute?=C2=A0 Does every machine now have to be coherent with your so=
urce=20
repository in order to be able to figure out where you are or worse, it=20
must keep the source from which that specific installation,=20
individually, was built? /What if the source isn't there at all /because =

you run binary code and update with freebsd-update?

Unless I've missed something that's what was lost and IMHO needs to be=20
restored; a way to know that in seconds with nothing other than the=20
operating OS on the box (e.g. via uname) and the advisory with its=20
"greater than X is safe" from the mailing list.=C2=A0 Am I misunderstandi=
ng=20
the current state of things in this regard?

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

--------------ms020408010007060203020801
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
DdgwggagMIIEiKADAgECAhMA5EiKghDOXrvfxYxjITXYDdhIMA0GCSqGSIb3DQEBCwUAMIGL
MQswCQYDVQQGEwJVUzEQMA4GA1UECAwHRmxvcmlkYTESMBAGA1UEBwwJTmljZXZpbGxlMRkw
FwYDVQQKDBBDdWRhIFN5c3RlbXMgTExDMRgwFgYDVQQLDA9DdWRhIFN5c3RlbXMgQ0ExITAf
BgNVBAMMGEN1ZGEgU3lzdGVtcyBMTEMgMjAxNyBDQTAeFw0xNzA4MTcxNjQyMTdaFw0yNzA4
MTUxNjQyMTdaMHsxCzAJBgNVBAYTAlVTMRAwDgYDVQQIDAdGbG9yaWRhMRkwFwYDVQQKDBBD
dWRhIFN5c3RlbXMgTExDMRgwFgYDVQQLDA9DdWRhIFN5c3RlbXMgQ0ExJTAjBgNVBAMMHEN1
ZGEgU3lzdGVtcyBMTEMgMjAxNyBJbnQgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK
AoICAQC1aJotNUI+W4jP7xQDO8L/b4XiF4Rss9O0B+3vMH7Njk85fZ052QhZpMVlpaaO+sCI
KqG3oNEbuOHzJB/NDJFnqh7ijBwhdWutdsq23Ux6TvxgakyMPpT6TRNEJzcB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M1UNcVOupvP87C26PGcQ
PrPEcjr9KGXOnbJV8k9sDpZiJGqq75Q0+95nmEtby+9czPtFiOpLX/O86ZPpbVG9D0ynMrMf
lnuyJiqEvDWkxSbVlhsgWm3B0gjGX2FmQGWaUVDDRSvbtRNKUhLDOSoPFhm7pyminlD36fhQ
j5DtCfpiHX4vbbhejIcGXHZe4lrcI7nbe5fPNTIeQdzxwKx455IhU5Eik2TVwV39s+rtL2ie
AH+zaKq+TVUqopAa/OphebTMJfRYY5CZefbUALqdQg1gCnYzopcWU1/slt1tD5mBl5Wqpxf3
oAUy5LSJGE64XuRPhRMw0lzfp2U+FHNGCX7o7TybDt3DZojV7S/2bfWwiG+aWcVCLvzbpsov
V4FE/my0cHBLEAVEWKj86k3WV8ZmFBEm0Gc45rrTXDBZ0Fv/7hZr+iYdwM0NisJTJMqYL8fe
58mLlZc84q27bG6ns800WBEmMN79i5SmHQez+5Fe2yN3V6DGNGYQD/bDCEA/lbriRfinyZb4
GnGTnLBVUSTp7HzADIcOFskce3v0JmIwJaRp5ZO6gQAAAAAAAA==
--------------ms020408010007060203020801--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d4e7a1f-da3e-2860-62b1-7be88123bee9>