From owner-freebsd-stable@freebsd.org Thu Feb 25 18:47:01 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0720656CB98 for ; Thu, 25 Feb 2021 18:47:01 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DmhbS45D6z3DhJ; Thu, 25 Feb 2021 18:47:00 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oi1-x232.google.com with SMTP id w69so7137773oif.1; Thu, 25 Feb 2021 10:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AzUYmRtR7GNgeqY1MHQ1o9COBIVNTOFlpX/UL0DUYw8=; b=UttlGz+bqXe5+SbWWoUX12R2TUNdIH5+z5EDEEkzgzfrrWh+BYh9TbxSIjLxXvbm/z amCnsPg3KOHk+vngDFvPnN91HIZOJBKeo+fgj86fWFqedreJf/FByM5SO24IMKsBLdyT gpuI8C6ueBwrqXYcaZcSioanrsH0S78xmsaGWp90ZHNwO3cTLNu9AtJUdbUAmQVYPsqY VpW7eOHpqt0uJmoKJKniR8jL4f6SFA3z0knY/S9jK7g3QnLp5IM/0ph6xsXxm9htKb79 QTkTqqOWn1WqZ89PI8WcNfE33h/PwRUl4DCX2NVwzkBzOiB1hgdoDSytgSHdnwZjxpaA Y31w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AzUYmRtR7GNgeqY1MHQ1o9COBIVNTOFlpX/UL0DUYw8=; b=HjgAkKIQxcYkkx+ni4Zeriruy7inHCDqRWlYdf+C8k3dRn0co/X8H9Ipu7cuBu8jCW 0M//WwaWaiNbixfTcgXeE1QbvHdPKmUU4BhiB42ta6TS56ey513Srd30AGqNbPCMi2cn 1LvAXmS14wK6wUBf7+0zikpbQUTr9zgqKtfJJ/DOJ/kIKQPM4UZyWVS2YJmd+L7vniD0 4DL13mHutd3psKvpYsg0S2iyh+cI9s/qqLI2CCECnE2E1ROY7UlT+an1WDmt2Td/rCxV TbwAtL7whILFLbUwH/BNtUZHYBrB76BXvJnS6Z58m1cGOVEsnyWmQcj9elqiRlKimDKX IXZw== X-Gm-Message-State: AOAM530Q/UFjBVjsRFbGW0ABxjsoIf0gmJimx9e0gIqDc9mmAuBv5nno 1AfarYIdd1lelU4my+AIIjQH5pHU8NSX1UZgBuKpLLamABA= X-Google-Smtp-Source: ABdhPJyrz3E5xYb81lTJsA5sSqI2AnlBQvnuN+mhALpCXx/ZFkjwd7UtUcD2La2yJAl3U84Q0f6+Kk8V/n5Gc92ctyA= X-Received: by 2002:aca:a9cd:: with SMTP id s196mr2821636oie.27.1614278819470; Thu, 25 Feb 2021 10:46:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kevin Oberman Date: Thu, 25 Feb 2021 10:46:43 -0800 Message-ID: Subject: Re: How do I know if my 13-stable has security patches? To: Ed Maste Cc: FreeBSD-STABLE Mailing List X-Rspamd-Queue-Id: 4DmhbS45D6z3DhJ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UttlGz+b; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::232 as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-2.69 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.992]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; SUBJECT_ENDS_QUESTION(1.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::232:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::232:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::232:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-stable] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2021 18:47:01 -0000 On Thu, Feb 25, 2021 at 6:10 AM Ed Maste wrote: > On Thu, 25 Feb 2021 at 02:42, Kevin Oberman wrote: > > > > Thanks, Ed, but where do I find this? uname -a" gives me > stable/13-007101f87. For a while I was seeing a hyphenated number prefixed > with a 'c' and I had assumed that that number was the sequence. > > It is (was) - we changed from 'c' to avoid having it look like a hex value. > > To generate (this part of) uname the build script runs: > if [ "$($git_cmd rev-parse --is-shallow-repository)" = false ] ; > then > git_cnt=$($git_cmd rev-list --first-parent --count > HEAD 2>/dev/null) > if [ -n "$git_cnt" ] ; then > git="n${git_cnt}-${git}" > fi > fi > > Would you try running, at the top of your stable/13 src tree: > git rev-parse --is-shallow-repository > git rev-list --first-parent --count HEAD > I do run a shallow clone, as I suspect most non-developers will. # git rev-parse --is-shallow-repository true # git rev-list --first-parent --count HEAD 133 As for an easy check for the presence of a patch by hash, I like the "git log --pretty=oneline" | grep This assumes that the sources have NOT been updated since the system was updated. If they have, you can do a "egrep -n ^" on both the partial hash in "uname -a" and in the security announcement and see which is older by line number. My thanks to Jeremy Chadwick for this approach. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683