summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-11-23No longer need 'option VMM', declaring the vmm0 device is sufficient.Theo de Raadt
ok mlarkin
2015-11-23sync to GENERICTheo de Raadt
2015-11-23the "getpw" test for /dev/tty is only needed for readpassphrase(3),Theo de Raadt
getpass(3), so don't specifically allow it for "rpath" (rpath will accept it in the end, unless it is on the whitelist)
2015-11-23downfalls -> pitfallsmmcc
2015-11-23downfalls -> pitfallsmmcc
2015-11-23Use if_get() rather than rt_ifp.Martin Pieuchot
ok sashan@
2015-11-23There's no longer a need to include <net/hfsc.h> in <net/if_var.h>Martin Pieuchot
2015-11-23if_start needs splnet. help/ok dlg@Stuart Henderson
2015-11-23Do not include <sys/atomic.h> inside <sys/refcnt.h>.Martin Pieuchot
Prevent lazy developers, like David and I, to use atomic operations without including <sys/atomic.h>. ok dlg@
2015-11-23Include <sys/atomic.h> when atomic operations are used.Martin Pieuchot
This has been masked because <sys/srp.h> is pulled unconditionally. ok dlg@
2015-11-23Attaches zs(4) as "zs" not "zsc".Martin Pieuchot
Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the corresponding manual do not match its NAME. This is one step further in the zs(4) unification... Go dokey go! Tested by jmatthew@, ok sebastia@, deraadt@
2015-11-23need sys/device.hTheo de Raadt
2015-11-23Back out the CRITICAL change, turn it back from 10% to 25%. SomeReyk Floeter
people with old/broken batteries didn't like this change, and the underlying heuristics are wrong.
2015-11-22too many arguments to function 'ifq_deq_begin'David Gwynne
found by deraadt@
2015-11-22regenMark Kettenis
2015-11-22Unknown device in a MacBookPro9,2. Almost certainly the first generationMark Kettenis
Intel Thunderbolt controller, as this model was introduced in 2012, and the second generation controllers were introduced in 2013.
2015-11-22regenMark Kettenis
2015-11-22Broadcom BCM4331. From Ossi Herrala.Mark Kettenis
2015-11-22For "disklabel", allow sysctl mach.chr2kblk and ioctl BIOCINQ/BIOCVOLTheo de Raadt
also, to satisfy midlayers that some fs/install tools need.
2015-11-22"getpw" should also allow access to /etc/netidTheo de Raadt
discovered by rpe
2015-11-22Remove drm_gem_object_alloc() and associated infrastructure. It's unused andMark Kettenis
has been removed upstream as well.
2015-11-22The "CRITICAL" APM battery level, that is exported/faked by the ACPIReyk Floeter
stack, is currently set to 25%. With 25% battery left, a typical modern laptop will have at least one hour runtime left. It is an arbitrary value, and other APM power layers in the kernel set CRITICAL to something like 5% or 10%, so set it to 10% for now. OK mlarkin@
2015-11-22fix uninitialised variable use in nep_rx_proc()Jonathan Gray
ok kettenis@
2015-11-21The drm irq stuff isn't actually used on OpenBSD. Using the PCI deviceMark Kettenis
interrupt line register as the irq number doesn't really work as the contents of that register might be 0, and the code has checks for non-zero irq numbers in places. Insteadmake drm_dev_to_irq() return -1, which is an obviously bogus, but non-zero value. This should fix inteldrm(4) on recent Apple hardware.
2015-11-21Make this work with 64-bit memory BARs such as those found on the newMark Kettenis
pcengines APU. ok deraadt@
2015-11-21Retire ml_requeue(9) and mq_requeue(9).Martin Pieuchot
As Kenjiro Cho pointed out it is very hard to cancel a dequeue operation for some queueing disciplines when such it keeps some internal states. As you can see, APIs can also Live Fast & Die Young. ok dlg@
2015-11-21Add a comment after every #endifMartin Pieuchot
requested by sashan@
2015-11-21Use if_get() rather than dereferencing rt_ifp directly.Martin Pieuchot
Inputs from and ok florian@, ok sthen@, visa@, sashan@
2015-11-21Use if_get() rather than dereferencing rt_ifp directly.Martin Pieuchot
ok sthen@, visa@, sashan@, florian@
2015-11-21Prevent disabling vmm mode if a VM is still running.Martin Pieuchot
Return EAGAIN in this case: # vmmctl -d vmmctl: disable VMM command failed (35) - Resource temporarily unavailable ok mlarkin@
2015-11-21Do not create a VM if vmm mode hasn't been enable.Martin Pieuchot
Currently one MUST do "vmmctl -e" before creating a vm with "vmm -S ...". Lately this could be done automagically by vmd(8) but the kernel should not allow things that wont fly. While here, disable vmm mode in error path if at least one of the CPUs failed to enable it. ok mlarkin@
2015-11-21Do not use boolean_t outside of /sys/uvmMartin Pieuchot
ok mlarkin@
2015-11-21dont check IFF_OACTIVE to see if the port is busy.David Gwynne
dont check if its busy at all, actually. fine with reyk@
2015-11-21remove completely pledge_socket() from listen(2) and accept(2).Sebastien Marie
with pledge_socket(p, -1, state) we only check for "dns" promise against SS_DNS socket. But it isn't possible to pass a SS_DNS socket to listen(2) or accept(2) (EINVAL). So this deeper check is a bit useless... ok deraadt@
2015-11-21Add V4L2_FMT_FLAG_EMULATEDIngo Feinerer
2015-11-21Drop sysctl leftovers.Visa Hankala
2015-11-21simplify ifq_deq_rollback by only having it unlock.David Gwynne
hfsc needed a rollback ifqop to requeue the mbuf because it used ml_dequeue in the begin op. now it uses MBUF_LIST_FIRST to get a ref to the first mbuf in deq_begin. now the disciplines dont need a rollback op, so ifq_deq_rollback can be simplified to just releasing the mutex. based on a discussion with kenjiro cho
2015-11-21error: too many arguments to function 'ifq_deq_begin'David Gwynne
found by deraadt@
2015-11-21provide MBUF_LIST_FIRST and MBUF_LIST_NEXT for iterating over an mbuf_list.David Gwynne
MBUF_LIST_FOREACH is then rewritten on top of those. this makes it easier to get at the head of a list too, which may make the hfsc ifq backend nicer. based on a discussion with kenjiro cho ok mpi@
2015-11-20Neuter the pledge domain checking for listen, getpeername, and getsocknameTheo de Raadt
also. The idea is much like rpath is with files, you get an fd and then you can play with it somewhat. In the socket space once you have a fd, you can play with it somewhat. So you cannot bind, but you can accept. You can listen, getpeername, getsockname, and of course set/getsockopt is somewhat available.. yes, this makes pledge the anti-capsicum, kind of like salt from Secovlje.. reasoning due to a conversation with tedu
2015-11-20Permit msync(2) in the "stdio" set; only a few programs use it relatedTheo de Raadt
to mmap, but thinking about it nothing feels risky Long discussions with florian
2015-11-20Add pledge "disklabel", which allows sysctl kern.rawpartition, aTheo de Raadt
few disklabel ioctls, and the DIOCMAP ioctl against /dev/diskmap used to translate duid numbers into partitions. This will allow pledging of at least 12 disk/filesystem aware programs; due to the negative impact that diff will wait a bit so everyone has a chance to update their kernels. ok semarie
2015-11-20Make cnmac compile again after IF_DROP() removal. Just bail out if theVisa Hankala
link is down. ok mpi@
2015-11-20Missed in previous, pointed by benoit@Martin Pieuchot
2015-11-20Initialise the ifidx to 0 (no interface) in rtredirect() to avoid usingJonathan Gray
ifidx uninitialised for the gateway not directly reachable case. ok mpi@
2015-11-20Revert all the changes to run the tx completion path wihtout holding theMartin Pieuchot
KERNE_LOCK. A piece is still not right as many peole reported a "watchdog timeout" problem. This basically brings us back to r1.305. ok dlg@, jmatthew@
2015-11-20Check for space on the ring before dequeuing packets.Martin Pieuchot
Allows us to get rid of mq_requeue(9) and IFQ_POLL(9) because wireless drivers use a special queue for management frames. Tested by stsp@, ok dlg@, stsp@
2015-11-20Keep if_ref() private, if_get() is what you want to use before if_put().Martin Pieuchot
The thread detaching an interface will sleep until all references to this interface have been released. So we decided to only keep references for a short period of time. Keeping if_ref() private will hopefully help preserve this goal as long as it makes sense. Calling if_get()/if_put() in the same function also allows us to make use of static analysis tools (thanks jsg@!) to catch our errors. ok dlg@
2015-11-20Prefer if_get() over if_ref() when checking if the interface has beenMartin Pieuchot
destroyed during our sleep. No objection from the slackers.
2015-11-20sppp(4) is now only used for pppoe(4) which doesn't use framing, so removeStuart Henderson
support for sppp with framing, simplifying things. Remove unused ifdefs while there. "sppp will go away before it gets used for something else" dlg@