summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-03-27Add imxpwm(4), a driver for the PWM controller found on various NXP i.MX SoCs.Patrick Wildt
ok kettenis@
2020-03-27btrace(8): simplify builtin_nsecs(); ok mpi@cheloha
2020-03-27Copy EAP ID to new SA when rekeying IKE SA.tobhe
From Bernardo Vieira <bernardocv (at) gmail (dot) com> ok patrick@
2020-03-27Don't free() part of a struct.Kenneth R Westerback
Spotted by CID 1453297, and part of NetBSD's r1.51. ok ratchov@
2020-03-27Use correct bit mask to promptly exit rge_set_phy_power() andKenneth R Westerback
rge_exit_oob() timeout loops. Spotted by CID 1491296 and 1491309. Fix & ok kevlo@
2020-03-27Enable FFS2 on the landisk ramdisk. Booting from FFS2 is trickyOtto Moerbeek
since the bootxx needs to interpret the fs metadata and it has very little spare room. We could make two version of xxboot, but that's hardly worth the trouble.
2020-03-27Adjust cert type when choosing public key fallback.tobhe
ok patrick@
2020-03-27Use the correct math to calculate how many bytes are needed for b64_pton().Claudio Jeker
The size is first rounded up in case where the input string length is not a multiple of 4. Reported by kristaps@
2020-03-27BD71837 uses the same BUCK2 register as BD71847. This allowsPatrick Wildt
CPU frequency scaling to work on the Librem5 Devkit.
2020-03-27Fix use of 'idstr' and 'idstrlen' arguments in print_static_id().tobhe
ok patrick@
2020-03-27unused constantsFlorian Obser
2020-03-27Skip first line if it starts with '#!'Martin Pieuchot
2020-03-27Relax the lockcount assertion in vputonfreelist(). Back when I fixedanton
several problems with the vnode exclusive lock implementation, I overlooked the fact that a vnode can be in a state where the usecount is zero while the holdcount still being positive. There could still be threads waiting on the vnode lock in uvn_io() as long as the holdcount is positive. "go ahead" mpi@ Reported-by: syzbot+767d6deb1a647850a0ca@syzkaller.appspotmail.com
2020-03-26Add support for "alpha" suffixes in package versionsJeremie Courreges-Anglas
We already supported "beta" releases but not "alpha", probably to discourage people from pushing "alpha-quality" software in the ports tree. We have 30 ports with distfiles matching "alpha", and people just work around the lack of explicit support for "alpha" releases with mixes of crafted PKGNAME and REVISION/EPOCH. This looks needlessly complicated and a bit unfair when compared to GH_COMMIT support. Pointers from landry@ and sthen@, lgtm landry@, no objection from espie@
2020-03-26Unify #ifdef guarding code to remove PPTP and L2TP sessions.Martin Pieuchot
This makes a pattern emerge that should help when starting to protect the global `session' list with something else than the KERNEL_LOCK(). from Vitaliy Makkoveev.
2020-03-26Clarify the use of EPOCH in ports Makefiles.paco
Whith lots of help from sthen@, espie@ and jca@ ok espie@ jca@
2020-03-26Fix register definition. Fixes USB3 support when USB has not beenMark Kettenis
initialized by U-Boot.
2020-03-26Prevent NULL dereference in passing result of dma_alloc() with NO_WAITtobhe
to memcpy(). CID 1453215 ok stsp@, feedback from kettenis@
2020-03-26Revert Rev 1.164. Setting sls_sig to 0 uncovered a bunch of issues when itClaudio Jeker
comes to setting a process into single thread mode. It is still worng but first the interaction with single_thread_set() must be corrected.
2020-03-26drm/amd/amdgpu: Fix GPR read from debugfs (v2)Jonathan Gray
From Tom St Denis 053a9862f0202cdcda9c56778dd98396a7cb3513 in linux 4.19.y/4.19.113 5bbc6604a62814511c32f2e39bc9ffb2c1b92cbe in mainline linux
2020-03-26drm/amd/display: fix dcc swath size calculations on dcn1Jonathan Gray
From Josip Pavic 345acf45a0cef1effd58d42ed8e767a6219ae4b6 in linux 4.19.y/4.19.113 a0275dfc82c9034eefbeffd556cca6dd239d7925 in mainline linux
2020-03-26drm/amd/display: Clear link settings on MST disable connectorJonathan Gray
From Bhawanpreet Lakha f258014432a705707d78ccbcc24ff0df815eb983 in linux 4.19.y/4.19.113 5ac7fd2f597b88ee81f4748ee50cab06192a8dc3 in mainline linux
2020-03-26print platform name and gen in early inteldrm attachJonathan Gray
ok kettenis@ ok matthieu@ on an earlier diff
2020-03-25Add missing %s in sr_error, otherwise 'sd->sd_name' is not printed.tobhe
ok kn@
2020-03-25init(8): use err(3) instead of hand-rolled fprintf(3) messagescheloha
2020-03-25Revert introduction of MSI-X code, deraadt@ reported a regression on i386.Martin Pieuchot
2020-03-25Introduce stacktrace_save_at() and make use of it in dt(4).Martin Pieuchot
This variant of stacktrace_save() takes an aditionnal argument to skip an arbitrary number of frame. This allows to skip recording frames used to execute the profiling code and produces outputs easier to understand. Inputs from and ok visa@
2020-03-25Do not test against NULL a variable which is dereference before that.Martin Pieuchot
CID 1453116 ok kettenis@
2020-03-25Grab the NET_LOCK() before calling pipex_iface_stop().Martin Pieuchot
This function calls pipex_destroy_session() which requires the lock and pipex_ioctl() already calls it with the NET_LOCK() held. From Vitaliy Makkoveev.
2020-03-25Indicate that the case handling data underruns falls through to the caseJonathan Matthew
handling overruns and normal completions. CID 1452878.
2020-03-24Add ikev2_print_static_id() to print static IDs in log_debug() output.tobhe
ok markus@
2020-03-24Make our CERTREQ payload handling less strict. If we can not find atobhe
certificate or key matching the trust anchor sent in the CERTREQ, find any certificate matching the peers ID or use the own public key. The CERTRQ contentss should only be interpreted as a hint on what the peer supports. It may still accept our certificate/key if it does not match the CERTREQ. ok markus@
2020-03-24Always clear sa_simult when initiating a new CREATE_CHILD_SA exchange, nottobhe
just on explicit errors. This is to make sure we don't try to resolve a conflict from a previous failed simultaneous rekeying exchange. ok markus@
2020-03-24The certreq payload has no use in PSK authenticated exchanges. Once we aretobhe
sure the policy uses PSK we can safely ignore it. The initiator always knows what authentication method will be used, the responder knows after the policy relookup with the initiator's ID. The old behaviour broke interop with strongswan when PSK was used. ok markus@
2020-03-24587 and 825 are additional Alberta area codes since 2008.Theo de Raadt
2020-03-24Use FALLTHROUGH in uvm_total() like it is done in uvm_loadav().Martin Pieuchot
CID 1453262.
2020-03-24document DPB_LOCKNAMEMarc Espie
the feature itself is obvious, but the restrictions are many, and the actual usage should be very rare.
2020-03-24When doing a loop inside a loop for input validation make sure that theMartijn van Duren
continue statement for the outer loop is executed in the outer loop. Found the hard way by breaking snmpd(8) in my local tree.
2020-03-24Kill some dead code that tests bits immediately after setting them.Kenneth R Westerback
CID 1452873
2020-03-24Remove redundant 'NULL' check for 'rtm'.tobhe
CID 1453252 ok claudio@ mpi@
2020-03-24Fix user database corruption from 'ikectl reload'. Copy only the new passwordtobhe
instead of the full iked_user struct to preserve the RB_TREE pointers. From Bernardo Cunha Vieira <bernardo (dot) vieira (at) almg (dot) gov (dot) br> ok patrick@
2020-03-24Backout the rename, it was more confusing then helpful.anton
2020-03-24Fix ASN1 print functionsKinichiro Inoguchi
Check and print out boolean type properly. Based on OpenSSL commit ad72d9fdf7709ddb97a58d7d45d755e6e0504b96. Reduced unneeded parentheses from if condition. Check return value from i2s_ASN1_INTEGER. Based on OpenSSL commit 5e3553c2de9a365479324b8ba8b998f0cce3e527. Added if condition expression and return 0 if NULL is returned. ok tb@
2020-03-24Put MSI-X stuff under !SMALL_KERNEL to reduce the growth for i386 floppy.Martin Pieuchot
2020-03-24Remove a chatty debug printf (not enabled by default) in wskbdopen() andanton
wsmouseopen(); bringing them closer to wsmuxopen(). No functional change.
2020-03-24Add support for overlay popup boxes to show text or output temporarilyNicholas Marriott
above the normal layout. These work similarly to menus and are created with the display-popup command.
2020-03-24Rename wsmousedoioctl() -> wmouse_do_ioctl() and follow the sameanton
convention for the open routine. This increases the consistency between wskbd, wsmouse and wsmux.
2020-03-24Ensure that me_evp is still NULL before assignment during open of wsconsanton
devices. This condition is checked early on during open but since the same routine could end up sleeping before assigning me_evp, a race against adding the same wscons device to a wsmux could be lost. This in turn can cause a NULL deference during close. ok mpi@ Reported-by: syzbot+34c3041bfd96c888c8bd@syzkaller.appspotmail.com
2020-03-24Sync to latest from wiz at netbsd, needed for upcoming sparc64 bootblk changes;Otto Moerbeek
ok kettenis@
2020-03-24cope with growth, sighTheo de Raadt