FreeBSD/src 5098196lib/libc/include libc_private.h

libc_private.h: use private namespace name for size_t

This is direct commit to stable/13.

(cherry picked from commit a951992d1eb332ed1e97ef6b89ead3f05707adc2)
DeltaFile
+1-1lib/libc/include/libc_private.h
+1-11 files

FreeBSD/src a951992lib/libc/include libc_private.h

libc_private.h: use private namespace name for size_t

This is direct commit to stable/14.
DeltaFile
+1-1lib/libc/include/libc_private.h
+1-11 files

FreeBSD/src f0e8600lib/libc/stdio xprintf_errno.c

libc printf_render_errno(): do not use strerror()

(cherry picked from commit aa66995b4c804cbb579f71645d97fe282a798bfc)
DeltaFile
+4-3lib/libc/stdio/xprintf_errno.c
+4-31 files

FreeBSD/src 27e54c9lib/libc/stdio vfprintf.c

__vprintf(): switch from strerror() to strerror_rl()

PR:     278556

(cherry picked from commit f887667694632c829b0599b54ff86a072e93df87)
DeltaFile
+5-1lib/libc/stdio/vfprintf.c
+5-11 files

FreeBSD/src fcac864lib/libc/stdio xprintf_errno.c

libc: minor style, wrap long lines

(cherry picked from commit bac9d7e8f2931149815c3d5a9ab69594bbdffde6)
DeltaFile
+4-2lib/libc/stdio/xprintf_errno.c
+4-21 files

FreeBSD/src a8ae94blib/libc/include libc_private.h, lib/libc/string strerror.c

libc: make strerror_rl() usable for libc

(cherry picked from commit 92771bc00ad0f567b27876c34450bef7a0ee61d0)
DeltaFile
+5-5lib/libc/string/strerror.c
+2-0lib/libc/include/libc_private.h
+7-52 files

FreeBSD/src 0451d42lib/libc/stdio xprintf_errno.c

libc: minor style, wrap long lines

(cherry picked from commit bac9d7e8f2931149815c3d5a9ab69594bbdffde6)
DeltaFile
+4-2lib/libc/stdio/xprintf_errno.c
+4-21 files

FreeBSD/src ade62d4lib/libc/stdio vfprintf.c

__vprintf(): switch from strerror() to strerror_rl()

PR:     278556

(cherry picked from commit f887667694632c829b0599b54ff86a072e93df87)
DeltaFile
+5-1lib/libc/stdio/vfprintf.c
+5-11 files

FreeBSD/src 09bcfbdlib/libc/stdio xprintf_errno.c

libc printf_render_errno(): do not use strerror()

(cherry picked from commit aa66995b4c804cbb579f71645d97fe282a798bfc)
DeltaFile
+4-3lib/libc/stdio/xprintf_errno.c
+4-31 files

FreeBSD/src 8f19af4lib/libc/include libc_private.h, lib/libc/string strerror.c

libc: make strerror_rl() usable for libc

(cherry picked from commit 92771bc00ad0f567b27876c34450bef7a0ee61d0)
DeltaFile
+5-5lib/libc/string/strerror.c
+2-0lib/libc/include/libc_private.h
+7-52 files

FreeBSD/src 42b071cshare/man/man3 pthread_sigqueue.3 Makefile

pthread_sigqueue(3): document

(cherry picked from commit 91da6becae6291533b9b59646b59bace2f905c81)
DeltaFile
+102-0share/man/man3/pthread_sigqueue.3
+1-0share/man/man3/Makefile
+103-02 files

FreeBSD/src afc8b17lib/libc/sys sigqueue.2

sigqueue(2): Document __SIGQUEUE_TID

(cherry picked from commit dcc180c51b9c13df3d1158d14d450308711fe93c)
DeltaFile
+18-1lib/libc/sys/sigqueue.2
+18-11 files

FreeBSD/src ed9e299sys/kern kern_sig.c, sys/sys signal.h

sigqueue(2): add impl-specific flag __SIGQUEUE_TID

(cherry picked from commit 53186bc1435e2c3ccf9c2124c066a08c6a80c504)
DeltaFile
+17-5sys/kern/kern_sig.c
+4-0sys/sys/signal.h
+21-52 files

FreeBSD/src 3fbb975sys/sys _sigval.h signal.h

sys/signal.h: move union sigval into dedicated private header sys/_sigval.h

(cherry picked from commit 97acb35bd704ac1ef0bd2e286eb8bd09ce4b3ef0)
DeltaFile
+61-0sys/sys/_sigval.h
+1-21sys/sys/signal.h
+62-212 files

FreeBSD/src 6bf819csys/kern kern_thread.c

kern_thread.c: remove unneeded include of sys/param.h

(cherry picked from commit 53e0938b0b5619fa851e8550c2396bd8c440b7ae)
DeltaFile
+0-2sys/kern/kern_thread.c
+0-21 files

FreeBSD/src bd30b3dlib/libthr/tests pthread_sigqueue_test.c Makefile

Add test for pthread_sigqueue(3)

(cherry picked from commit fb2ab7ce52d3f1e9d0998f3e5c12c3468ce4563a)
DeltaFile
+120-0lib/libthr/tests/pthread_sigqueue_test.c
+1-0lib/libthr/tests/Makefile
+121-02 files

FreeBSD/src e449481include pthread.h, lib/libthr pthread.map

libthr: add pthread_sigqueue(3)

PR:     278459

(cherry picked from commit 220aa0f450409948b869237e5c4505f992c913ce)
DeltaFile
+79-0lib/libthr/thread/thr_sigqueue.c
+7-0include/pthread.h
+4-0lib/libthr/pthread.map
+1-0lib/libthr/thread/Makefile.inc
+1-0lib/libthr/thread/thr_private.h
+92-05 files

FreeBSD/src de4b8c8sys/kern kern_thr.c

kern_thr.c: normalize includes

(cherry picked from commit 0c11c1792b139baffbf74e5f1c6fe065708301cc)
DeltaFile
+4-5sys/kern/kern_thr.c
+4-51 files

FreeBSD/src 29c4e31sys/kern kern_thr.c kern_sig.c

kern_thr.c/kern_sig.c: remove sys/cdefs.h

(cherry picked from commit 2effad53b4676dcfe4da892cd72a9a235a9539d1)
DeltaFile
+1-1sys/kern/kern_thr.c
+0-1sys/kern/kern_sig.c
+1-22 files

FreeBSD/src 6a7819elibexec/rtld-elf rtld.1

rtld.1: clarify interaction between -u and -o

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+3-1libexec/rtld-elf/rtld.1
+3-11 files

FreeBSD/src ef2694flibexec/rtld-elf rtld.c

rtld direct exec: make -u behavior match the description

Instead of only ignoring insecure env vars, clear them all.

Reviewed by:    emaste, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44999
DeltaFile
+4-1libexec/rtld-elf/rtld.c
+4-11 files

FreeBSD/src d1cd0cclibexec/rtld-elf rtld.c rtld.1

rtld: add direct-exec option -o

allowing to set any known LD_ parameter for the current rtld invocation,
but without polluting the activated' binary environment.  In other
words, the set parameter is not exported into the environment.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44988
DeltaFile
+30-0libexec/rtld-elf/rtld.c
+19-1libexec/rtld-elf/rtld.1
+49-12 files

FreeBSD/src 2965ae5sys/dev/cxgbe/common t4_hw.c

cxgbe(4): Shared code update to deal with partial failure in query_params.

Obtained from:  Chelsio Communications
MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+12-3sys/dev/cxgbe/common/t4_hw.c
+12-31 files

FreeBSD/src 43f6f08sys/dev/cxgbe offload.h t4_main.c

cxgbe(4): Reword the comment explaining the atid/cookie split.

Avoid a magic constant while here.  No functional change intended.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+3-3sys/dev/cxgbe/offload.h
+3-0sys/dev/cxgbe/t4_main.c
+6-32 files

FreeBSD/src f0ee611sys/dev/cxgbe/common t4_hw.c

cxgbe(4): Add missing description for a port type.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+1-0sys/dev/cxgbe/common/t4_hw.c
+1-01 files

FreeBSD/src 1c7f9c8sys/dev/cxgbe t4_main.c, sys/dev/cxgbe/common t4_hw.c common.h

cxgbe(4): Retire t4_intr_clear.

The firmware clears the interrupts already and it has a better idea of
exactly what to clear for which generation of the ASIC.  There is no
need for the driver to get involved.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+0-93sys/dev/cxgbe/common/t4_hw.c
+0-2sys/dev/cxgbe/t4_main.c
+0-1sys/dev/cxgbe/common/common.h
+0-963 files

FreeBSD/src b59c5d9sys/dev/cxgbe t4_main.c, sys/dev/cxgbe/common t4_hw.c common.h

cxgbe(4): Add a helper function to locate MPS/MAC registers.

These register blocks are at different locations in different chips.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+17-20sys/dev/cxgbe/common/t4_hw.c
+5-9sys/dev/cxgbe/t4_main.c
+1-0sys/dev/cxgbe/common/common.h
+23-293 files

FreeBSD/src f76effesys/dev/cxgbe/common t4_hw.c common.h, sys/dev/cxgbe/crypto t6_kern_tls.c

cxgbe(4): Remove tx_modq lookup table.

The driver always uses the same modulation queue as the channel and the
table is unnecessary.

MFC after:      1 week
Sponsored by:   Chelsio Communications
DeltaFile
+0-5sys/dev/cxgbe/common/t4_hw.c
+2-2sys/dev/cxgbe/crypto/t6_kern_tls.c
+3-1sys/dev/cxgbe/common/common.h
+1-1sys/dev/cxgbe/tom/t4_tom.c
+6-94 files

FreeBSD/src 221d459sys/netpfil/pf pflow.c

pflow: handle unattached states

It's possible for states to be cleaned up (through pf_detach_state()) that
have not been fully attached. For example if there's an ID conflict during
pf_state_insert().

pflow exports states from pf_detach_state(), so it can get called on such
states, but did not account for this and could end up dereferencing a NULL
state key.

Check for this in export_pflow() and do not export unattached states.

See also:       https://redmine.pfsense.org/issues/15446
Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+4-0sys/netpfil/pf/pflow.c
+4-01 files

FreeBSD/src 86fbb05sys/cam/ctl ctl_cmd_table.c

ctl: Fix CTL GET EVENT STATUS NOTIFICATION valid bits

Linux as an initiator periodically sends the following to SCSI cdrom
devices: 4a 01 00 00 10 00 00 00 08 00

According to the ctl_cmd_entry for this command this is invalid which
leads to a lot of failed SCSI commands.

The mask in this commit is based off of an early draft of the mmc
standard, https://www.t10.org/ftp/t10/document.97/97-108r0.pdf,
as well as subsequent standards (mmc2 through mmc6).

This solves the issue with Linux initiators.

Signed-off-by: HP van Braam <hp at tmm.cx>
Reviewed by: imp, mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/1201
DeltaFile
+1-1sys/cam/ctl/ctl_cmd_table.c
+1-11 files