summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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!
2015-06-21Don't use uninitialized data as a return value.Kenneth R Westerback
From Brainy via Maxime Villard via tech@. ok kettenis@
2015-06-21Don't leak mem if wsfont_rotate() fails.Jeremie Courreges-Anglas
Problem reported by Maxime Villard, ok miod@
2015-06-21Count transmitted packets.Mark Kettenis
2015-06-21syncTheo de Raadt
2015-06-21syncTheo de Raadt
2015-06-215.9 base keyTheo de Raadt
2015-06-21Check for failure with CBB_init() in bs_ber.c.Doug Hogan
From BoringSSL commit 3fa65f0f05f67615d9daf48940e07f84d094ac6e.
2015-06-21When encoding the Location url, only encode the query and pathReyk Floeter
elements from the user input and not the constants from the configuration. This makes it possible to specify chars like '?' in the uri. OK Sebastien Marie
2015-06-21There is a race between sending notifications to the SE and getting a newClaudio Jeker
peer_up event in the RDE. This can be triggered by graceful restart. So remove the panic and replace it with roughly what peer_down does. OK phessler and henning
2015-06-21Add .mkv (video/x-matroska).Reyk Floeter
From David Hill ok halex@
2015-06-21There is no need to include sys/ucred.h. Only sys/file.h is needed for theClaudio Jeker
DTYPE defines.
2015-06-21Just return if nmemb is 0. Avoids a NULL dereference and isTodd C. Miller
consistent with the behavior of the other libc sort functions. OK deraadt@
2015-06-21memory leak on failure; from Maxime VillardTheo de Raadt
2015-06-20Fix a bug that causes uvm_pmr_get1page() to fail for allocations thatMark Kettenis
specify an address constraint even when free pages that meet the constraint are still available. This happens because the old code was using the root of the size tree as a starting point for a search down the address tree. This meant only part of the address tree was searched, and that part could very well not contain any of the pages that met the constraint. Instead, always walk the address tree from its root if the list of single pages is empty and the root of the size tree doesn't meet our constraints. From Visa Hankala. ok deraadt@
2015-06-20Convert ssl3_get_new_session_ticket to CBS.Doug Hogan
tweak + ok miod@ jsing@
2015-06-20Convert ssl3_get_next_proto to CBS.Doug Hogan
tweak + ok miod@ jsing@