sysutils/samdruckerclientshell: Update to 0.3.2
The client is one script again. samdrucker.repo-to-json.stdin, which
converted the pkg repos output to JSON, has been folded into
samdrucker.sh, which now runs that Lua itself with flua -e. The helper
is no longer installed.
What the client sends, and how it reports a failed check-in, are
unchanged. It still needs /usr/libexec/flua from the base system (the
FreeBSD-flua package on pkgbase hosts).
0.3.1 was tagged upstream before these changes were committed, so it
was the same code as 0.3.0.
Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.2
www/samdruckerweb: Update to 0.3.2
On a package page, the Versions table now says what each link lists.
The host count beside a version links to the hosts on exactly that
version (new ?version= filter, kept by the downloads), and the
older-than link shows how many hosts it will list, for example
"73 hosts older than 0.3.0_1", or "none" on the oldest version.
Before, the link beside the oldest version read "hosts older than this"
and listed no hosts, which looked like a bug.
0.3.1 was tagged upstream before this change was committed, so it was
the same code as 0.3.0. No database changes.
Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.2
netinet6: check the length of the destination address
in6_validate_ifra() requires ifra_addr to be a struct sockaddr_in6,
but it accepts an AF_INET6 ifra_dstaddr with any sin6_len, and
in6_notify_ifa() stores that address in ia_dstaddr as given.
Reject an AF_INET6 destination address whose sin6_len is not
sizeof(struct sockaddr_in6) with EINVAL, as in_aifaddr() does for
IPv4. ifconfig(8), the netlink address handler and the kernel's own
callers already pass the right length.
Add tests/sys/netinet6/in6_control, whose cases run in a VNET jail:
- aifaddr_dstaddr: SIOCAIFADDR_IN6 stores a valid destination
address, and getifaddrs(3) reports it;
- aifaddr_dstaddr_badlen: SIOCAIFADDR_IN6 rejects a destination
address with sin6_len 255.
aifaddr_dstaddr_badlen fails without the fix.
Reviewed by: glebius, markj
[3 lines not shown]
nfscommon: Fix a couple of slot handling cases
If a server shrinks the slot table for a NFSv4.1/4.2 session
(the FreeBSD server does not do this), it might have failed
to reset the slot's sequence# to 0, do to not handling the
case where the slot# equals the foreslot limit.
Also, a typo would fail when the slot# is greater than 31,
due to the type of the 1 being shifted.
This patch fixes both of these.
Reported by: Chuck Lever <cel at kernel.org>
MFC after: 2 weeks
sysutils/truenas-mcp: Update 1.0.0 to 1.0.1
Use GO_LDFLAGS instead of GO_BUILDFLAGS and add a pkg-message that
warns about the early access status of the software.
Reported by: diizzy
Reviewed by: diizzy
Approved by: jrm (mentor)
Differential Revision: https://reviews.freebsd.org/D62021
www/samdruckerweb: Update to 0.3.1
On a package page, the Versions table now says what each link lists.
The host count beside a version links to the hosts on exactly that
version (new ?version= filter, kept by the downloads), and the
older-than link shows how many hosts it will list, for example
"73 hosts older than 0.3.0_1", or "none" on the oldest version.
Before, the link beside the oldest version read "hosts older than this"
and listed no hosts, which looked like a bug.
No database changes.
Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.1
sysutils/samdruckerclientshell: Update to 0.3.1
The client is one script again. samdrucker.repo-to-json.stdin, which
converted the pkg repos output to JSON, has been folded into
samdrucker.sh, which now runs that Lua itself with flua -e. The helper
is no longer installed.
What the client sends, and how it reports a failed check-in, are
unchanged. It still needs /usr/libexec/flua from the base system (the
FreeBSD-flua package on pkgbase hosts).
Release notes:
https://github.com/dlangille/SamDrucker/releases/tag/0.3.1
powerpc: fix an off-by-one when widening 32-bit syscall arguments
cpu_fetch_syscall_args() widens the arguments a 32-bit syscall passes on
the stack. The loop started at narg instead of narg - 1 and wrote
td_sa.args[narg], one past the end of the eight entry array, which is
td_sigblock_ptr in struct thread. NARGREG is 8, so a plain syscall never
enters the loop, but syscall(2) and __syscall(2) lower the register count
to 7 and 6, and an eight argument syscall made that way, like
freebsd32_sendfile with its two slot off_t, corrupted the pointer.
A 32-bit program calling sendfile through syscall(2) changed its own
td_sigblock_ptr (watched with DTrace on cpu_fetch_syscall_args); it
leaves it alone now.
Reviewed by: jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D61884
cpu_switch(): Move 'sw1wait' inside the function block
This code block is unrelated to the resumectx() procedure it was after,
and is referenced only by cpu_switch(), so move it between
ENTRY(cpu_switch) and END(cpu_switch). This, in particular, puts it
inside a .cfi_startproc/.cfi_endproc block, giving clearer debugging
information should a problem arise there.
Keep it at the end so that jumping to it is initially predicted not
taken.
Reviewed by: kib
Fixes: 73dd84a7a54d ("amd64: clean up cpu_switch.S")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61713
libsysdecode: Avoid non-portable \> word end boundary in mktables
Whilst we bootstrap our own sed when building on non-FreeBSD, it uses
the system regex(3) implementation, and so inherits its extensions, not
our own. Our implementation and glibc's both include this extension to
POSIX, but macOS's does not, and so even with our bootstrap sed we
cannot use the \> extension when built and run on macOS.
Unfortunately, there is no alternative form we can use; whilst macOS
implements [[:>:]] as an extension that provides this same feature, and
so do we, the regex(3) implementation in glibc does not, and the only
alternative glibc offers is \b, which neither us nor macOS implement.
We could make the form used conditional on the OS, but that starts to
get messy once other Linux libcs enter the picture, which in theory we
somewhat support.
Rewrite both uses to avoid the need for \>. For gen_table, use a pattern
to match the identifier that is precisely the (non-extended) C99
[25 lines not shown]