PR/61017: Juan Manuel Mendez Rey: regexec reads past the string after a
multibyte character. Provide a prevchar() function that fetches the previous
multibyte character.
implement /32 IPv4 parsing in NPF.
Timo Burhmester (timo@) requested in a recent tech-net thread on NPF.
during the extraction of address/mask data, if mask is equal to max mask,
both v4 and v6, it is assumed to be no net mask set.
reviewed by martin@ and tests also included.
First step towards MP support in the new pmap:
Add new functions that allocate and initialize (as separate steps) a
per-CPU page that contains its cpu_info as well as lev1, lev2, and lev3
page tables. The lev1 table is a copy of the kernel_lev1map for that
CPU, except the slot corresponding to CPUINFO_VA points to that CPU's
private lev2 table, whose slot corresponding to CPUINFO_VA points to
that CPU's private lev3 table, whose slot corresponding to CPUINFO_VA
points to this page. Thus, CPUINFO_VA always maps to that specific
CPU's cpu_info page.
If new level 2 tables need to be allowed during pmap_growkernel(),
each secondary CPU's private lev1 table will be updated. Happily,
this is an extremely rare event.
Decorate all of the __read_mostly vars.
More per-cpu data work:
- curcpu() needs to evaluate to a globally-accessible pointer, not a
cpu-local pointer, so do what the sparc port does here - provide a
ci_self that always points to the global pointer, and use that in
curcpu(). cpu_number() and curlwp reference through the cpu-local
alias.
- Rename that alias from cpu_info_store to cpuinfo, again mirroring
what the sparc port does here.
- Add the CPU_INFO_FOREACH() infrastructure, lifted from alpha port.
- Make the temp VAs used by the pmap code + the vmmap temp VA per-cpu.
Pull up following revision(s) (requested by riastradh in ticket #578):
sys/dev/usb/usb_quirks.c: revision 1.109
sys/dev/usb/usbdevs: revision 1.829
sys/dev/usb/uts.c: revision 1.19
Add product id for ELAN touchscreen controller.
Part of PR/60883.
Add support for ALWAYSON quirk to uts(4).
Add quirk for ELAN touchscreens.
Addresses PR/60883.
Pull up following revision(s) (requested by riastradh in ticket #1420):
sys/external/bsd/drm2/dist/drm/nouveau/nouveau_fence.c: revision 1.18
nouveau(4): Fix return value of fence wait.
kpause(9) returns EAGAIN/EWOULDBLOCK when it times out, which is
perfectly normal and expected here with an internal one-tick timeout
which should just go through another loop iteration. This function
is expected to return the number of ticks left to wait when done, so
it reports timeout by returning zero, and is forbidden to fail with
EAGAIN/EWOULDBLOCK.
This is also forbidden to fail with EINTR -- on interruption it must
fail with the Linux ERESTARTSYS instead. So map EINTR to that too
while here.
PR kern/59772: i386 11.0_BETA system crash (Xorg nouveau ?)
Pull up following revision(s) (requested by riastradh in ticket #1419):
sys/arch/x86/x86/efi_machdep.c: revision 1.7
sys/arch/x86/x86/efi_machdep.c: revision 1.8
x86/efi: Bypass kASAN memcpy when copying the efi runtime.
Fixes crash at boot with `options KASAN' enabled on EFI systems.
We could try to find some way to exclude the EFI runtime mappings
from kASAN, e.g. by hacking kasan_md_unsupported. But there's a lot
of detailed exclusions to pass through to that (every entry in the
EFI memory map), and this is the only memcpy in the whole kernel that
all those details are likely to be applicable.
PR kern/60391: kernel panic in efi_init() with "options KASAN"
x86/efi_machdep.c: Nix extra blank line.
[2 lines not shown]
Pull up following revision(s) (requested by riastradh in ticket #576):
sys/arch/x86/x86/efi_machdep.c: revision 1.7
sys/arch/x86/x86/efi_machdep.c: revision 1.8
x86/efi: Bypass kASAN memcpy when copying the efi runtime.
Fixes crash at boot with `options KASAN' enabled on EFI systems.
We could try to find some way to exclude the EFI runtime mappings
from kASAN, e.g. by hacking kasan_md_unsupported. But there's a lot
of detailed exclusions to pass through to that (every entry in the
EFI memory map), and this is the only memcpy in the whole kernel that
all those details are likely to be applicable.
PR kern/60391: kernel panic in efi_init() with "options KASAN"
x86/efi_machdep.c: Nix extra blank line.
[2 lines not shown]
Pull up following revision(s) (requested by riastradh in ticket #1418):
sys/kern/exec_elf.c: revision 1.108
sys/kern/exec_elf.c: revision 1.109
sys/sys/exec_elf.h: revision 1.187
sys/sys/exec_elf.h: revision 1.188
exec_elf: Ignore freedesktop.org dlopen ELF notes.
PR kern/60901: Unknown elf note type 1081871370
exec_elf: Nix diagnostic messages for all (unknown) fd.o notes.
Same as for unknown GNU notes. Shaves off a tiny bit of code in
non-DIAGNOSTIC builds, saves us some trouble when fd.o invariably
adds more metadata not relevant to execution semantics.
PR kern/60901: Unknown elf note type 1081871370
Pull up following revision(s) (requested by riastradh in ticket #575):
sys/kern/exec_elf.c: revision 1.108
sys/kern/exec_elf.c: revision 1.109
sys/sys/exec_elf.h: revision 1.187
sys/sys/exec_elf.h: revision 1.188
exec_elf: Ignore freedesktop.org dlopen ELF notes.
PR kern/60901: Unknown elf note type 1081871370
exec_elf: Nix diagnostic messages for all (unknown) fd.o notes.
Same as for unknown GNU notes. Shaves off a tiny bit of code in
non-DIAGNOSTIC builds, saves us some trouble when fd.o invariably
adds more metadata not relevant to execution semantics.
PR kern/60901: Unknown elf note type 1081871370
Pull up following revision(s) (requested by riastradh in ticket #1417):
sys/dev/i2c/i2c.c: revision 1.109
i2c(4): Avoid leaking kernel heap memory to userland.
PR kern/60913: iic(4): I2C_IOCTL_EXEC can copy out an uninitialised
buffer
Pull up following revision(s) (requested by riastradh in ticket #574):
sys/dev/i2c/i2c.c: revision 1.109
i2c(4): Avoid leaking kernel heap memory to userland.
PR kern/60913: iic(4): I2C_IOCTL_EXEC can copy out an uninitialised
buffer
Pull up following revision(s) (requested by riastradh in ticket #1416):
etc/rc.d/network: revision 1.86
PR misc/60836 - Be more careful with /etc/ifconfig.* cloner configs
Only config cloner interfaces when an /etc/ifconfig.${cloner}N file
exists, if N is completely numeric.