summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-01Make the repotab (rt) a global instead of passing the value around asClaudio Jeker
an argument. Will help with further changes. OK benno@
2020-10-01correct size argument to free(9)Jonathan Gray
ok kettenis@
2020-10-01avoid uninitialised var use in drm_syncobj.cJonathan Gray
We don't walk the chain in dma_fence_chain_for_each() but can provide the first fence.
2020-10-01Use correct way to report error when strtonum fails.Claudio Jeker
Use errx(), remove the extra \n and use the correct argument (-s not -t).
2020-10-01Only count the proper node types. Avoid out of-bound access for largeOtto Moerbeek
filesystems. From FreeBSD. ok millert@
2020-10-01mfokclock renamed to mfokrtc;Jason McIntyre
2020-10-01update currency exchange rates;Jason McIntyre
2020-10-01fix indentationJonathan Gray
2020-10-01Mark top-level frame for new thread in both CFI and with zeroPhilip Guenther
framepointer, so gdb knows to stop. Inspired by glibc ok kettenis@
2020-09-30Move mfokclock(4) from loongson to sys/dev/i2c so that it be used by morePatrick Wildt
platforms than just loongson. Rename it to mfokrtc(4) for consistency with other RTC drivers. Make it match on st,m41t83, since that was the chip for which the driver was written for. More compatible strings can be added for each chip of the series verified to behave the same. Discussed with kettenis@ Compile tested on loongson by kn@ Tested on loongson by and ok visa@
2020-09-30Sync with libagentxMartijn van Duren
2020-09-30Fix two minor memory leaks.Martijn van Duren
the first is when a varbind index is of the type ipaddress. the second is on EOMV and the a varbind index is ipaddress or octetstring, where the wrong field is being freed (which in this case is always NULL and unused)
2020-09-30Document BPF_RND. Missed part of the xBPF commit (bpf_filter.c -r1.34).Theo Buehler
from dlg, ok kn tb jmatthew
2020-09-30We have no if_attachtail() function so remove the declaration.mvs
ok deraadt@ claudio@
2020-09-30Add minimal support for OpenBSD/powerpc64.Mark Kettenis
2020-09-30Don't accept AUTH payloads with invalid auth_method 0.tobhe
Fixes duplicate AUTH payload detection. ok patrick@
2020-09-30Don't accept ID payloads with ID type IKEV2_ID_NONE.tobhe
0 is not a valid type and triggers undesired edge cases. ok patrick@
2020-09-30Don't leak sa->sa_peerauth.id_buf.tobhe
ok patrick@
2020-09-30Now that dprintf(3) uses format string annotation checking, a sizeof()Theo de Raadt
requires (int) for a '*' modifier ok millert
2020-09-30adjust protos for utimes/futimes to use [2], and then add documentationTheo de Raadt
regarding EINVAL for denomalized time values (sub-second out of range) ok jmc millert, discussion with kettenis
2020-09-30document EINVAL for denorm timeval in BIOCSRTIMEOUT; ok jmcTheo de Raadt
2020-09-30renable POOL_DEBUGJonathan Gray
ok deraadt@
2020-09-306.8-currentJonathan Gray
ok deraadt@
2020-09-30Instead of using the kind of hidden b64_pton() from libc resolv.h switchClaudio Jeker
to the -lcrypto base64 decoder using EVP_Decode* this is more portable. With and OK tb@, OK benno@ (on a less polished version)
2020-09-30i386 is pentium or later as toolchain defaults to -march=i586 nowJonathan Gray
2020-09-30Regen moduli.Darren Tucker
2020-09-29Add support for A64 UART resets.Mark Kettenis
ok patrick@
2020-09-29Edit for clarity and precision.Richard Procter
Feedback and "Looks good to me" from Matt Dunwoodie ok jmc@
2020-09-29Add a reference to ruby-module(5) in SEE ALSO since port-modules(5)kmos
explicitly tells folks to read there for information about the lang/ruby module. ok kn
2020-09-29Fix mistypes within sys/smr.hmvs
LIST_END -> SMR_LIST_END TAILQ_END -> SMR_TAILQ_END ok visa@
2020-09-29Check ibuf_seek() return value.tobhe
ok patrick@
2020-09-29Sync with libagentxMartijn van Duren
2020-09-29Fix 3 bugs:Martijn van Duren
1) Don't declare subagentx_index SA_DSTATE_CLOSE until all subfunctions are done with it. This prevents premature freeing of the object. 2) In subagentx_index_free make sure that if an subagentx_object moves out from under us we correct for this. 3) Don't call subagentx_index_free_finalize if sai_cstate is not SA_CSTATE_CLOSE. The first and last can be triggered when calling free while we're disconnected from the agentx master. The second one can only be triggered with when the freed object is not the last one in the list.
2020-09-29Add support for the PCA9546 I2C switch to pcamux(4). In comparison toPatrick Wildt
PCA9548, this variant supports only 4 instead of 8 channels. ok kettenis@
2020-09-29The pcamux(4) device tree node's children are the individual channels,Patrick Wildt
which we each treat as an I2C bus. While scanning these, we need to use each channel's node as starting point instead of the pcamux(4) node. This fixes finding and attaching devices connected to these channels. ok kettenis@
2020-09-29Move the solock() call outside of solisten(). The reason is that theClaudio Jeker
so_state and splice checks were done without the proper lock which is incorrect. This is similar to sobind(), soconnect() which also require the callee to hold the socket lock. Found by, with and OK mvs@, OK mpi@
2020-09-29Introduce a helper to check if all available swap is in use.Martin Pieuchot
This reduces code duplication, reduces the diff with NetBSD and will help to introduce locks around global variables. ok cheloha@
2020-09-29Set the correct length before copying to userland.Martin Pieuchot
Prevent copying a partial and corrupted descriptor or leaking kernel memory. ok kn@, deraadt@
2020-09-29Delete dead isa_strayintr() and fakeintr() code, along with multiplePhilip Guenther
dead variables, present from the fork from i386 but unused since the interrupt code on amd64 managed to divorce its ISA heritage ok deraadt@
2020-09-29Add TP-LINK UE300 device.Kevin Lo
Tested by Joel Carnat. ok deraadt@
2020-09-28Set hw.perfpolicy to "manual" and hw.setperf to max when handling -HJeremie Courreges-Anglas
This is better than using hw.perfpolicy="high" for a number of reasons: - matches the manpage - apm(8) reporting becomes accurate - more symmetry with -L ("low") - lets the user tweak hw.setperf with sysctl(8) later ok tedu@
2020-09-28Add support for Comet Lake I2C controllers; needed to have a workingMark Kettenis
trackpad on machines such as the 8th generation Lenovo X1. This is a temporary fix that uses magic numbers instead of #defines such that this diff can be included in the upcoming release. Will be replaced by a proper fix later. ok deraadt@
2020-09-28Revert a wording change that was made in revision 1.05solene
which was reverting a change made into 1.03 bioctl -d is "detaching" and not "deleting" a volume
2020-09-28Fix segfault in pstat -vTheo Buehler
Broken in r1.122 when the vnode list at the mount point was converted to a TAILQ to make softdeps happy. There was a for loop that looked a lot like a LIST_FOREACH that was converted to a TAILQ_FOREACH. Unfortunately, the loop is a bit more intricate. Revert to the original loop logic, but now with TAILQ. "looks correct" millert, "looks good" deraadt
2020-09-28Add defines for the number of frames to skip on powerpc64.Mark Kettenis
ok mpi@
2020-09-27In the previous commit, check tv_nsec, not tv_sec as VNOVAL is aMatthieu Herrb
valid valuse of tv_sec but an invalid value for tv_nsec. Noticed by guenther@. ok beck@ deraadt@
2020-09-27Add workaround for Lenovo X1 gen 8 which has AML that tries to invokeMark Kettenis
ToHexString() on a Package. Should probably be replaced by a better solution after release. ok deraadt@
2020-09-27nfs_create: after an exclusive create rpc, make sure to updateMatthieu Herrb
timestamps. This issue was iscovered after rsync 3.2 changed behaviour on an NFS mounted partition.. Change lifted from NetBSD (r 1.204). ok beck@, kn@, deraadt@
2020-09-27miod's proposal for traps was also wrong, causing one type of kernelTheo de Raadt
trap to reach the userland check. as suggested, this might fix it.
2020-09-27Make sure acpicpu(4) doesn't attach to Processor nodes that happen to haveMark Kettenis
a _HID. Should fix the issues with broken AML that Janne Johansson reported. This issue should be fixed in a more generic way, but that is too risky for the upcoming release. tested by jmc@ ok deraadt@