FreeBSD/src e8a5b9frelease release.sh Makefile.oci, release/scripts make-oci-image.sh

release: build OCI images with shell scripts

This avoids the need for buildah and skopeo for building releases.

Reviewed by:            cpersiva
MFC after:              1 day
Differential Revision:  https://reviews.freebsd.org/D48574
DeltaFile
+93-12release/scripts/make-oci-image.sh
+0-38release/release.sh
+1-5release/Makefile.oci
+2-1release/tools/oci-image-minimal.conf
+2-1release/tools/oci-image-static.conf
+1-1release/tools/oci-image-dynamic.conf
+99-586 files

FreeBSD/src 3ae7c76sys/netinet in.c in.h

netinet: Make in_canforward() return bool

No functional change intended.

MFC after:      5 days
DeltaFile
+5-5sys/netinet/in.c
+1-1sys/netinet/in.h
+1-1sys/netinet/ip_input.c
+7-73 files

FreeBSD/src f7174ebsys/netinet ip_icmp.c in.c

netinet: Do not forward or ICMP response to INADDR_ANY

The section 4 in the draft proposal [1] explicitly states that 0.0.0.0,
aka INADDR_ANY, retains its existing special meanings.

[1] https://datatracker.ietf.org/doc/draft-schoen-intarea-unicast-0

Reviewed by:    glebius
Fixes:  efe58855f3ea IPv4: experimental changes to allow net 0/8, 240/4, part of 127/8
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D49157
DeltaFile
+3-2sys/netinet/ip_icmp.c
+2-1sys/netinet/in.c
+5-32 files

FreeBSD/src 361a839sys/net/route route_ctl.c

routing: do not allow PINNED routes to be overriden

First configured PINNED routes should have higher priority.

Fixes:          1da4954c92ea
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D48650
DeltaFile
+1-1sys/net/route/route_ctl.c
+1-11 files

FreeBSD/src 420e2f8sys/vm vnode_pager.c

vnode_pager: simplify loop, avoid overflow

Filling in read-behind pages in vnode_pager_generic_getpages() is made
very slightly simpler here, by avoiding overflowing the startpindex
variable and then avoiding an extra test in the allocation loop that
handles the overflow case.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D49200
DeltaFile
+6-11sys/vm/vnode_pager.c
+6-111 files

FreeBSD/src 7c5d816share/man/man4 Makefile

man4: Fix duplicate if_rtw89.4 MLINK

Fixes: 4262dbc57982 ("wifi manuals: Mlink + document description consistency")
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit ae2b84d9ab9cb01abb035ad6e938382d1f7c1e3e)
DeltaFile
+1-1share/man/man4/Makefile
+1-11 files

FreeBSD/src 23da585share/man/man4 pci.4

pci(4): Give UEFI wiring example

Sponsored by:           Netflix
Reviewed by:            ziaee
Differential Revision:  https://reviews.freebsd.org/D49195
DeltaFile
+42-6share/man/man4/pci.4
+42-61 files

FreeBSD/src e74a3c7sys/net80211 ieee80211_ddb.c

net80211: add AES-GCM in ddb output

Add the AES-GCM crypto cipher field decode in ddb.

Differential Revision:  https://reviews.freebsd.org/D49188
Reviewed by:    bz
DeltaFile
+3-0sys/net80211/ieee80211_ddb.c
+3-01 files

FreeBSD/src 4b86550sbin/ifconfig ifieee80211.c

ifconfig: add AES-GCMP RSN OUI decoding

This decodes the AES-GCMP OUI in ifconfig, ifconfig list sta,
ifconfig list scan, etc.

Differential Revision:  https://reviews.freebsd.org/D49187
Reviewed by:    bz
DeltaFile
+2-0sbin/ifconfig/ifieee80211.c
+2-01 files

FreeBSD/src 43fa7b9sys/x86/iommu amd_reg.h

amdiommu: add register definitions from IOMMU spec 48882 rev. 3.10

Most important for us is the max interrupt remapping count report in the
EFR2 register.

Sponsored by:   Advanced Micro Devices (AMD)
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+18-0sys/x86/iommu/amd_reg.h
+18-01 files

FreeBSD/src 970d9b5share/man/man4 Makefile uath.4

wifi manuals: Mlink + document description consistency

Interfaces all have an mlink to if_$foo. Add these for the missing ones
and remove an incorrect one from rtwn_pci. Wireless network drivers are
all accessible via `apropos -s4 "wireless network driver", except two
which are "wireless network device". I actually prefer the latter, but
make them all consistent upon the more common parlance. Tag SPDX on one
of the files I touched, while here.

MFC after:              3 days
Reviewed by:            bz, carlavilla, mhorne
Approved by:            carlavilla, mhorne (mentors)
Differential Revision:  https://reviews.freebsd.org/D49063

(cherry picked from commit 4262dbc57982383eb61a8b7806de6dd4b7802da8)
DeltaFile
+3-1share/man/man4/Makefile
+3-1share/man/man4/uath.4
+1-1share/man/man4/upgt.4
+7-33 files

FreeBSD/src 10c633asys/dev/ath/ath_rate/sample sample.c

ath_rate_sample: fix setting HT rates

ieee80211_node_set_txrate_ht_mcsrate() takes an MCS rate from 0..76,
the high bit (IEEE80211_RATE_MCS) must not be set.

This is definitely my fault - I likely didn't get to testing this
diff when I changed it from ieee80211_node_set_txrate_dot11rate()
just before landing.

Differential Revision:  https://reviews.freebsd.org/D49197
Reviewed by:    bz
DeltaFile
+2-1sys/dev/ath/ath_rate/sample/sample.c
+2-11 files

FreeBSD/src 50ec1e7sys/dev/ath if_ath_tx_ht.c

ath: fix 20MHz HT short-gi logic.

This was broken in an earlier commit

(ca389486a9599768e0ba69dca13c208020623083).

PR:             kern/285096
Differential Revision:  https://reviews.freebsd.org/D49196
Fixes:  ca389486a9599768e0ba69dca13c208020623083
Reviewed by:    bz
DeltaFile
+1-1sys/dev/ath/if_ath_tx_ht.c
+1-11 files

FreeBSD/src 1dd41c7tests/sys/netpfil/pf rdr.sh

pf tests: Remove Scapy as a required program

Scapy is not needed to run this test.  Remove it from the required
programs list.

Reviewed by:    kp
Approved by:    emaste (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D49006

(cherry picked from commit 1f1963bd32d669f89ea3b044636de0cb7a33134b)
DeltaFile
+1-1tests/sys/netpfil/pf/rdr.sh
+1-11 files

FreeBSD/src c564603tests/sys/netinet6 ndp.sh

netinet6 tests: Add Scapy as a required program

The ra.py script requires Scapy.  Invoke it using the python3 symlink.
While technically, at the moment, python points to python3, and python3
points to the current version of python, it is recommended to use
python3.  No functional change intended.

Add the Scapy requirement in the header of each test that makes use of
it.

Reviewed by:    kp
Approved by:    emaste (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D49005

(cherry picked from commit ec60176e7d29d1e9f11121146603ce5b6b5f40b8)
DeltaFile
+3-3tests/sys/netinet6/ndp.sh
+3-31 files

FreeBSD/src c21c8a1share/man/man9 ifnet.9 Makefile

IfAPI: Update ifnet(9) man page

Add starting documentation of the IfAPI to the ifnet(9) page.  This
replaces the existing struct ifnet documentation, since it's to be
treated as opaque now.

Reviewed by:    #manpages, adrian, ziaee
Differential Revision: https://reviews.freebsd.org/D47931
DeltaFile
+348-251share/man/man9/ifnet.9
+3-0share/man/man9/Makefile
+351-2512 files

FreeBSD/src a18be39usr.sbin/makefs/cd9660 iso9660_rrip.c

makefs: Initialize cd9660 inode map only once

Error introduced during a refactoring; cd9660_susp_initialize calls
itself recursively.

Sponsred by:    The FreeBSD Foundation
Fixes: 35a2e286157a ("makefs: Record inode for all entries in mtree mode")
DeltaFile
+13-7usr.sbin/makefs/cd9660/iso9660_rrip.c
+13-71 files

FreeBSD/src 666f824usr.sbin/bluetooth/iwmbtfw main.c iwmbtfw.8

iwmbtfw(8): fix getopt flags, unify usage()/manual page contents

Seems like there was an intention to use command line switches
-m, -p and -v (each with argument), but there is no handling
for them.

Also, some enhancements to the usage()/manpage:

 - use FreeBSD manpage style -- square brackets -- for denoting
   optional arguments in usage();

 - show default directory path in usage();

 - update manual: -f is the optional flag;

 - show descriptions for -I/-D together: they are logically related.

Signed-off-by:  Eygene Ryabinkin <rea at FreeBSD.org>
Reviewed by:    wulf

    [3 lines not shown]
DeltaFile
+4-3usr.sbin/bluetooth/iwmbtfw/main.c
+3-3usr.sbin/bluetooth/iwmbtfw/iwmbtfw.8
+7-62 files

FreeBSD/src f259178usr.sbin/bluetooth/iwmbtfw main.c

iwmbtfw(8): don't program hardware without existing firmware image

One should not start firmware update sequence just to understand
that there is no firmware image to program: update sequence for 7260
requires leaving manufacturing mode and in the case of missing
firmware file it will trigger complete re-initialization of BT adapter.
Which, in turn, will make the USB device to go away and reappear.

Since devd(8) has hooks for USB device attachment, in the case
of missing firmware it used to
 - trigger the (failing) firmware download,
 - which triggers device reset,
 - which creates USB notification and devd(8) kicks back in.

Nice infinite cycle with many notifications via syslog:
{{{
Jan  3 09:00:01 kernel: ugen0.2: <vendor 0x8087 product 0x0a2a> at usbus0
Jan  3 09:00:01 kernel: ugen0.2: <vendor 0x8087 product 0x0a2a> at usbus0 (disconnected)
Jan  3 09:00:02 kernel: ugen0.2: <vendor 0x8087 product 0x0a2a> at usbus0

    [8 lines not shown]
DeltaFile
+14-27usr.sbin/bluetooth/iwmbtfw/main.c
+14-271 files

FreeBSD/src 3d5e492usr.sbin/bluetooth/iwmbtfw main.c iwmbt_hw.c

Refactor iwmbtfw: modularize and de-constify

 - Move logic for firmware download into different adapter types
   to the own functions to allow main() to be simpler

 - Use enums/typedefs for exit modes, image types, etc

 - Purge most obvious comments: functions are named properly,
   so most of their invocations self-document the code.

Signed-off-by:  Eygene Ryabinkin <rea at FreeBSD.org>
Reviewed by:    wulf
MFC after:      1 month

(cherry picked from commit 06969db312022277729dd144e3655a90007306ef)
DeltaFile
+273-253usr.sbin/bluetooth/iwmbtfw/main.c
+3-12usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.c
+13-1usr.sbin/bluetooth/iwmbtfw/iwmbt_hw.h
+8-0usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.h
+1-0usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c
+298-2665 files

FreeBSD/src d3f637busr.sbin/bluetooth/iwmbtfw main.c

Refactor iwmbtfw: set default firmware_dir after argument parsing

Don't repeat firmware_dir stanza at all "if" branches: be more DRY.

Signed-off-by:  Eygene Ryabinkin <rea at FreeBSD.org>
Reviewed by:    wulf
MFC after:      1 month

(cherry picked from commit f466ba4ca479ec500b927deadaba104469662994)
DeltaFile
+4-12usr.sbin/bluetooth/iwmbtfw/main.c
+4-121 files

FreeBSD/src 8ac7c65sys/dev/ixgbe ixgbe_mbx.c

ixgbe: Fix a logic error in ixgbe_read_mailbox_vf()

Reviewed by:    kbowling
Differential Revision:  https://reviews.freebsd.org/D49156

(cherry picked from commit 5c7087c349fc1d826807aa1a11912c9e774e3321)
DeltaFile
+1-1sys/dev/ixgbe/ixgbe_mbx.c
+1-11 files

FreeBSD/src e2dd73clib/libsys open.2

open.2: minor editing

Remove unneeded braces.
Bump Dd.

Suggested and reviewed by:      maxim
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+3-3lib/libsys/open.2
+3-31 files

FreeBSD/src a80bbc4sys/netlink netlink_domain.c

netlink: refuse a send(2) that is larger than socket buffer

The Netlink RFC doesn't say that explicitly, but general discussion seems
to state that a single netlink message shall be delivered in a single
send(2) to the socket.  So, if a single message doesn't fit into buffer it
is clear EMSGSIZE.  The RFC is unclear if application is allowed to send
several smaller messages with a single syscall potentially overflowing the
buffer and whether kernel should accept any of them.  At the moment, no
legit application does that.  So, decision was taken not to overload
nl_sosend() with a message parsing logic and deny any oversized write.

Reported-by:    syzbot+eb5db60d36b005dbccf5 at syzkaller.appspotmail.com
DeltaFile
+3-0sys/netlink/netlink_domain.c
+3-01 files

FreeBSD/src 457d745release/scripts pkg-stage.sh, release/tools oracle.conf

release: ensure default sudo flavor is selected

pkg behaviour selects the non-default flavour, this trims
0,5GiB per cloudware image, by being explicit.

Approved by:    cperciva
Differential Revision:  https://reviews.freebsd.org/D48599
Sponsored by:   SkunkWerks, GmbH
PR:             284278
MFC after:      10 days
DeltaFile
+1-1release/scripts/pkg-stage.sh
+1-1release/tools/oracle.conf
+2-22 files

FreeBSD/src 76fdef7. UPDATING

UPDATING: Add an entry for commit 9fed5151903f
DeltaFile
+6-0UPDATING
+6-01 files

FreeBSD/src 310646asys/sys param.h

param.h: Bump _FreeBSD_version for commit 9fed5151903f
DeltaFile
+1-1sys/sys/param.h
+1-11 files

FreeBSD/src 9fed515sys/fs/nfs nfs_commonkrpc.c nfs_var.h, sys/fs/nfsclient nfs_clstate.c

nfscl: Add support for CB_RECALL_SLOT

The callback CB_RECALL_SLOT is required for NFSv4.1/4.2.
Fortunately, there does not appear to be any extant
NFSv4.1/4.2 servers that use it.  Since commit b97a478896e9
fixed handling of session slot shrinking, this patch
adds support for CB_RECALL_SLOT, which shrinks the
number of session slots as well.

(cherry picked from commit 4517fbfd4251180147082f94253c4347fa44f570)
DeltaFile
+18-0sys/fs/nfsclient/nfs_clstate.c
+2-2sys/fs/nfs/nfs_commonkrpc.c
+1-0sys/fs/nfs/nfs_var.h
+21-23 files

FreeBSD/src 337f5e7usr.sbin/makefs/cd9660 iso9660_rrip.c

makefs: Compare pointer against NULL, not 0

Reported by:    rpokala
Sponsred by:    The FreeBSD Foundation
Fixes: 35a2e286157a ("makefs: Record inode for all entries in mtree mode")
DeltaFile
+1-1usr.sbin/makefs/cd9660/iso9660_rrip.c
+1-11 files

FreeBSD/src 67787d2sys/netinet tcp_input.c, sys/netinet/cc cc_newreno.c cc_htcp.c

tcp: make inflight data (pipe) calculation consistent

Reviewed by: glebius, rrs, tuexen
Differential Revision: https://reviews.freebsd.org/D49047
DeltaFile
+11-15sys/netinet/tcp_input.c
+1-7sys/netinet/cc/cc_newreno.c
+1-7sys/netinet/cc/cc_htcp.c
+1-7sys/netinet/cc/cc.c
+1-7sys/netinet/cc/cc_cubic.c
+1-7sys/netinet/cc/cc_dctcp.c
+16-506 files