summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-20Align the basename(3) and dirname(3) prototypes with the POSIX spec:Christian Weisgerber
Both functions take a non-const parameter. Implementations may modify the passed string, even though ours do not. ok stsp@ deraadt@ millert@
2020-10-20alpha, loongson, sh, sparc64: recompute tick, tick_nsec when hz(9) is resetcheloha
Normally we set hz(9) at compile-time in sys/conf/param.c to the value of HZ. HZ is one of the fundamental compilation options(4). However, sometimes we need to reset hz(9) at runtime. Whenever we reset hz(9) we need to recompute tick and tick_nsec. Otherwise a variety of "time stuff" in the kernel will not work correctly. For example, most timeouts will expire "too slow" or "too fast". There are a bunch of other places we use tick and tick_nsec that will exhibit similar problems. Test-compiled by deraadt@.
2020-10-20Use a trap instruction that unconditionally terminates the process.Visa Hankala
OK deraadt@
2020-10-20Add handling for a trap instruction that terminates the process.Visa Hankala
OK deraadt@
2020-10-20Add arm64 support.Mark Kettenis
ok deraadt@
2020-10-20Remove guard, uao_init() is called only once and no other function use one.Martin Pieuchot
ok kettenis@
2020-10-20use drm_mm from linux 5.7.yJonathan Gray
Without this boot time tests from setting amdgpu_testing = 1 fail. For example on Vega 56: drm: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF ... [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0xa00000 [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0xb00000 ... [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0x1fe00000 [drm] Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0x1ff00000 [drm] *ERROR* 0xffff80000135f858 bind failed Error while testing BO move ok kettenis@
2020-10-19Retguard sigsetjmp on powerpc64.mortimer
ok deraadt@
2020-10-19Adapt XMSS to new logging infrastructure. With markus@, ok djm@.Darren Tucker
2020-10-19Decode the UDF ("permanently undefined") instruction in ddb(4)'s arm64Christian Weisgerber
disassembler. The particular immediate16 format appears to be unique to this instruction. ok kettenis@ deraadt@
2020-10-19Accommodate POSIX basename(3) that takes a non-const parameter andChristian Weisgerber
may modify the string buffer. ok florian@ millert@
2020-10-19Accommodate POSIX basename(3) that takes a non-const parameter andChristian Weisgerber
may in fact modify the string buffer. truncation check requested and ok florian@
2020-10-19Only use OPAL_CONSOLE_FLUSH if the firmware implements it. Should helpMark Kettenis
on POWER8 machines with older versions of OPAL.
2020-10-19the userland pagefault handler can drop the kernel lock before goingTheo de Raadt
into trapsignal() discussed with kettenis
2020-10-19deliver SIGSEGV rather than SIGBUS for T_PROTFLT,T_SEGNPFLT,T_STKFLT.Theo de Raadt
This is a similar translation as i386, and matches the idea that SIGBUS signals refer to problems with the underlying object rather than the mapping. ok kettenis
2020-10-19Add explicit casts to double to quiet a clang warning.Todd C. Miller
OK deraddt@
2020-10-19Clear vmspace pointer in struct process before calling uvmspace_free(9).Mark Kettenis
ok patrick@, mpi@
2020-10-19replace ad-hoc illegal instruction with the architecturally defined oneChristian Weisgerber
("permanently undefined") ok deraadt@ kettenis@
2020-10-19Handle NO_PROPOSAL_CHOSEN as IKE_AUTH initiator.tobhe
ok markus@
2020-10-19Do not "fall through" to the last "else" when we parsed the character.Florian Obser
rev 1.9 of lex.c broke the parser by deleting an outer "if" block when only the inner was supposed to go. OK tb
2020-10-19add retguard prologue/epilogueTheo de Raadt
ok mortimer
2020-10-19Disable FP exception masking tests on armv7 and arm64. ARM hardware doesn'tMark Kettenis
implement this feature.
2020-10-19Skip floating-point exception checks on arm64 and armv7 as the hardwareMark Kettenis
(typically) doesn't implement support for these. ok patrick@, drahn@
2020-10-19Save and restore the FPCR register such that floating-point control modesMark Kettenis
are properly restored by longjmp(3).
2020-10-19Set %r0 to EFAULT instead of the return value from uvm_fault() when itMark Kettenis
fails and we're doing a copyin/copyout. Fixes a buf where systems calls would return EACCESS instead of EFAULT when accessing userland memory that can't be accessed. ok patrick@
2020-10-19Serialize accesses to "struct vmspace" and document its refcounting.Martin Pieuchot
The underlying vm_space lock is used as a substitute to the KERNEL_LOCK() in uvm_grow() to make sure `vm_ssize' is not corrupted. ok anton@, kettenis@
2020-10-19fix SEGV on fatal() errors spotted by dtucker@Damien Miller
2020-10-19On powerpc64, restore %r2 when needed while unwinding.Mark Kettenis
Makes exception handling work on powerpc64. ok patrick@
2020-10-19Client could be NULL in select-window (for example in .tmux.conf), doNicholas Marriott
not set latest session if so. GitHub issue 2429 from Han Boetes.
2020-10-18The maxoperand test is currently expected to fail.Patrick Wildt
ok mpi@
2020-10-18Accommodate POSIX basename(3) that takes a non-const parameter andChristian Weisgerber
may modify the string buffer. improved and ok jca@
2020-10-18Add powerpc64 retguard macros for setjmp / longjmp.mortimer
ok deraadt@
2020-10-18XFAIL tests on arm64 and armv7 as floating-point exception support isMark Kettenis
optional and isn't implemented on most hardware.
2020-10-18Implement pmap_proc_iflush().Mark Kettenis
2020-10-18Handle trace interrupts from userland.Mark Kettenis
2020-10-18SYS___threxit cannot fail, but this integration looks like a gadget.Theo de Raadt
Put a hard-trap instruction after the syscall instruction. ok kettenis mortimer
2020-10-18Fix typo. Spotted by patrick@Mark Kettenis
2020-10-18Remove leftover debugging output for EXC_PGM traps.Mark Kettenis
2020-10-18Add code to print CPU features.Mark Kettenis
ok naddy@
2020-10-18use the new variant log macros instead of prepending __func__ andDamien Miller
appending ssh_err(r) manually; ok markus@
2020-10-18variants of the log methods that append a ssherr.h string fromDamien Miller
a supplied error code; ok markus@
2020-10-18remove a level of macro indirection; ok markus@Damien Miller
2020-10-18add some variant log.h calls that prepend the calling functionDamien Miller
name; ok markus@
2020-10-18Fix several bugs in the TTM page fault handler and porperly integrate all theMark Kettenis
changes made to Linux 5.7. Pointed out by jsg@. ok jsg@
2020-10-18Fix typo in reference, period that should be comma.Anthony J. Bentley
The error is present in the RFC byline, but that's no reason to ignore an obvious typo when the correct punctuation is visible right above it. ok jmc@ martijn@
2020-10-18Use all 64 bits of the RETGUARD cookie on powerpc64gkoehler
Change the 64-bit target to use "ld" (load 64-bit doubleword) for the cookie. The 32-bit target stays with "lwz" (load 32-bit word). ok mortimer@
2020-10-17Avoid potential infinite loop in pmap_vp_destroy().Mark Kettenis
2020-10-17Logitech Webcam Pro 9000 works.Marcus Glocker
2020-10-17regenMarcus Glocker
2020-10-17Add Logitech Webcam Pro 9000.Marcus Glocker
From Raf Czlonka <rczlonka at gmail dot com>