summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-04-29Panic when attempting to execute a scsi command with no disciplineKenneth R Westerback
defined. Carrying on is pointless. And will currently cause a NULL pointer deref anyway. NULL deref found by mmcc@ and his friend clang. ok deraadt@
2016-04-29Do not remove local symbols from the table.Martin Pieuchot
ddb(4) can now see static functions. That doesn't mean we should start declaring functions as ``static'', however it helps for the few existing exceptions. ok deraadt@, kettenis@
2016-04-29Do not allow to change the routing table of a bound socket. ThisAlexander Bluhm
is not intended and will behave unexpectedly if the address is already used in another domain. It did not work anyway, as the PCB ended in the wrong hash bucket after changing the rtable. Fail with EBUSY if the socket is already bound and rehash the PCB if its rtable changes. input claudio@; OK mpi@
2016-04-29Make if_output() return EAFNOSUPPORT instead of just dropping packetsKenneth R Westerback
and pretending the output succeeded. Packets are still dropped! Idea from jsg@ following same change to bridge(4). ok mpi@
2016-04-28careful study of the holy scrolls reveals that for pselect (and ppoll)Ted Unangst
oversized timespecs should be clamped, not rejected. ok millert
2016-04-28Preserve the domid when swapping 16 bit grant table entry flagsMike Belopuhov
We use an atomic CMPXCHG on first 32 bits of the grant table entry when revoking access to the memory page. Target domain ID field is part of these 32 bits, thus shouldn't be masked out for comparison. This appears to be the last piece of the QubesOS VM chaining puzzle; tested by Marco Peereboom, thanks!
2016-04-28Rework handling of frames which fall beyond the block ack window.Stefan Sperling
tb@ discovered that we were not following the 802.11-2012 standard correctly for frames which fall within the range [winend, windend+winsize]. This could cause valid frames to be dropped because we moved the window too far ahead. with and ok tb@
2016-04-28Add a net80211 stat counter for block ack window "slides" as opposedStefan Sperling
to "jumps". Will be used soon by refined block ack window handling. netstat needs to be recompiled. With and ok tb@
2016-04-281) Split pledge whitelist path handling out of pledge_namei() and intoBob Beck
pledge_namei_wlpath(). Call the wlpath check only at the end of namei after the namei lookup would otherwise succeed. 2) Add support to namei to keep the path that was looked up, without the symlinks in it, and use that path for whitelist path lookups. This means that paths in pledge whitelists will need to always be the real path to an intended file to whitelist, without symlinks. Any symlinks to the "real" file will then be allowed ok deraadt@ semarie@
2016-04-28When a frame which falls into the block ack window is received, clearStefan Sperling
counters that keep track of consecutive frames falling outside the window.
2016-04-28Copy some ieee8021_node HT information to userspace.Stefan Sperling
ifconfig needs to be recompiled. ok mpi@
2016-04-28fix logic bug in deciding if we have UVM_PLA_NOWAIT or not in buf_realloc_pagesBob Beck
noticed by miod@
2016-04-28Add a better implementation of iwn's update_htprot callback which usesStefan Sperling
the RXON_ASSOC command instead of clearing and restoring firmware state. This matches the behaviour of the Linux driver more closely. However, for now, keep this implementation disabled and do _nothing_ when HT protection changes. For some unknown reason, updating HT protection seems to be related to subsequent Tx errors and block ack session instablity. We'll see how this approach works out in the wild. Please report any issues. ok tb@
2016-04-28Reduce block ack gap timeout to 300 msec in order to reduce Rx latency.Stefan Sperling
This value seems to be a sweet spot. testing and ok tb@
2016-04-28correctly set up byteswapping so this chip works on big endian archsDavid Gwynne
this, plus the m_adj fix before, makes xge work on sparc64 from marisa emerson
2016-04-27factor out ipsec into ip6_output_ipsec_{lookup,send}(); ok mpi@, naddy@Markus Friedl
2016-04-27Expand and remove macro OCTEON_ETH_TAP.Visa Hankala
2016-04-27minor spacing nitMike Larkin
2016-04-27Remove unused arguments from rt_checkgate().Martin Pieuchot
Since the rtalloc(9) rewrite no route lookup is done in this function so there's no need for a destination or a rtable ID.
2016-04-27whitespace fixes, no functional changeDavid Gwynne
largely done by marisa emerson
2016-04-27align rx buffers so ip packets will be aligned correctly for the stackDavid Gwynne
this matters more for strict alignment archs than the ones xge currently runs on. from marisa emerson
2016-04-27tweak some command list handlingDavid Gwynne
prefix the arrays with xge_, make them const, and use nitems to iterate over them. move xge_setup_xgxs_xena to iterating over a list of commands instead of doing a long series of register writes in code. from marisa emerson, who tested on both xena and herc boards
2016-04-27mbuf tags are in an SLIST, so we need queue.h after all.David Gwynne
found by deraadt@
2016-04-27Add some stat counters for events related to 802.11n.Stefan Sperling
netstat(1) needs to be recompiled to work with new kernel. ok deraadt mpi
2016-04-27Pad struct ext2fs out to 1024 (a.k.a. ext2fs SBSIZE) bytes. SatisfiesKenneth R Westerback
assumptions in fsck_ext2fs and eliminates spurious "VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE" messages. Part of the problem reported to bugs@ by Lampshade. ok beck@
2016-04-27G/C DDB_REGS.Martin Pieuchot
2016-04-27Stop using DDB_REGS.Martin Pieuchot
ok dlg@
2016-04-26Remove debug printfs, but do print "gpio" to indicate that card detection isMark Kettenis
done through a gpio pin instead of the standard register.
2016-04-26Populate all necessary statfs members in .vfs_statfs. cd9660, udf,Martin Natano
msdosfs and nfsv2 don't set f_namemax. ntfs and ext2fs don't set f_namemeax and f_favail. fusefs doesn't set f_mntfromspec, f_favail and f_iosize. Also, make all filesystems use copy_statfs_info(), so that all statfs information is filled in correctly for the (sb != &mp->mnt-stat) case. ok stefan
2016-04-26copy_statfs_info() is not only used by ufs, but by other filesystems too,Martin Natano
so make sure that all members of mp->mnt_stat.mount_info are copied. ok stefan
2016-04-26missed a block of code while merging the previous change.Mike Larkin
2016-04-26Add decode functions for some of the MSRs that are commonly used. OnlyMike Larkin
compiled when VMM_DEBUG is enabled, and only used during VM crash.
2016-04-26Convert some magic numbers into #defines - this is needed for some MTRRMike Larkin
decoding code I'm working on for vmm(4) debugging. No functional change.
2016-04-26Display correct value in error message.Kenneth R Westerback
2016-04-26Do NOT attempt a rebuild using a hot spare with a sector sizeKenneth R Westerback
greater than the sector size of the softraid volume. i.e. 512-byte hot spares should work on 4096-byte volumes but 4096-byte hotspares will not work on 512-byte volumes. Pointed out, errors corrected and ok jsing@
2016-04-26Restore intro comment to sr_hotspare_rebuild(), which was erroneouslyKenneth R Westerback
replaced by comment for first chunk of code. Pointed out by jsing@.
2016-04-26KNF / spacingMike Larkin
2016-04-26sc_resume_ch is used nowhere.Visa Hankala
2016-04-26Drop an unused workaround which does not even compile.Visa Hankala
2016-04-26fix off by one in vfs_vnode_print - found by miodBob Beck
ok deraadt@, krw@
2016-04-26corrects acpitz problem with active cooling and hysterisisSebastien Marie
"if the temperature is below the active cooling level for a tz, turn the fan off regardless of what state it is currently in" ok mlarkin@
2016-04-26No good reason to retain comments about old DTYPE_CRYPTO or DTYPE_SYSTRACETheo de Raadt
values.
2016-04-26more systrace goes awayTheo de Raadt
2016-04-26Match on RTS522A. Found in 2016 thinkpads.Jonathan Gray
Tested by Bryan Vyhmeister on x260.
2016-04-25remove systrace remnantsTed Unangst
2016-04-25remove systraceTed Unangst
2016-04-25boom goes the dynamiteTed Unangst
2016-04-25when returning from vmd with an unknown exit reason, print the name of theMike Larkin
exit in addition to the exit code.
2016-04-25spacing / KNF error in earlier commitMike Larkin
2016-04-25unlink systrace from the build. pledge is the glorious future that awaits.Ted Unangst
the rest of systrace to be deleted in a serious of followup commits. ok from larger openbsd developer community