Age | Commit message (Collapse) | Author |
|
art_walk now explicitly takes the same lock used to serialise change
made via rtable_insert and _delete, so it can safely adjust the
refcnts on tables while it recurses into them. they need to still
exist when returning out of the recursion.
it uses srps to access nodes and drops the lock before calling the
callback function. this is because some callbacks sleep (eg, copyout
in the sysctl code that dumps an rtable to userland), which you
shouldnt hold a lock accross. other callbacks attempt to modify
the rtable (eg, marking routes as down when then interface theyre
on goes down), which tries to take the lock again, which probably
wont work in the future.
ok jmatthew@ mpi@
|
|
|
|
ok mlarkin, deraadt
|
|
ok mlarkin, kettenis, deraadt
|
|
|
|
change this in all config parsers in our tree that support macros.
problem reported by sven falempin.
feedback from henning@, stsp@, deraadt@
ok florian@ mikeb@
|
|
suggested by jmc@
|
|
existing log in pf_state_key_attach() from the failed to the reuse
case.
OK mikeb@
|
|
board and a device tree is required by our kernel now.
ok patrick@, jsg@
|
|
possible EXEC permission for the section, because the proper permission
is set late, and there are no thread concerns here. Avoids W^X issues
in oddball cases.
ok guenther kettenis
|
|
if coreboot's memory table is found, it has a framebuffer entry, and
there is no previously attached efi, vga, or serial console.
useful on chromebooks that have no legacy vga device to get an early
console before inteldrm(4) attaches or, for newer chipsets, a full
console and X with wsfb(4).
ok kettenis
|
|
ok kettenis guenther
|
|
the pf.conf parser allows it, which leads a non working configuration
being loaded.
this changes the parser to make pass out .. af-to an error.
ok henning@ mikeb@
|
|
From Miod Vallat, tested by him and me.
ok deraadt@
|
|
reported by Adam Wolk
|
|
|
|
|
|
- stress that its purpose is to set and get variables, it isn't
a configuration tool (there's nothing to configure anymore)
- document all audio driver variables
- document the difference between /dev/audioctl0 and /dev/audio0
- give an example of how to test hardware capabilities with
audioctl
ok semarie@, with help from jmc@, fix from Michael W. Bombardieri
|
|
- group all encoding parameters in a signle string, ex. "s16le",
this way we use the same naming scheme as aucat, sndiod and many
ports.
- remove "properties" as they are not used any longer
- remove the list of encodings as there's no benefit in having it.
We don't have lists for other parameters (sample rates, channel
numbers) either.
- add -q option, to look like sysctl
- remove unused -a option
- stop using symlinks in /dev, most other software doesn't use
them.
ok semarie@
|
|
Improved patch from Cesar Pereida. See
https://github.com/libressl-portable/openbsd/pull/61 for more details.
ok beck@
|
|
The files would only be loaded if the CAfile or CApath locations were
succesfully loaded first. Original patch from OpenSSL:
https://github.com/openssl/openssl/commit/fe9b85c3cb79f1e29e61f01de105b34ce8177190
ok beck@
|
|
to permit it and -ztext to reenable the default of forbidding it.
ok kettenis@
|
|
causing it to exit, we could end up with a NULL deref in parent.
free commit offered by eric@, ok gilles@
|
|
ok deraadt@ florian@ stsp@ phessler@
|
|
The chip has been found on a Sun Fire V210 as a second RTC hooked up
to the SMU. Setting the time there has the advantage that it remains
after a boot since the internal V210 RTC will be synced by the DS1307
at boot time.
Not linked to sparc64 yet since it will overwrite the internal RTC
handler.
ok deraadt
|
|
This means we won't sleep and wait for the firmware to send an interrupt
when it's done processing the command. For unknown reasons, sometimes the
firmware never wakes the driver after a phy db command so the driver gives
up partway through the hardware init sequence.
We already have a DELAY in place after each phy db command we send to give
the firmware some time for processing, so skipping the sleep is not expected
to cause problems. If it does, we'll have to revisit this change.
For now, this change makes iwm(4) work better in bsd.rd.
Problem reported by Remi Locherer on bugs@, and confirmed by kettenis@.
Lots of help with testing and ok tb@
|
|
sparc was like sparc64 (or more likely sparc64 was like sparc) in
that the spl api was build with macros that created inline functions
that the spl were implemented as. this rework provides an splraise
that the splfoo macros are defined to.
because the code sequences for spl0, splraise, and splx are relatively
long, ive turned them into functions.
tested by (and thanks go to) miod@ tobiasu@
|
|
ok gerhard
|
|
ok millert@
feedback/ok natano@
|
|
ok mpi deraadt gerhard
|
|
ok kettenis@
|
|
|
|
both NCM 1.0 and MBIM.
ok gerhard@
|
|
ok gerhard@
|
|
problem noted and based on diff by Michal Mazurek (akfaew (at) jasminek.net)
ok jmc@
|
|
simple prepenv function.
OK tedu@
|
|
|
|
|
|
licence mere mortals can understand the terms of); will be connected to the
build on an arch-by-arch basis.
Testsuites and generated files have been intentionnaly omitted from this import.
Peer pressure and ok from at least drahn@ pirofti@ deraadt@
|
|
|
|
|
|
|
|
pledge in-between the two funtion calls. The new readlabel() only does
a DIOC*DINFO ioctl, making sure the fd points to a disk, while
parselabel() does the scary string manipulations. In the makelabel()
code path do an early DIOCGDINFO before pledge. This fixes yet another
pledge problem (disklabel -w /dev/tty floppy576).
Some of this was discussed with beck.
ok semarie, earlier version ok deraadt
|
|
ok tb@ earlier version
|
|
trivial change to use rrw locks instead. All it needs is LK_* defines
for the RW_* flags.
tested by naddy and sthen on package building infrastructure
input and ok jmc mpi tedu
|
|
|
|
|
|
multiple daemons at once; being worked on.
|
|
With this and the previous 2 commits, we can move from constructs like:
$ for i in $(rcctl ls all); do rcctl get $i; done
to just:
$ rcctl get all
Shrinking the run by a factor of more than 3.5.
prodded by and discussed with reyk@ at BSDcan2016
ok robert@
|
|
Large speedup when iterating over all rc.d scripts.
with and ok robert@
|