switch to base-clang ports-gcc in an attempt to unbreak sparc64
proxyprotocol.h: In function 'pp_header_len':
proxyprotocol.h:17: error: parameter name omitted
sys/macppc: bound OF_getprop() bounce copy
The Open Firmware getprop service returns the full property size while
copying at most buflen bytes. macppc redirects the firmware write through
OF_buf, but copied the returned size into the caller's buffer, allowing an
oversized property to overwrite adjacent memory.
Here, I limit the second copy to buflen while preserving getprop's return
value.
This fixes stack corruption when QEMU OpenBIOS returns the 60 byte e1000 reg
property to pci_intr_map(), which requests one 20 byte PCI record. With this
change, em0 attaches and the ramdisk reaches the installer.
OK: kettenis@, jca@
p5-WWW-Mechanize 2.22 API has changed. Apply patches for
p5-WWW-Mechanize-Shell 0.62 to avoid security problem and warning.
p5-WWW-Mechanize-Shell tests pass with both versions of p5-WWW-Mechanize.
Make use of the RISC-V Sstc extension for the system clock
Lets us program the timer without doing an SBI ecall, saving a bunch of
cycles. Bonus, on platforms which implement it, it works around an
ongoing issue in Linux kvm.
Initial diff from Nick Owens, ok kettenis@