summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-01add a KERNEL_ASSERT_LOCKED() to ptsignalDavid Gwynne
it obviously needs to be called with the kernel lock held, so it makes sense to check that so we can unlock more code without introducing bugs that shoot us in the face in the indeterminate future. csignal is basically a wrapper around ptsignal, so calls to that without the kernel lock should be caught by this too. discussed with mpi@ on bugs@
2019-05-01update currency exchange rates;Jason McIntyre
2019-05-01sprinkle some KERNEL_ASSERT_LOCKED()David Gwynne
operations that tweak the kq_head and kq_count need to be serialised against the kevent syscall which also fumbles with the list and count too. these asserts would have made it extremely obvious where the tun(4) bug was. for half the time of the bug report about it we werent even sure it was tun(4) discussed with mpi@ jmatthew@
2019-05-01pretty much all of tun_wakeup needs to be protected with KERNEL_LOCKDavid Gwynne
tun_wakeup is called from the network stack, which generally runs with NET_LOCK, not KERNEL_LOCK, which is a problem when it calls into things like csignal or kq code. this started causing corruption and panics of a list inside the kq code, which got reported to bugs@. this version of the fix is ok mpi@ (even though he hasn't seen it) an earlier but far trickier fix was ok visa@ the bug was reported by Olivier Antoine, and again by jmc@ privately.
2019-05-01Remove unused variable from Thomas Adam.Nicholas Marriott
2019-04-30step by step, more removal of differencesTheo de Raadt
2019-04-30repair more trivial differencesTheo de Raadt
2019-04-30rm is in /bin, no need to specifyTheo de Raadt
2019-04-30Also pull cdrom production into the full ramdisk build.Theo de Raadt
2019-04-30Make AK5385-related macros of ap192k cards look like julia ones.Alexandre Ratchov
As ap192k and julia cards are very similar, this change will hopefully help reusing part of the juilia codec initialization code as is in the ap192k card code. No behavior change.
2019-04-30pull cdfs into ramdisk_cdTheo de Raadt
2019-04-30Implement the set_rate() method for ESI Juli@ cards.Alexandre Ratchov
The set_rate method switches the AK5385 and the AK4358 chips between single-, double- or quad-speed modes depending on the host sample rate. This suppresses aliasing noise in 96kHz and 192kHz sample rates. Help and testing by Andrey Oktyabrskiy <ano at bestmx.net>. Thanks!
2019-04-30Add a "set_rate" method to the envy codec API.Alexandre Ratchov
This allows to hook card-specific codec initialization code called when the sample rate is changed. As codecs follow host clock, this method will be typically used to switch between simple-speed to double-speed modes when necessary.
2019-04-30Attach mvneta(4) on the Armada 3720 SoC.Patrick Wildt
2019-04-30Enable mvmdio(4) and mvneta(4) on arm64 as well. These are partPatrick Wildt
of the Armada 3720 SoC as used on the Turris Mox.
2019-04-30Fix ESI juil@'s EEPROM contents holding default GPIO state.Alexandre Ratchov
The new GPIO state doesn't set masked bits and matches the default 48kHz sampling rate. As the codec uses the host clock, this is a no-op, but this way the code is less confusing.
2019-04-30Enable EnvyHT-specific sample rates (above 96kHz) on the host controller.Alexandre Ratchov
Tests and help from Andrey Oktyabrskiy <ano at bestmx.net>. Thanks.
2019-04-30Decrease verbosity when XHCI_DEBUG is defined.Alexandre Ratchov
ok mpi
2019-04-30Add support for the Armada 3720 pinctrl controller to mvpinctrl(4).Patrick Wildt
This controller does not only support pinmuxing, but also includes GPIO controller functionality. This is needed to e.g. turn on USB VBus on the Turris Mox. ok kettenis@
2019-04-30Add mvuart(4) to support the Armada 3720's serial console.Patrick Wildt
ok kettenis@
2019-04-30Add support for the Armada 3720 clocks to mvclock(4).Patrick Wildt
ok kettenis@
2019-04-30We are allowed to enable regulators with the "regulator-always-on"Patrick Wildt
property. The definition is that a regulator with this property should never be disabled. ok kettenis@
2019-04-30merge cdfs into miniroot, so that it doesn't need obj reacharoundTheo de Raadt
2019-04-30In man(1) mode, i.e. when asking for a single manual page by name,Ingo Schwarze
prefer file name matches over .Dt/.TH matches over first NAME matches over later NAME matches, but do not change the ordering for apropos(1) nor for man -a. This reverts main.c rev. 1.213 and mansearch.h rev. 1.23 and includes a partial revert of mansearch.c rev. 1.62. Regression reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-04-30common directory is pointless nowTheo de Raadt
2019-04-30add unveil(2):Ricardo Mestre
chpass(1) without parameters enters in edit mode by default, in here it will need to execute _PATH_BSHELL to spawn a new EDITOR, _PATH_SHELLS to check (read) if we are changing from/to a non-standard shell (in case we are not root) and read access to `tempname' to verify if the file has valid entries and create to unlink it. If -s is used to change a user's shell then it will need read access to _PATH_SHELLS by the same reason already mentioned above. Unconditionally we need to unveil _PATH_MASTERPASSWD_LOCK with write/create permissions, _PATH_MASTERPASSWD with read and _PATH_PWD_MKDB to execute pwd_mkdb(8). In the -a case I'm not unveiling /etc/spwd.db since we can get it through pledge "getpw", which can be added later for completeness of all code paths. Note also that the first pledges need "unveil" since we will call unveil(2) afterwards. "looks good" deraadt@
2019-04-30fix disktype related typoTheo de Raadt
2019-04-30tweak synopsis to match actual option logicMarc Espie
okay schwarze@, jmc@
2019-04-30Fix user options after show-hooks merge, GitHub issue 1704.Nicholas Marriott
2019-04-30Every Makefile on every architecture had deviated in unique ways.Theo de Raadt
Eliminate many more differences. When it makes sense, build bsd.rd and miniroot/ramdisk.fs and cd.iso in the same directory. More steps coming after this..
2019-04-30Restrict filesystem access with unveil(2):Ricardo Mestre
First it needs to open(2) `device' with read permissions, /dev/hotplug by default but can be changed via arguments. Then it needs read/execute on both _PATH_ETC_HOTPLUG_{ATTACH,DETACH} to access(2) and execl(3) them. ok deraadt@
2019-04-30elaborate a little on how route priorities work;Jason McIntyre
help/ok claudio
2019-04-30In HTML output, allow switching the desired font for subsequentIngo Schwarze
text without printing an opening tag right away, and use that in the .ft request handler. While here, garbage collect redundant enum htmlfont and reduce code duplication in print_text(). Fixing an assertion failure reported by Michael <Stapelberg at Debian> in pmRegisterDerived(3) from libpcp3-dev.
2019-04-30tc_setclock: always call tc_windup() before leaving windup_mtx.cheloha
We ought to conform to the windup_mtx protocol and call tc_windup() even if we aren't changing the system uptime.
2019-04-30improve the description of the message "blank line in fill mode";Ingo Schwarze
triggered by a misunderstanding by sashan@
2019-04-30Restrict file system access to /var/db for the dhclient lease files.Florian Obser
This and pledge("rpath") can go once we switch to RTM_PROPOSAL.
2019-04-30Don't redraw control clients, from George Nachman.Nicholas Marriott
2019-04-30Fix memory leak in window tree search, from Amos Bird.Nicholas Marriott
2019-04-30Convert a linux specific test for master in currently disabled code.Jonathan Gray
2019-04-30Add an equivalent test for master in drm_fb_helper_is_bound()Jonathan Gray
Prevents black screens on hotplugging a new display with Xorg running which required a vt switch for screens to be useable. Reported by various people on misc@. Tested by and ok sthen@
2019-04-29Make v[46]_info() return all the interface flags instead of justKenneth R Westerback
deducing that the interface is up or down. Check for "UP," in the returned flags where a return value of UP was used previously. ok kn@ with feedback/optimizations to be pondered further.
2019-04-29Install upgrade kernel with ln -f, as per kernel build. ok florian@Ian Darwin
2019-04-29Add '*' to disklabel(8) editor prompt when in-memory copy of disklabelKenneth R Westerback
has been modified. Use name of disk being edited in fdisk(8) editor prompt. Idea from tb@. ok tb@ deraadt@
2019-04-29$() is expanded by make itself, so consistently use `cat vnd`; ok deraadt@Christian Weisgerber
2019-04-29Switched min_heap to size_t to prevent integer overflows.Tobias Stoeckmann
Also, as deraadt suggested, switched realloc to recallocarray to at least prevent uninitialized memory to be used as pointers in case of other programming errors. A proper solution (not using an array) needs more work. This change occured in sync with upstream libevent 2.2. with input by and ok bluhm, jca, tedu
2019-04-29Remove unnecessary end-of-contents octets.rob
ok claudio@
2019-04-29These Makefile.inc are now empty and unused.Theo de Raadt
2019-04-29TOPDIR and TOP are not neccessary.Theo de Raadt
2019-04-29MC146818_GETTOD: Check for RTC rollover during read.cheloha
Because the RTC is still ticking it is theoretically possible for the second to roll over while we are reading the clock. This is basically impossible on real/practical hardware but is an interesting corner case for e.g. a VM reading an emulated MC146818 during an exit to userspace. This doesn't check *every* register, so if it takes you a multiple of 60 seconds to read the RTC this change won't help you. But you've got bigger problems at that point. "no objections" kettenis@/mlarkin@, "fine idea" deraadt
2019-04-29Extend channel dwell time during passive scans in iwn(4).Stefan Sperling
Makes scan results more reliable. testing jmc@, kmos@, Tracey Emery ok kettenis@ kevlo@ jmc@ phessler@