FreeBSD/src 320427head/usr.bin/calendar/calendars calendar.history


FreeBSD/src 320426head/sys/dev/cxgbe/tom t4_cpl_io.c

cxgbe/t4_tom: Do not include space taken by the TCP timestamp option in
the "effective MSS" for the connection.  The chip expects it this way.

Submitted by:   Krishnamraju Eraparaju @ Chelsio
MFC after:      3 days
Sponsored by:   Chelsio Communications

FreeBSD/src 320425head/sbin/nvmecontrol identify.c

Report some aspects of namespaces and namespace support in identify

Sponsored by: Netflix
Submitted by: Matt Williams (via D11330)

FreeBSD/src 320424head/sys/dev/nvme nvme.h

Add new definitions for namespaces.

Sponsored by: Netflix
Submitted by: Matt Williams (via D11330)

FreeBSD/src 320423head/sbin/nvmecontrol util.c logpage.c

Move 128-bit integer routines to util.c so they can be used by more
than just the log page code.

Sponsored by: Netflix, Inc
Submitted by: Matt Williams (via D11330)

FreeBSD/src 320422head/sys/kern uipc_shm.c

Do not ignore an error from vm_mmap_object().

Found and reviewed by:  alc
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week

FreeBSD/src 320421head/sys/cam cam_periph.c

Fix a panic in camperiphfree().

If a peripheral driver (e.g. da, sa, cd) is added or removed from the
peripheral driver list while an unrelated peripheral driver instance (e.g.
da0, sa5, cd2) is going away and is inside camperiphfree(), we could
dereference an invalid pointer.

When peripheral drivers are added or removed (see periphdriver_register()
and periphdriver_unregister()), the peripheral driver array is resized
and existing entries are moved.

Although we hold the topology lock while we traverse the peripheral driver
list, we retain a pointer to the location of the peripheral driver pointer
and then drop the topology lock.  So we are still vulnerable to the list
getting moved around while the lock is dropped.

To solve the problem, cache a copy of the peripheral driver pointer.  If
its storage location in the list changes while we have the lock dropped, it
won't have any effect.

This doesn't solve the issue that peripheral drivers ("da", "cd", as opposed
to individual instances like "da0", "cd0") are not generally part of a
reference counting scheme to guard against deregistering them while there
are instances active.  The caller (generally the person unloading a module)
has to be aware of active drivers and not unload something that is in use.

    [11 lines not shown]

FreeBSD/src 320420head/sys/cam/scsi scsi_da.c

In scsi_zbc_in(), fill in the length in the ZBC IN CDB.

Without the allocation length set, the target will either reject
the command or complete it without transferring any data.

This fixes the REPORT ZONES command for SCSI ZBC protocol devices,
as well as ATA ZAC protocol devices that are behind a SCSI to ATA
translation layer.  (LSI/Broadcom's 12Gb SAS adapters translate ZBC
commands to ZAC commands.)  Those are Host Aware and Host Managed SMR

This will fix REPORT ZONE commands sent to the da(4) driver via the
GEOM bio interface and zonectl, and REPORT ZONE commands sent from

Note that in the case of camcontrol(8), we currently only send
SCSI ZBC commands to native SCSI protocol devices, not ATA devices
behind a SAT layer.

        Fill in the length field in scsi_zbc_in().

MFC after:      3 days
Sponsored by:   Spectra Logic

FreeBSD/src 320419head/sys/dev/cxgbe/iw_cxgbe cm.c

cxgbe/iw_cxgbe: Disable debug output by default.  The help text for the sysctl
already says that the default is 0.

Sponsored by:   Chelsio Communications

FreeBSD/src 320418head/sys/dev/cxgbe/iw_cxgbe cm.c

cxgbe/iw_cxgbe: Catch up with r319722.  The socket lock is not the same as the
lock for the receive buffer any more.

Sponsored by:   Chelsio Communications

FreeBSD/src 320417head/sys/kern subr_blist.c

Address the remaining integer overflow issues with the "skip" parameters
and "next_skip" variables.  The "skip" value in struct blist has long been
a 64-bit quantity but various functions have implicitly truncated this
value to 32 bits.  Now, all arithmetic involving the "skip" value is 64
bits wide.  (This should allow us to relax the size limit on a swap device
in the swap pager.)

Maintain the ability to test this allocator as a user-space application by
including <stdbool.h>.

Remove an unused variable from blst_radix_print().

Reviewed by:    kib, markj
MFC after:      4 weeks
Differential Revision:

FreeBSD/src 320416head/sys/dev/cxgbe/tom t4_listen.c

cxgbe/t4_tom: sbspace on listening sockets is no longer supported (as of
r319722), use sol_sbrcv_hiwat instead.

Sponsored by:   Chelsio Communications

FreeBSD/src 320415head/sys/kern uipc_mbuf.c

Fix one more place uio_resid is truncated to int

A follow-up to r231949 and r194990.

Reported by:    pho@
Reviewed by:    kib@, markj@
Sponsored by:   Dell EMC Isilon
Differential Revision:

FreeBSD/src 320414head/contrib/netbsd-tests/usr.bin/grep

Expect :mmap_eof_not_eol to fail

It relies on a jemalloc feature (opt.redzone) no longer available after

MFC with:       r318908, r319971
PR:            220309

FreeBSD/src 320413head/sys/fs/pseudofs pseudofs_vnops.c

Fix LINT, broken by a -Wformat warning in r320329 with PFS_DELEN being
changed from %d to a long-width type.

Use uintmax_t casting and %ju to futureproof the format string against
potential changes with either the #define or the implementation-specific
definition for offsetof(..).

FreeBSD/src 320412head/sys/cam/nvme nvme_da.c

Namespace is 32-bits, don't cast it to 16 here

FreeBSD/src 320411head/sys/arm64/include endian.h

Add parentheses missed in r320388

Sponsored by:   DARPA, AFRL

FreeBSD/src 320410svnadmin/hooks/scripts

- Add in additional X-SVN-* headers to assist with mail sorting

PR:            200484
Requested by:   emaste

FreeBSD/src 320409head/sys/fs/nfs nfs_commonsubs.c

Revert part of r320359, as suggested by rmacklem@.  That case is only used
for nfsuserd -manage-gids and shouldn't depend on sysctl.

MFC after:      2 weeks
Sponsored by:   DARPA, AFRL

FreeBSD/src 320408head/sys/fs/ext2fs ext2_inode_cnv.c

ext2fs: Support e2di_uid_high and e2di_gid_high.

The fields exist on all versions of the filesystem and using them is a mount
option on linux. For FreeBSD, the corresponding i_uid and i_gid are always
long enough so use them by default.

Reviewed by:    Fedor Uporov
MFC after:      1 month
Differential Revision:

FreeBSD/src 320407head/release/arm64 RPI3.conf

Remove CHROOT_MAKEENV from the RPI3 configuration file, to avoid
assuming the build host is amd64.

MFC after:      3 days
X-MFC-With:     r320252, r320253, r320254
X-MFC-Note:     maybe
Sponsored by:   The FreeBSD Foundation

FreeBSD/src 320406head/libexec/rshd rshd.c

A little tweak for performance

Reviewed by: adrian
Approved by: rmacklem (mentor)
MFC after: 3 weeks

FreeBSD/src 320405stable 11, stable/11/sys/cam/scsi scsi_sa.c

MFC r320123:

  Fix a potential sleep while holding a mutex in the sa(4) driver.

  If the user issues a MTIOCEXTGET ioctl, and the tape drive in question has
  a serial number that is longer than 80 characters, we malloc a buffer in
  saextget() to hold the output of cam_strvis().

  Since a mutex is held in that codepath, doing a M_WAITOK malloc could lead
  to sleeping while holding a mutex.  Change it to a M_NOWAIT malloc and bail
  out if we fail to allocate the memory.  Devices with serial numbers longer
  than 80 bytes are very rare (I don't recall seeing one), so this
  should be a very unusual case to hit.  But it is a bug that should be fixed.

        In saextget(), if we need to malloc a buffer to hold the output of
        cam_strvis(), don't wait for the memory.  Fail and return an error
        if we can't allocate the memory immediately.

PR:            kern/220094
Submitted by:   Jia-Ju Bai <baijiaju1990 at>
Sponsored by:   Spectra Logic
Approved by:    re (gjb)

FreeBSD/src 320404stable 11, stable/11/sys/i386/isa npx.c

MFC r320307:
Fix indent.

Approved by:    re (marius)

FreeBSD/src 320403head/sys/arm64/include atomic.h

Some of the atomic_clear_* functions were incorrectly defined to be an
atomic add. Correct these, fixing a NULL-pointer dereference in netgraph.

PR:            220273
MFC after:      3 days
Sponsored by:   DARPA, AFRL

FreeBSD/src 320402stable 11, stable/11/lib/libc/sys mmap.2

MFC r320314:
Remove the description of MAP_HASSEMAPHORE.

Approved by:    re (marius)

FreeBSD/src 320401stable 11, stable/11/lib/libc/sys mmap.2

MFC r320313:
Fix typo.

Approved by:    re (marius)

FreeBSD/src 320400head/lib/libprocstat libprocstat.3

Add initial documentation for procstat_freeptlwpinfo and procstat_getptlwpinfo

MFC after:      1 month
MFC with:       r316286

FreeBSD/src 320399head/lib/libprocstat libprocstat.c

procstat_getptlwpinfo(..): clarify the fact that KVM/SYSCTL support
isn't supported

This will make the error message reported in bug 220023 a bit more
intuitive for end-users that don't have access to the source code to
decode the procstat->type argument.

MFC after:      1 month
MFC with:       r316286
PR:            220023

FreeBSD/src 320398projects/clang500-import/share/vt/fonts terminus-b32.hex, projects/clang500-import/sys/cddl/contrib/opensolaris/uts/common/fs/zfs abd.c

Merge ^/head r320042 through r320397.

FreeBSD/src 320397projects/clang500-import/contrib/llvm/tools/clang/lib/Frontend ASTUnit.cpp PrecompiledPreamble.cpp, projects/clang500-import/contrib/llvm/tools/lldb/source/Plugins/InstrumentationRuntime/ThreadSanitizer ThreadSanitizerRuntime.cpp

Merge llvm, clang, lld, lldb, compiler-rt and libc++ r306325, and update
build glue.

FreeBSD/src 320396projects/runtime-coverage/share/mk

Stash work for adding runtime coverage support to

The initial work uses static libraries instead of dynamic libraries, for
parity with pico-style libraries.

I suspect this approach is slightly flawed, but I wanted to stash the WiP,
just in case.

FreeBSD/src 320395head/contrib/ipfilter/tools ippool_y.y

Replace AF_INET6 ifdefs with USE_INET6 to be consistent with the rest
of the ipfilter souce tree.

FreeBSD/src 320394head/sys/dev/bktr bktr_core.c

ioctl METEORGBRIG in bktr_core.c forgets to add 128 to value

PR:     59289
Submitted by:   Danovitsch at

FreeBSD/src 320393head/sys/dev/bktr bktr_core.c

driver incorrectly handles the setting of frame rates

PR:     36415
Submitted by:   brandt at

FreeBSD/src 320392head/sys/powerpc/booke pmap.c

Disable interrupts when updating the TLB

Without disabling interrupts it's possible for another thread to preempt
and update the registers post-read (tlb1_read_entry) or pre-write
(tlb1_write_entry), and confuse the kernel with mixed register states.

MFC after:      2 weeks

FreeBSD/src 320391head/sys/compat/freebsd32 freebsd32.h freebsd32_misc.c, head/sys/net bpf.c

Update comments and simplify conditionals for compat32

Only amd64 (because of i386) needs 32-bit time_t compat now, everything else is
64-bit time_t.  Rather than checking on all 64-bit time_t archs, only check the
oddball amd64/i386.

Reviewed By: emaste, kib, andrew
Differential Revision:

FreeBSD/src 320390head/sys/geom/part g_part.c

With r318394 seems it breaks gpart(8) in some embedded systems such like PCEngines,
RPI1-B, Alix and APU2 boards as well as NanoBSD with the following message:

vnode_pager_generic_getpages_done: I/O read error 5

Seems the breakage was because it was missed to include acr in glabel update.

Reported by:    Peter Blok <pblok at>,
               madpilot, imp and trasz.
Reviewed by:    trasz
Tested by:      Peter Blok and madpilot.
MFC after:      3 days.
Sponsored by:   iXsystems, Inc.
Differential Revision:

FreeBSD/src 320389head/usr.bin/truss syscalls.c

Sort the compat11.* syscalls I added. Remove duplicate compat11.stat.

Submitted by: jhb@

FreeBSD/src 320388head/sys/arm64/include endian.h

In _bswap16 and _bswap32 cast constant values to the appropriate type. This is
similar to what is done in the x86 code.

Sponsored by:   DARPA, AFRL

FreeBSD/src 320387head/sys/arm/arm gic.c

[arm] Use correct index value when checking range validity

Reviewed by:    andrew
MFC after:      3 weeks
Differential Revision:

FreeBSD/src 320386head/sys/modules/linuxkpi Makefile

Sort SRCS.

MFC after:      1 week

FreeBSD/src 320385vendor/lldb lldb-trunk-r306325

Tag lldb trunk r306325.

FreeBSD/src 320384vendor/lldb/dist/source/Host/common Host.cpp, vendor/lldb/dist/source/Plugins/InstrumentationRuntime/ASan ASanRuntime.cpp

Vendor import of lldb trunk r306325: at 306325

FreeBSD/src 320383vendor/lld lld-trunk-r306325

Tag lld trunk r306325.

FreeBSD/src 320382vendor/lld/dist/ELF Mips.cpp, vendor/lld/dist/ELF/Arch MipsArchTree.cpp

Vendor import of lld trunk r306325: at 306325

FreeBSD/src 320381vendor/libc++ libc++-trunk-r306325

Tag libc++ trunk r306325.

FreeBSD/src 320380vendor/libc++/dist/include numeric, vendor/libc++/dist/test/std/numerics/numeric.ops/inclusive.scan inclusive_scan_op_init.pass.cpp inclusive_scan_op.pass.cpp

Vendor import of libc++ trunk r306325: at 306325

FreeBSD/src 320379vendor/compiler-rt compiler-rt-trunk-r306325

Tag compiler-rt trunk r306325.

FreeBSD/src 320378vendor/compiler-rt/dist/lib/lsan, vendor/compiler-rt/dist/lib/sanitizer_common sanitizer_atomic_clang_other.h sanitizer_allocator_combined.h

Vendor import of compiler-rt trunk r306325: at 306325