FreeBSD/src 53b0216usr.sbin/bsdinstall/scripts bootconfig

bsdinstall: Improve message for existing FreeBSD EFI entry

When reinstalling FreeBSD bsdinstall reported "There are multiple
FreeBSD EFI boot entries."  This sounds like something went wrong in the
past.  Clarify that there may be only one existing entry, which is not
surprising for a reinstall.

Reviewed by:    manu, ziaee
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D51527

(cherry picked from commit ebc6ff8db17683b566d49fe89a43a668d3d67915)
DeltaFile
+1-1usr.sbin/bsdinstall/scripts/bootconfig
+1-11 files

FreeBSD/src 3eeeaf9tests/sys/netpfil/pf mbuf.sh

pf tests: Improve assertion messaging of mbuf tests

Reviewed by:    kp
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D51716
DeltaFile
+13-13tests/sys/netpfil/pf/mbuf.sh
+13-131 files

FreeBSD/src 5bf3c55sys/dev/iwx if_iwx.c

iwx: enable seqno offload

Enable sequence number offload.

This should both enable the sequence number offloading and disable
the net80211 TX lock from being acquired/released/checked.

Reviewed by:    bz, thj
Differential Revision:  https://reviews.freebsd.org/D50694
DeltaFile
+7-0sys/dev/iwx/if_iwx.c
+7-01 files

FreeBSD/src eabcd17sys/net80211 ieee80211_freebsd.h ieee80211_output.c

net80211: add support for sequence number offloading

Add support for sequence number offloading -

* Check IEEE80211_CONF_SEQNO_OFFLOAD() before doing TX lock
  manipulation;
* Don't call ieee80211_output_seqno_assign() if
  IEEE80211_CONF_SEQNO_OFFLOAD() is true.

TODO:

* this doesn't yet do beacon sequence number allocation offloading;
  I'll tackle that later.

Differential Revision:  https://reviews.freebsd.org/D50692
Reviewed by:    bz
DeltaFile
+16-6sys/net80211/ieee80211_freebsd.h
+8-3sys/net80211/ieee80211_output.c
+24-92 files

FreeBSD/src 2b35b71sys/amd64/vmm/intel vmx_support.S

amd64 vmx: micro-optimize vmlaunch failure path

Eliminate two unneeded jumps.  One is the jmp to the next instruction,
where there is no requrement that vmlaunch is followed by jmp.  Another
one conditionally sets %r11d value, and can be replaced by cmovcc.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D52136
DeltaFile
+3-5sys/amd64/vmm/intel/vmx_support.S
+3-51 files

FreeBSD/src a086478sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: factor out sinfo printing

Factor out the sinfo printing into an sbuf from the sysctl handler.
That allows us to use lkpi_80211_dump_lvif_stas() for printing other
debug information as well.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+35-27sys/compat/linuxkpi/common/src/linux_80211.c
+35-271 files

FreeBSD/src b1e67b1sys/compat/linuxkpi/common/include/net mac80211.h

LinuxKPI: 802.11: improve ieee80211_request_smps()

Adjust logging from TODO() to IMPROVE() now that we can use fmt strings
there too.  Make sure we are not getting unsuported values to print.

Also for non-station mode simply return.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+7-4sys/compat/linuxkpi/common/include/net/mac80211.h
+7-41 files

FreeBSD/src b3b6107sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: fill in sinfo for chains in case driver does not

We are getting per-packet information on the rx chains.  Save them
locally like we do for rx rate and add them to sinfo for the sysctl
in case the driver does not fill in that information.
Also note: chain_signal is a bitmask and not a number;  treat it
accordingly.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+20-3sys/compat/linuxkpi/common/src/linux_80211.c
+20-31 files

FreeBSD/src 6030706sys/compat/linuxkpi/common/include/net mac80211.h, sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPi: 802.11: adjust linuxkpi_set_ieee80211_dev() to set ic_name

While we used to pass in the dev_name(), we now use wiphy_dev() inside
the implementation to get the dev and the name.  This is for two reasons:
(1) ath1xk also unset the dev and we need to check once we add support,
and (2) in preparation for future work, which needs to hook into that
point.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+16-3sys/compat/linuxkpi/common/src/linux_80211.c
+2-2sys/compat/linuxkpi/common/include/net/mac80211.h
+18-52 files

FreeBSD/src a394924sys/compat/linuxkpi/common/include/net cfg80211.h

LinuxKPI: 802.11: correct struct linuxkpi_ieee80211_channel

Some of the annotations were not quite right.  Also various fields had
not been typed properly.  Correct the types of field members and
given the change also re-sort.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+15-10sys/compat/linuxkpi/common/include/net/cfg80211.h
+15-101 files

FreeBSD/src 8c1fdcfsys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: announce netdev features under boot -v

Under bootverbose print the announced netdev features during
ifattach. Helps us to debug problems amongst drivers if needed.

Leave a comment where to add checksum offlooading setting on the
ifp if we get there (this would be based on netdev features).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+7-3sys/compat/linuxkpi/common/src/linux_80211.c
+7-31 files

FreeBSD/src 85eccabsys/compat/linuxkpi/common/include/net cfg80211.h

LinuxKPI: 802.11: improve reg_query_regdb_wmm()

Adjust the IMPROVE macro to also take a format string and use that
in reg_query_regdb_wmm() instead of TODO() to avoid spamming the console
with something that needs larger reworks.  Return -ENODATA instead of
-ENXIO as that seems a better fit though the only consumer uses it
without checking the return value these days.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+4-5sys/compat/linuxkpi/common/include/net/cfg80211.h
+4-51 files

FreeBSD/src 897cf42sys/compat/linuxkpi/common/src linux_80211.c linux_80211_macops.c

linuxKPI: 802.11: assert wihpy lock in lkpi_80211_mo_start()

Newer versions of Linux wifi drivers assert the wiphy lock in the
(*start)() path.  Make sure we do too and do hold the wiphy lock.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+4-0sys/compat/linuxkpi/common/src/linux_80211.c
+2-0sys/compat/linuxkpi/common/src/linux_80211_macops.c
+6-02 files

FreeBSD/src cd3c9f7sys/compat/linuxkpi/common/include/linux ieee80211.h

LinuxKPI: 802.11: assign values to WLAN_HT_CAP_SM_PS_*

No functional changes.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+3-3sys/compat/linuxkpi/common/include/linux/ieee80211.h
+3-31 files

FreeBSD/src 8475942sys/compat/linuxkpi/common/src linux_80211.c

LinuxKPI: 802.11: add guards to lkpi_ic_ampdu_rx_{start,stop}

After updating calls into lkpi_ic_ampdu_rx_stop() were seen along
with panics.
Working backwards adding checks to each level we lastly ended up fighting
a lsta which is NULL.  Simply return in any error cases as there is
nothing we can do and just leave it to net80211.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+28-0sys/compat/linuxkpi/common/src/linux_80211.c
+28-01 files

FreeBSD/src 0c3d511sys/ufs/ufs ufs_vnops.c

ufs: st_rdev is only meaningful for special nodes

(cherry picked from commit 6fd60c4887cb08203f654e6aac6b4dbaaf76111b)
DeltaFile
+8-4sys/ufs/ufs/ufs_vnops.c
+8-41 files

FreeBSD/src ea35c5b. UPDATING

UPDATING: Add an entry for commit 3f61ececacd8
DeltaFile
+5-0UPDATING
+5-01 files

FreeBSD/src 4f22d27sys/sys param.h

param.h: Bump __FreeBSD_version for 3f61ececacd8

Bump __FreeBSD_version to 1403505 for 3f61ececacd8
since this commit changes the internal KAPI between
the NFS modules.
DeltaFile
+1-1sys/sys/param.h
+1-11 files

FreeBSD/src 2fd0083sys/kern vfs_syscalls.c

vfs_syscalls.c: Fix handling of offset args for copy_file_range

Commit 197997a broke handling of the offset
arguments to copy_file_range() when specified non-NULL.
The code fails to update the offsets and, as such, a loop like:

do {

   len = copy_file_range(infd, &inpos, outfd, &outpos,
      SSIZE_MAX, 0);
} while (len > 0);

becomes an infinite loop, just doing the same copy over and
over again.

This patch fixes it.

The clause "(foffsets_locked || foffsets_set)" in the if is not
actually needed for correctness, but I thought it made the code

    [5 lines not shown]
DeltaFile
+12-5sys/kern/vfs_syscalls.c
+12-51 files

FreeBSD/src 248dacasys/fs/nfs nfs_commonsubs.c

nfscl: Fix GetACL so that it does not want a reply cached

Without this patch, an NFSv4.1/4.2 GetACL RPC requests that
the session cache the reply.  In some cases, the reply may
be too large to cache, resulting in a NFS4ERR_X
error from the server.

Since a GetACL is idempotent, disable reply caching for it,
by setting that it can generate a large reply.
Tested against a Linux server with a large ACL on a file.

(cherry picked from commit 51affb7e97161e260f6d99cb0904daf7cc9f51a7)
DeltaFile
+1-1sys/fs/nfs/nfs_commonsubs.c
+1-11 files

FreeBSD/src 3f61ecesys/fs/nfs nfs_commonsubs.c nfs_var.h, sys/fs/nfsclient nfs_clstate.c nfs_clrpcops.c

nfsd: Avoid relocking vnode for NFSv4 Readdir

Without this patch, nfsv4_fillattr() relocks the vnode to
test to see if extended attributes are supported.
This is inefficient and could cause deadlocks if Readdir
ever asks for this attribute.

At this time, no extant NFSv4 client asks for this attribute
for Readdir, but this patch fixes the problem in case a
future client does so, by moving the test for extended attribute
support to before the nfsv4_fillattr() call where the vnode
is still locked.

(cherry picked from commit c00baac0ab46f54951a29b834e064935b749ae9a)
DeltaFile
+18-6sys/fs/nfsserver/nfs_nfsdport.c
+3-16sys/fs/nfs/nfs_commonsubs.c
+14-2sys/fs/nfsserver/nfs_nfsdserv.c
+3-3sys/fs/nfs/nfs_var.h
+1-1sys/fs/nfsclient/nfs_clstate.c
+1-1sys/fs/nfsclient/nfs_clrpcops.c
+40-296 files

FreeBSD/src f13a042sys/netlink/route iface_drivers.c iface.c

netlink/route: Support modifying IFLA_ADDRESS with RTM_NEWLINK

Allows setting link-layer address (MAC) by specifying the IFLA_ADDRESS
attribute on RTM_NEWLINK requests.

Reviewed by:    melifaro, obiwac, mckusick (mentor)
Approved by:    melifaro, obiwac, mckusick (mentor)
Sponsored by:   Google LLC (GSoC)
Differential Revision:  https://reviews.freebsd.org/D51922
DeltaFile
+18-0sys/netlink/route/iface_drivers.c
+1-0sys/netlink/route/iface.c
+1-0sys/netlink/route/route_var.h
+20-03 files

FreeBSD/src 3068d70contrib/lua/doc manual.html readme.html, contrib/lua/src ldebug.c lvm.c

lua: Merge lua 5.4.8

Pick up a few bug fixes from lua 5.4.8:

267ef461 Bug: check for constructor overflow in [exp] fields
d1ee2a4d Bug: Bad error message with fields of string _ENV
3fe7be95 Bug: message handler can be overwritten
983bc433 Bug: Use after free in 'luaV_finishset'
25da574f Bug: 'luaD_seterrorobj' should not raise errors
f5e55be2 Bug: Missing error status in panic function
9f0c0fe0 Bug: Wrong limit for local variables in 16-bit systems
782ef85b Bug: wrong code gen. for indices with comparisons
30982bec Bug: Bad stack manipulation in 'multiline' (REPL)
DeltaFile
+139-92contrib/lua/src/ldebug.c
+41-40contrib/lua/src/lvm.c
+32-18contrib/lua/doc/manual.html
+25-23contrib/lua/doc/readme.html
+27-12contrib/lua/src/ltable.c
+21-17contrib/lua/src/lcode.c
+285-20230 files not shown
+474-32736 files

FreeBSD/src 4d63aecdoc readme.html, src ldebug.c ldo.c

lua: Import Lua 5.4.8
DeltaFile
+15-6src/ldebug.c
+12-5src/ldo.c
+5-6src/lua.c
+4-4doc/readme.html
+4-4src/lua.h
+3-4src/lparser.c
+43-299 files not shown
+62-4015 files

FreeBSD/src 6ea7e1fsys/dev/hid hkbd.c

hkbd: fix compliation error for GENERIC

Reported by:    gbe
Approved by:    lwhsu (mentor)
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D52135
DeltaFile
+1-1sys/dev/hid/hkbd.c
+1-11 files

FreeBSD/src 8a84794sys/modules/evdev Makefile, sys/modules/gpio/gpioaei Makefile

sys/modules: fix standalone build for multiple modules

Multiple Makefile miss opt_*.h and *_if.h header file. We fix it by
running make in sys/modules to build all modules.

Approved by:    lwhsu (mentor), markj (mentor)
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D52062
DeltaFile
+2-1sys/modules/if_infiniband/Makefile
+3-0sys/modules/nvmf/nvmf/Makefile
+1-1sys/modules/evdev/Makefile
+2-0sys/modules/gpio/gpioaei/Makefile
+1-1sys/modules/gve/Makefile
+1-1sys/modules/if_vlan/Makefile
+10-412 files not shown
+23-1318 files

FreeBSD/src 1685192sys/dev/hid hkbd.c

hkbd: remove erorr detection in KDSKBSTATE ioctl

The KDSKBSTATE ioctl brings the LED up. However, some keyboards (like qemu
keyboard) may not have LED or failed to set the LED due to unexpected reason.
Therefore, removing the error check as ukbd(4) does allow the keyboard works
correctly with kbdcontrol(4).

Also move hw.hid.hkbd.no_leds sysctl out of HID_BUG thus users can
disable setting LEDs

PR:             288968
Reviewed by:    wulf
Tested by:      trashcan at ellael.org, marklmi26-fbsd at yahoo.com, trkellers at gmail.coom
Approved by:    lwsu (mentor), markj (mentor)
MFC after       1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52101

mvalsmva
DeltaFile
+14-5sys/dev/hid/hkbd.c
+14-51 files

FreeBSD/src 649e8a3lib/libelftc Makefile

libelftc: Move to toolchain package

This is where the rest of ElfToolchain lives now.  Note that this
library only installs manpages.

Reported by:    des
Differential Revision:  https://reviews.freebsd.org/D51899
DeltaFile
+1-0lib/libelftc/Makefile
+1-01 files

FreeBSD/src 929f596. UPDATING, release/packages generate-ucl.lua

packages: Improve handling of -lib packages

For some packages (OpenSSL, Kerberos) we want to ship runtime libraries
in a separate package, e.g. openssl and openssl-lib.  Currently this is
done using PACKAGE=openssl-lib, but that creates packages with strange
names like openssl-lib-lib32.

Instead, add a new LIB_PACKAGE option to bsd.lib.mk that causes runtime
libraries to be placed in a new -lib subpackage.  This significantly
improves the set of packages we create; for example, OpenSSL goes from:

        FreeBSD-openssl
        FreeBSD-openssl-dbg
        FreeBSD-openssl-lib
        FreeBSD-openssl-lib-dbg
        FreeBSD-openssl-lib-dbg-lib32
        FreeBSD-openssl-lib-dev
        FreeBSD-openssl-lib-dev-lib32
        FreeBSD-openssl-lib-lib32

    [19 lines not shown]
DeltaFile
+35-14share/mk/bsd.lib.mk
+7-0UPDATING
+7-0release/packages/generate-ucl.lua
+0-4release/packages/ucl/kerberos-lib-all.ucl
+0-4release/packages/ucl/openssl-lib-all.ucl
+2-1secure/lib/libcrypto/engines/Makefile.inc
+51-2323 files not shown
+68-5429 files

FreeBSD/src 1a80bcclib/libifconfig Makefile, lib/libiscsiutil Makefile

Remove redundant PACKAGE for INTERNALLIB libraries

These libraries don't install anything, so they shouldn't have a
PACKAGE setting.  This avoids surprising behaviour in future if
e.g. manpages are added to an internal library.

Reported by:    des
Differential Revision:  https://reviews.freebsd.org/D51901
DeltaFile
+0-1lib/libsmdb/Makefile
+0-1lib/libifconfig/Makefile
+0-1lib/libiscsiutil/Makefile
+0-1lib/libnetbsd/Makefile
+0-1lib/libnvmf/Makefile
+0-1lib/libopenbsd/Makefile
+0-65 files not shown
+0-1111 files