Prevent VSTATUS (SIGINFO) from monopolizing the global kernel lock.
The VSTATUS case in ttyinput() calls ttyinfo() to format the load
and terminal status, potentially traversing every process and thread
in the foreground process group. We now treat VSTATUS as an
"expensive" terminal control operation and return 1 from ttyinput().
For a pty, this causes ptcwrite() to sleep for at least 1 tick after
the status info is written to the pty.
From Acts1631
Better frame buffer driver for HP Visualize FX2/4/6 boards, allowing proper
(currently unaccelerated) X11 support, as well as color, underline and larger
fonts in console.
The driver can also attach to FX5 and FX10, but doesn't by default due to
text console feature limitations, which will hopefully be worked around soon
(but attachment can be forced using flags in UKC).
Ported from NetBSD.
httpd: use the response writer for FastCGI
The writer now also does chunked encoding. FastCGI responses with no
body or with a Content-Length keep their framing.
Three FastCGI cases changes: A 1xx, 204 or 304 response with a body is
no longer sent chunked, the body is dropped. Output before the end of
the headers or after the end of the response is dropped instead of
being sent to the client.
feedback and ok rsadowski@ and kirill@ as part of a bigger diff
Check account expiration in auth_usercheck() and auth_userokay().
The challenge-response API (auth_userchallenge() and auth_userresponse())
already check for an expired account. This makes the basic auth
API (auth_usercheck() and auth_userokay()) do the same.
Programs calling the auth_approval() function already include the
check for an expired account.
From Acts1631
ext2fs: fix permission check on FIFOs
A typo/pasto resulted in vop_access being assigned to ufsfifo_close
instead of ext2fs_access for FIFOs. OK martijn@ armani@
From Ben Roeder
rpki-client: remove min/max arrays from struct roa_ip
struct roa_ip, representing a ROAIPaddress (afi, prefix, maxLength) of
a ROA, contains a copy of ->addr.addr in min and the corresponding upper
bound of the prefix in max. Both members were only accessed once when
checking against the EE cert's resources via ip_addr_check_covered().
We may as well compute the upper bound on the fly.
So: inline valid_roa() in roa_validate() and inline the still needed half
of ip_roa_compose_ranges() and drop these nearly useless members.
This reduces the struct from 56 bytes to 24 bytes with only one byte of
padding remaining. While struct roa isn't super long lived in either of
the two processes where it is used, this still reduces the memory foot
print a bit (the largest roa, AS9808.roa, has 20653 prefixes, so this saves
about 650 KiB for that one alone).
ok claudio
Introduce a Symbols.map for libpcap
Try to expose only those symbols that should be used. Mostly based on
what libpcap upstream exposes.
Use __{BEGIN,END}_HIDDEN_DECLS to expose less in the static library but
especially the flex and yacc generated code still leaks many symbols out.
Switch the flex yacc code to use _pcap_yy as prefix but more is needed
to hide those symbols properly.
OK tb@
Drop the public bpf_filter and _bpf_filter prototypes from bpf.h
Rename bpf_lfilter() to bpf_filter() and enforce all users to
pass in number of bpf instructions. Expose bpf_validate outside of
_KERNEL with the exception of the bpf_maxbufsize check which is
kernel only. bpf_validate will be used in libpcap in a follow up
commit.
OK tb@
rpki-client: skip a few things for a duplicate manifest
If a duplicate manifest is detected, it is currently still inserted into
the CCR via ccr_insert_mft() (which whines) and its filepath is added via
filepath_add() (which errors out). Skip these two bits. There are plans
to improve on this, but for now this seems a sensible solution.
found/tested by job
ok claudio
allow enabling AKM SHA256-802.1x with ifconfig
The kernel and some wifi drivers already support this feature but there
was no way to enable it with ifconfig. Putting this in now so it can
be easily tested by people with access to a WPA Enterprise setup.
reuse existing sshkey_match_keyname_to_sigalgs() function for monitor-
side key type checks against allowed algorithm lists. Avoids compromised
unpriv child from using an ECDSA key with a disallowed curve/NID
Anhropic ANT-2026-2X08W1M4
disallow glob(3) characters in hostnames specified on the commandline
(they are still allowed if explicitly specified via the Hostname directive
in a configuration file).
Avoids a fairly unlikely shell injection vector via ProxyCommand
Anthropic ANT-2026-07T2DVMF