summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-08Move ELF_AUX_ENTRIES from exec_elf.h to exec_elf.c; it's totally internalPhilip Guenther
and not something we guarantee to userspace ok jca@
2017-02-08Change ELFNAME(read_from)'s buf parameter to be void*, eliminating a castPhilip Guenther
from all but one call ok jca@
2017-02-08elf{32,64}_check_brand() isn't used; delete itPhilip Guenther
ok jca@
2017-02-08Provide size-generic ELF_NO_ADDR in <sys/exec_elf.h> and use that insteadPhilip Guenther
of ELFDEFNNAME(NO_ADDR) ok jca@
2017-02-08Use ELF_ST_{BIND,TYPE} instead of ELFDEFNNAME(ST_{BIND,TYPE})Philip Guenther
ok jca@
2017-02-08Retry BS->ExitBootServices() if it fails.YASUOKA Masahiko
Reported by Ryan, pulse.purge at gmail.com
2017-02-08Move a pointer deref to after a NULL test.Jonathan Gray
ok krw@
2017-02-08Test for NULL before dereferencing a pointer not after.Jonathan Gray
ok krw@
2017-02-08Remove an uneeded NULL test which was after a deref.Jonathan Gray
ok mpi@ henning@ sashan@
2017-02-07Since the instruction cache does not in any way snoop the data cachePatrick Wildt
we need to make sure to clean the data and invalidate the instruction cache upon entering a page with pmap_enter(). Since it is possible that pmap_enter() does not directly enter the page, we need to do the same dance in the pmap fault fixup code. Every new writeable mapping or write removes a page's flag to mark it unflushed. The next time pmap_enter() is called or a fault happens on that VA, it has to be flushed and invalidated again. This was heavily discussed with Dale Rahn. On the Pine64 and Raspberry Pi 3 we have been very lucky to not run into any cache issues, especially with the instruction cache. The AMD Seattle seems to be a different kind of beast where we actually have to care about these things. This finally brings the machine into userland.
2017-02-07Remove deprecated SSH1 options RSAAuthentication andDarren Tucker
RhostsRSAAuthentication from regression test sshd_config.
2017-02-07Use percpu counters for icmpJonathan Matthew
ok dlg@ a while ago some input from jca@ who wrote the same diff
2017-02-07Error propagation does neither make sense for ip input path nor forAlexander Bluhm
asynchronous callbacks. Make the IPsec functions void, there is already a counter in the error path. OK mpi@
2017-02-07For consistency sake, apply the inner shareable attribute to the bootstrapPatrick Wildt
pagetables as well. Also replace the number for write-back with a proper define.
2017-02-07The default frequency we chose for the generic timer does not always ringPatrick Wildt
true. Instead, unless overwritten by the device tree, we should ask the generic timer for its frequency. This fixes time on my AMD Seattle and should improve time management on QEMU as well.
2017-02-07syncTheo Buehler
2017-02-07There are 1023 possible values for the interrupts, but our masks limitPatrick Wildt
these currently to 255. Thus making it impossible to use higher IRQs than that. The AMD Seattle SoC though seems to provide 448 IRQs, which is kind of out of bounds, so raise them to the proper values. This makes interrupts work on that machine.
2017-02-07Do not clear the scroll region, instead set it to the scroll region weNicholas Marriott
actually want.
2017-02-07IPsec packets could be dropped unaccounted if output after cryptoAlexander Bluhm
failed. Add a counter for that case. OK dhill@
2017-02-07Remove a debugging leftover.Nicholas Marriott
2017-02-07Ox on its own line;Jason McIntyre
2017-02-07Reduce the per-packet allocation costs for crypto operations (cryptop)Patrick Wildt
by pre-allocating two cryptodesc objects and storing them in an array instead of a linked list. If more than two cryptodesc objects are required use mallocarray to fetch them. Adapt the drivers to the new API. This change results in one pool-get per ESP packet instead of three. It also simplifies softraid crypto where more cryptodesc objects are allocated than used. From, with and ok markus@, ok bluhm@ "looks sane" mpi@
2017-02-07DECSLRM in xterm(1) appears to have a quirk where it can generate anNicholas Marriott
extra scroll of the entire terminal; issuing DECSTBM first prevents this. Do that for now.
2017-02-07Adapt regex in syslogd test to the new shiny libssl error messages.Alexander Bluhm
2017-02-07Revert previous; the implementation is incorrect since it assumes that theJoel Sing
provided error code matches the error that is currently on the top of the error stack.
2017-02-07No longer need to unlock the netlock since the upper layer is doing it.Martin Pieuchot
Found by Hrvoje Popovski.
2017-02-07Update to terminfo-20170128.Nicholas Marriott
2017-02-07The return code of crp_callback is never checked, so it is notAlexander Bluhm
useful to propagate the error. When an error occurs in an asynchronous network path, incrementing a counter is the right thing. There are four places where an error is not accounted, just add a comment for now. OK mpi@ visa@
2017-02-07Enable the short slot time feature in 802.11n mode.Stefan Sperling
ok mpi@
2017-02-07Unfortunately DECFRA does not handle default colours properly (it doesNicholas Marriott
not reset colours when in SGR 0), so we can't use it without more trouble than it is worth. Abandon the idea for now.
2017-02-07Remove unused variable in C source to make the test compile and pass.Alexander Bluhm
2017-02-07Include <netinet/in.h> to get in_addr_t and in_port_t compiled.Alexander Bluhm
2017-02-07/tmp/cvsspEkokReyk Floeter
2017-02-07Improve parsing of the HTTP request lineReyk Floeter
Make sure that the beginning of a new request starts with an alphabetic character. This is a quick way to detect non-ASCII requests (eg. TLS on port 80). The full validation of the request method is done once the input line is read. Make sure that non-terminated lines do not exceed the SERVER_MAXHEADERLENGTH which is 8k. As the current read watermark is set to 64k, this means that the limit check is triggered after max. 64k of input, depending on the TCP read buffer. OK benno@ jsing@
2017-02-07Fix Xr: syspatch(1) -> syspatch(8)Theo Buehler
2017-02-07Make the 'incomplete header' message debug onlyMike Belopuhov
2017-02-07syncTheo Buehler
2017-02-07Hook installurl.5 to build.Theo Buehler
2017-02-07Inline the example section: this looks better, makes 'mandoc -Tlint' happyTheo Buehler
and avoids giving the impression that one should follow the link to find examples. jmc agrees; go ahead rpe
2017-02-07Release the NET_LOCK() before entering per-driver ioctl() routine.Martin Pieuchot
This prevents a deadlock with the X server and some wireless drivers. The real fix is to take unix domain socket code out of the NET_LOCK(). Issue reported by pirofti@ and ajacoutot@ ok tb@, stsp@, pirofti@
2017-02-07Add installurl to FILES and SEE ALSO.Antoine Jacoutot
2017-02-07pull struct mfi_evtarg_pd_state out of struct mfi_evt_detail.David Gwynne
this lets me pass the specific argument to an aen handler in mfii. it also unbreaks the tree. found by jmatthew@
2017-02-07enable per cpu caches on the mbuf pools.David Gwynne
this didnt make sense previously since the mbuf pools had item limits that meant the cpus had to coordinate via a single counter to make sure the limit wasnt exceeded. mbufs are now limited by how much memory can be allocated for pages from the system. individual pool items are no longer counted and therefore do not have to be coordinated. ok bluhm@ as part of a larger diff.
2017-02-07move the mbuf pools to m_pool_init and a single global memory limitDavid Gwynne
this replaces individual calls to pool_init, pool_set_constraints, and pool_sethardlimit with calls to m_pool_init. m_pool_init inits the mbuf pools with the mbuf pool allocator, and because of that doesnt set per pool limits. ok bluhm@ as part of a larger diff
2017-02-07add m_pool_init(), a wrapper around pool_init for mbuf clusters.David Gwynne
m_pool_init is basically a call to pool_init with everythign except the size and alignment specified, and a call to pool_set_constraints so the memroy is always dma reachable. it also wires up the memory with the custom mbuf pool allocator. ok bluhm@ as part of a larger diff
2017-02-07provide a custom pool page allocator for mbufs, but dont use it yet.David Gwynne
the custom allocator is basically a wrapper around the multi page pool allocator, but it has a single global memory limit managed by the wrapper. currently each of the mbuf pools has their own memory limit (or none in the case of the myx pool) independent of the other pools. this means each pool can allocate up to nmbclust worth of mbufs, rather than all of them sharing the one limit. wrapping the allocator like this means we can move to a single memory limit for all mbufs in the system. ok bluhm@ as part of a larger diff
2017-02-07export the multi page allocator so other things can explicitly use it.David Gwynne
2017-02-07Test for NULL before dereferencing a pointer not after.Jonathan Gray
2017-02-07handle physical disk state changes.David Gwynne
more specificially we probe the disk if it goes from UNCONFIGURED_GOOD to a SYSTEM disk, and detach it if goes from being a SYSTEM disk to anything else. this semantic comes from the lsi^Wavago code in the illumos mr_sas driver. seems to work fine. i think this covers all the ways a passthru disk can transition on these boards.
2017-02-07i got the MFII_TASK_MGMT flags round the wrong way.David Gwynne