summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-24Introduce Linux work queue APIs and use them. As a side-effect, this willMark Kettenis
move some of the work from the system task queue to the driver-specific task queue. ok jsg@
2015-06-24Remove a couple of unused and old #defines that discussed phys and virtMike Larkin
address widths in 1st-gen amd64 cpus. ok kettenis, deraadt, guenther
2015-06-24Fix npppd to terminate all PPP sessions properly even in case theYASUOKA Masahiko
sending window for L2TP control is full when the control is terminating (by a L2TP keepalive failure or other reasons). In that case, if the L2TP peer didn't respond at all, npppd had kept some PPP sessions forever.
2015-06-24syncTheo de Raadt
2015-06-24Use the return value of event_loop() properly. Also abort(3) ifYASUOKA Masahiko
event_loop() returns abnormally which is unexpected. diff from Yuuichi Someya
2015-06-24Improve and fix typo in the comment.YASUOKA Masahiko
2015-06-24Mention that pipex should be also configured by sysctl.YASUOKA Masahiko
2015-06-24reenable the pool gc task.David Gwynne
the problems it tickled by working outside the biglock on archs with mutex and clock interaction have been fixed, as evidenced by the softnet taskq. ok deraadt@
2015-06-24Apply normal handling to atfd+path args to chflagsat(2)Philip Guenther
Problem noted by patrick keshishian (sidster (at) boxsoft.com) ok deraadt@
2015-06-24Revert previous commit. We still want to call setgroups in the case whereDarren Tucker
there are zero groups to remove any that we might otherwise inherit (as pointed out by grawity at gmail.com) and since the 2nd argument to setgroups is always a static global it's always valid to dereference in this case. ok deraadt@ djm@
2015-06-23Add regress test for multiple negation characters.Todd C. Miller
2015-06-23POSIX specifies that that multiple '!' characters preceding aTodd C. Miller
function should be treated as a single negation. From FreeBSD via Liviu Daia.
2015-06-23Disable some of the pmap_emulate_reference() DEBUG checks if optionMiod Vallat
MULTIPROCESSOR, and quote the alpha ARM to explain why; while there, make the failure messages a bit more detailed.
2015-06-23In the copy(9) function, make sure to remember curproc accross the bcopy()Miod Vallat
call, instead of &curproc. The copy routine may sleep and we may resume on a different processor. This has been plaguing the alpha MULTIPROCESSOR kernels since the very beginning; it's amazing this did not cause more havoc. Joint debugging and hair pulling with dlg@ and deraadt@; ok dlg@
2015-06-23Fix the optional lua patterns test with obj and different versions.Reyk Floeter
2015-06-23add httpd regresssemarie
2015-06-23add regress tests for httpdsemarie
- this testsuite covers patterns
2015-06-23various tweaks;Jason McIntyre
2015-06-23escape the matched substrings before using it in expansion.semarie
ok reyk@
2015-06-23remove a deprecated character class.semarie
it was deprecated in lua code, but here the code is new. The documentation don't mention it either. ok reyk@
2015-06-23Add STANDARDS section; isblank(3) was specified in C99.Anthony J. Bentley
ok jung@ jmc@
2015-06-23Add initial support for pattern matching using Lua's pattern matching code.Reyk Floeter
With important help on the pattern matcher from semarie@ OK semarie@
2015-06-23This patch ensure that when an error is detected, the freed variables insemarie
elf_symloadx() are reinitialised. Else show_file() in nm.c will used these variables, even if they has just been freed. (nm.c +689). Problem found by afl. ok miod@
2015-06-23This patch ensure that e_shentsize (sections header's size in bytes) issemarie
big enough to fill at least one Elf_Shdr. While here, inverts calloc() arguments to be calloc(nmemb, size), according to fread() call after. This problem was found with afl, with e_shentsize=1. ok miod@
2015-06-23corrects a read after bound that occurs in strcmp (line justsemarie
after the added bound check). Found with afl. ok miod@
2015-06-23If the kernel symbols fit completely into the 2 MB alignment holeAlexander Bluhm
after kernel bss but before end of the image, the page tables used the read-only mapping of the hole. When booting a small non-generic kernel, this resulted in a crash, while writing to the page tables later. Make sure that the page tables are created after esym and after end. OK mlarkin@ deraadt@
2015-06-23add some check before accessing data:semarie
- if section header table is be present - consistency of section header table size ok miod@
2015-06-23Pass a "struct ifnet *" instead of a "struct arpcom *" to arpresolve().Martin Pieuchot
Most of the ARP layer already take an ifp pointer and this makes clear wich chunks of code are messing with ac_enaddr. Note that our Ethernet code assume that these pointer are interchangeable since the first element of the "struct arpcom" is a "struct ifnet".
2015-06-23fix emacs pkg namesGiovanni Bechis
2015-06-23delete more p==NULL checks; discussed with miod, kettenis, dlg beforeTheo de Raadt
2015-06-23Adapt bridge(4) to the new if_input() framework.Martin Pieuchot
Move bridge_input() outside of ether_input() in order to duplicate packets flowing through a bridge port before applying any transformation on mbufs. This saves a various m_adj(9)/M_PREPEND(9) dances and remove the bridge(4) hack from vlan(4). Tested by mxb <mxb AT alumni DOT chalmers DOT se> and kettenis@ ok bluhm@
2015-06-23Fix npppd to check the size of received GRE packets properly.YASUOKA Masahiko
2015-06-23Fix the problem when npppd receives a zero length 1701/udp packet. IfYASUOKA Masahiko
it receives such packets when the errno is not EAGAIN or EINTR, it had closed all L2TP sessions and stoppped the L2TP server. Also fix the receiving GRE packet since it potentially has the same problem.
2015-06-23Fix the links to pppx(4).YASUOKA Masahiko
diff from Fabian Raetz.
2015-06-23Change CBS_dup() to also sync the offset.Doug Hogan
Previously, CBS_dup() had its own offset. However, it is more consistent to copy everything. ok miod@ jsing@
2015-06-23Convert bytestringtest to individual checks and don't short circuit.Doug Hogan
The statements were chained together with OR which makes it more annoying to debug. Also, it was short circuiting all tests as soon as one function failed. Since the functions are independent, they should each run until error. Discussed with miod@ and jsing@
2015-06-23Remove unnecessary regress target.Doug Hogan
2015-06-22Don't count successful partial authentication as failures in monitor;Damien Miller
this may have caused the monitor to refuse multiple authentications that would otherwise have successfully completed; ok markus@
2015-06-22Add an #ifdef HIBERNATE to allow to build a kernel without hibernate butAlexander Bluhm
with acpi. OK mlarkin@
2015-06-22Make it possible to create write combing mappings through /dev/mem. This isMark Kettenis
done by introducining a magic offset. Pages below this offset are mapped with default memory attributes. Above this offset pages are mapped write combining. ok mlarkin@
2015-06-22document that boot.conf can contain comments;Jason McIntyre
from tilo stritzky thanks miod for help with the diff, and who also noted that leading whitespace gets stripped too;
2015-06-22Increment rule counters only after successful state insertionMike Belopuhov
Do rule counter increments after state has been successfully installed. This has an additional benefit of making error handling a bit simpler. OK mpi, bluhm
2015-06-22Flush out another small diff to reduce the diffs with Linux.Mark Kettenis
2015-06-22theo buehler points out that posix specifies a prompt defined using -pJason McIntyre
be reinstated when toggled off then on again; this seems to make sense, but posix is not explicit. we know that gnu ed and freebsd do reinstate the user defined prompt, but we do not. no one has yet stepped up to change this, so i'm adding a note to this effect until such a time as we do/ i have not tweaked the text for -p or "P" to allow for an easy back out if behaviour does change;
2015-06-22Do not update frame lengths to reflect what has really been transferedMartin Pieuchot
when an isochronous transfer is done. Frame lengths are just input values and no driver mess with them. ok ratchov@, jmatthew@
2015-06-22Don't call setgroups if we have zero groups; there's no guarantee that itDarren Tucker
won't try to deref the pointer. Based on a patch from mail at quitesimple.org, ok djm deraadt
2015-06-22After the last change, we also have to url_encode $SERVER_NAME andReyk Floeter
$REMOTE_USER before using them in the Location. From Sebastien Marie (semarie)
2015-06-22Make xhci(4)'s root hub report the same status bits as physical USB3 hubs.Martin Pieuchot
There's not bit to indicate the speed of a USB3.0 device attached to a hub port so do not abuse the PORT_TEST bit. Instead make the xhci(4) root hub report the PORT_POWER_SS bit when appropriate and use it to determin the speed of a new device. While here make the root hub report the link state and config error, from FreeBSD.
2015-06-22rtrequest1(9) error code path cleanup.Martin Pieuchot
Pass the length to free(9), do not violate the radix/route layer and set the gateway of a route a bit later to simplify error code path. ok claudio@
2015-06-22Apparently some BIOSes not supporting xHCI natively switch USB portsMartin Pieuchot
back to EHCI at suspend. So route the ports back to xHCI at resume. Problem reported by Adam Wolk, thanks!