summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-18update links; from rayJason McIntyre
2016-05-18Reduce quadruple negation to double negation;Ingo Schwarze
from Edgar Pettijohn <edgar at pettijohn minus web dot com>. OK jmc@ deraadt@ While here, remove two instances of inconsistent future tense.
2016-05-18In hostap mode, don't re-use association IDs (AIDs) of nodes which areStefan Sperling
still lingering in the node cache. This could cause an AID to be assigned twice, once to a newly associated node and once to a different node in COLLECT cache state (i.e. marked for future eviction from the node cache). Drivers (e.g. rt2860) may use AIDs to keep track of nodes in firmware tables and get confused when AIDs aren't unique across the node cache. The symptom observed with rt2860 were nodes stuck at 1 Mbps Tx rate since the duplicate AID made the driver perform Tx rate (AMRR) accounting on the wrong node object. To find out if a node is associated we now check the node's cache state, rather than comparing the node's AID against zero. An AID is assigned when a node associates and it lasts until the node is eventually purged from the node cache (previously, the AID was made available for re-use when the node was placed in COLLECT state). There is no need to be stingy with AIDs since the number of possible AIDs exceeds the maximum number of nodes in the cache. Problem found by Nathanael Rensen. Fix written by Nathanael and myself. Tested by Nathanael. Comitting now to get this change tested across as many drivers as possible.
2016-05-18Move the code to update an ARP cache into its own function.Martin Pieuchot
ok visa@
2016-05-18Fix several nitpicks in iwm(4).Stefan Sperling
Move some declarations to if_iwmreg.h so we can use iwm_phy_db_* prototypes. Remove redundant declaration of iwm_send_phy_db_data(). Remove pointless iwm_fw_alive(); just call iwm_post_alive() directly. Simplify iwm_prepare_card_hw() and iwm_mvm_add_sta(). Return timeout error from iwm_apm_init(). Print a message when init (i.e. boot) firmware fails to load. Remove some commented-out code which wouldn't compile anyway. Move iwm_mvm_tx_fifo to if_iwmreg.h to match better where Linux puts it. ok kettenis@ mpi@
2016-05-18In iwm(4), add bit-polling in Rx-DMA init code path.Stefan Sperling
According to a comment in iwlwifi: * Clearing FH_MEM_RCSR_CHNL0_CONFIG_REG to 0 turns off Rx DMA. * Driver should poll FH_MEM_RSSR_RX_STATUS_REG for * FH_RSSR_CHNL0_RX_STATUS_CHNL_IDLE (bit 24) before continuing. ok kettenis@
2016-05-18Remove unused probe function.Mark Kettenis
ok patrick@
2016-05-18tabs vs spacesMike Larkin
2016-05-18add a check for the acpi trampoline data page to match the code checkMike Larkin
already there.
2016-05-18rename srp_finalize to srp_gc_finalizeDavid Gwynne
2016-05-18rework the srp api so it takes an srp_ref struct that the caller provides.David Gwynne
the srp_ref struct is used to track the location of the callers hazard pointer so later calls to srp_follow and srp_enter already know what to clear. this in turn means most of the caveats around using srps go away. specifically, you can now: - switch cpus while holding an srp ref - ie, you can sleep while holding an srp ref - you can take and release srp refs in any order the original intent was to simplify use of the api when dealing with complicated data structures. the caller now no longer has to track the location of the srp a value was fetched from, the srp_ref effectively does that for you. srp lists have been refactored to use srp_refs instead of srpl_iter structs. this is in preparation of using srps inside the ART code. ART is a complicated data structure, and lookups require overlapping holds of srp references. ok mpi@ jmatthew@
2016-05-18Split i386 mp hatch trampoline into code and data pages, and protect eachMike Larkin
with proper W^X policy. The same thing was done for amd64 late last year, catching i386 up now. Diff has been in snaps for a few days with no reported fallout. ok deraadt@
2016-05-18Accept cnmac as a valid rootdev from uboot on octeon.Visa Hankala
Example: rootdev=/dev/cnmac0 Patch from Kim Lidstrom, thanks!
2016-05-18Remove unnecessary cast of buflen to u_int in sockargs(). This wasTodd C. Miller
missed when buflen was promoted to size_t. OK tedu@
2016-05-18Remove obsolete caveat. OK deraadt@Todd C. Miller
2016-05-17Allow sendsyslog(2) with LOG_CONS even when /dev/console has notAlexander Bluhm
been opened during init(8). Only log with cnwrite() if cn_devvp exists, otherwise use cnputc() as fallback. While there move extern declarations to dev/cons.h. input and OK deraadt@
2016-05-17Refactor the handling of pledge and the optional user string: The threeTheo Buehler
way pledge introduced by millert@ in -r1.70 is now a two way pledge, one for non-root and one for root. This also ensures that root drops the id promise in all cases early on. This disentangling of the bits for root and non-root simplifies the code paths in all cases. ok millert@
2016-05-17Backout the previous fix for the sendsyslog(2) with LOG_CONS solution.Alexander Bluhm
Permanently holding /dev/console open in the kernel works only until init(8) calls revoke(2). After that the console device vnode cannot be used anymore. It still resulted in a hanging init(8) if it tried to syslog(3) something. With the backout also dmesg -s works again.
2016-05-17Fix a few more warnings such that this compiles again.Mark Kettenis
2016-05-17Move the code block that builds up a default seed further down in orderTheo Buehler
to reduce the noise in the next commit. While there, fix the indent level of a bit introduced in the previous commit. ok millert@
2016-05-17Enable -Wall -Werror. Fix warnings uncovered by this.Mark Kettenis
Set board IDs for i.IMX6 boards based on the "compatible" property of the root node for now to ease the transition to full FDT support in the kernel.
2016-05-17Fix a one-byte buffer underflow (read access only).Ingo Schwarze
This change touches code that only runs when REG_BASIC is given and the regular expression is anchored with ^ _and_ uses backreferences. The segfault could only be triggered when the ^ anchor was inside a leading () subexpression quantified with *. OK martijn@ Patch also proofread by Pedro Giffuni <pfg at FreeBSD dot org>.
2016-05-17Add support for passing an FDT. The bootloader will update the "bootargs"Mark Kettenis
property of the "/chosen" node to pass arguments to the kernel.
2016-05-17Change the random event buffer from a queue to an endless ring. This wayTed Unangst
we don't drop any events when the queue is full. They are instead mixed into previous events. The mixing function selected is addition instead of xor to reduce the possibility that new values effectively erase existing ones. Convert some types to u_int to ensure defined overflow. ok deraadt djm
2016-05-17Fix "skeyinit username" run as root. Also reduce the pledgeTodd C. Miller
promise when run as root since we don't need proc or exec as root. OK tb@, earlier version OK deraadt@
2016-05-17remove pam and shadow code that's not used. ok deraadt jcaTed Unangst
2016-05-17remove VOP_CLOSE and vput that will be handled in the epilogue.Ted Unangst
part of a diff by bytevolcano. ok jung
2016-05-17tyopJeremie Courreges-Anglas
2016-05-17Deprecate PLIST_DB. Prefer PLIST_REPOSITORY (same semantics, except thatMarc Espie
ARCH gets appended automatically)
2016-05-17Completely skip link-layer address resolution and NUD on gif(4).Martin Pieuchot
Tested by naddy@
2016-05-17Plug some gaping holes in the v4l2 ioctl interfaces that would leak kernelMark Kettenis
memory to a local user. Found by Patrick Keshisian. Fix a potential integer overflow issue in related code while I'm there. ok mglocker@, deraadt@
2016-05-17Document NOLOCK, from Michal Mazurek.Martin Pieuchot
2016-05-17Repair some file descriptor leaks.Theo de Raadt
ok beck krw millert
2016-05-17Enable the pcf8523 RTC on Hummingboard and CuBox-i.Mark Kettenis
ok patrick@
2016-05-16Attempt to clear the OS flag when we attach.Mark Kettenis
2016-05-16Add pcfrtc(4).Mark Kettenis
2016-05-16No need to store the return value of fcntl(fd, F_SETFL, flags).Todd C. Miller
OK jung@
2016-05-16Make this actually work. This makes the following changes:Mark Kettenis
- Move most of the bus setup stuff to imxiic_i2c_acquire_bus() - Move the teardown to imxiic_i2c_release_bus() - Always clear the IIF flag - Allow cmd and data for write operations. Some i2c operations are still rejected, but this works well enough to use pcfrtc(4). ok patrick@
2016-05-16Use OF_is_compatible(9) here.Mark Kettenis
ok patrick@
2016-05-16Introduce OF_is_compatible(9), a convenience function to check the "compatible"Mark Kettenis
property of an OFW/FDT node. ok deraadt@, pactrick@
2016-05-16uncomment the Xr for fuse_main(3); from rayJason McIntyre
2016-05-16fix logic in error code path of smtp state machine that can lead to anGilles Chehade
invalid state ending in fatal(), while at it plug a file pointer leak. ok eric@, millert@
2016-05-16i seemingly commented out an Xr in SEE ALSO in -r1.9 - correctJason McIntyre
that now. from ray
2016-05-16replace hardcoded + with TAG_CHARGilles Chehade
2016-05-16...and delete the GP setup. Should have been in previous commitPhilip Guenther
2016-05-16Eliminate cerror: use PAL_rdunique to get the TCB address directlyPhilip Guenther
ok deraadt@ kettenis@
2016-05-16POSTREAD needs to flush the D-cache since speculative loads might (and do)Mark Kettenis
bring back cache lines after a PREREAD. Eliminates random data corruption on my CuBox-i4Pro. ok jsg@
2016-05-16pcfrtc(4)Mark Kettenis
2016-05-16Driver for the NXP PCF8523 Real Time Clock.Mark Kettenis
2016-05-16Implement membar(9) for armv5. As there are no barrier instructions inJonathan Gray
armv5 this is just a "memory" clobber hint to the compiler. ok kettenis@