trunk(4): update link state after new port attached
Without this fix, the linkstate is unknown via snmpd till its changed.
yeah, looks good. go for it. dlg@
Seems right to me. deraadt@
Make tsort(1) abort early if input lines contain NUL bytes
tsort works on text files with data separated by whitespace, there is no
need or reason to support NUL as an additional word delimiter. It's
easier to just detect invalid input early, in the two functions which
read data.
Similar diff from espie, ok tb@ renaud@
Set IFXF_MBUF_64BIT so mbufs are allocated in high memory if only
64 bit DMA interfaces exist. Also pass BUS_DMA_64BIT to the
bus_dmamem_alloc() for the kstat counter buffer (rge_ks_sc_seg).
ok bluhm@
cal: drop obsolete parsemonth return value checks
These became redundant since month range checks were implemented in parsemonth
in revision 1.15.
ok jca@
ucom: fix OOB write in sysctl_ucominit with no ucom devices
cd_ndevs==0 makes ucomslen 0, so malloc(0) returns unzeroed storage
(M_ZERO memsets osize==0 bytes). strlen(ucoms) then walks garbage and
ucoms[strlen-1]=0 stores out of bounds (KASAN: __asan_store1, hw.ucomnames).
Size the buffer for one extra slot so it is never zero-sized.
KASAN#2, with a murmur of agreement in the hackroom
Don't bounce unless we're doing encrypted writes. Drivers for hardware
that doesn't support 64-bit DMA will take care of bouncing now.
ok deraadt@, jca@