summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-19add some more intel cpuid modelsJonathan Gray
ok kettenis@
2011-04-19Fix potential null dereference.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok marco@ krw@
2011-04-19/etc/security does not exist any longer,Ingo Schwarze
so stop it from trying to check itself for changes; noticed by Mattieu Baptiste <mattieu dot b at gmail dot com>.
2011-04-19Fix potential null dereference.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok henning@
2011-04-19Remove dead assignments and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok miod@ jsg@
2011-04-19Fix dead store. Instead of just remove it, use it properly.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok miod@ krw@
2011-04-19UUCP is no longer contained in the base system, so its home directoryIngo Schwarze
does not require special permissions. The security(8) scripts hates group-writeable home directories, so remove the needless permissions. Issue noticed by Andrew Fresh <andrew at afresh1 dot com>. If i understand naddy@ correctly, this is unlikely to harm even UUCP users. "Just remove the group writeable bit" deraadt@.
2011-04-19When mode-mouse is on (it is off by default), automatically enter copyNicholas Marriott
mode when the mouse is dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel is scrolled off the bottom. Discussed with and written by hsim at gmx dot li.
2011-04-19Disable the 88110 branch prediction logic unconditionnaly on all 88110Miod Vallat
revisions; despite what the ``official'' (yet unpublished, confidential proprietary, will cause a tree to fall on your house if you quote it, etc) errata says, disabling data decoupling is not enough to workaround its malfunction in processor revisions 5.x. Enough missing-SFU instructions (each causing a `disabled SFU' trap) in a tight loop will eventually (but quickly) trigger the (unrecoverable, not even by NMI) processor hang. Of course, most such instructions are not privileged, and can be easily issued by an evil userland process; crashme happens to be a good example of this, when invoked with the proper settings (which are left as an exercise to the reader). Now, can I have my hair back? Come on! Please... pretty please... with sugar on top... people are looking at my head, you know.
2011-04-19ident searches for $keyword:... $, not $keyword:...$;Jason McIntyre
from Alexis Fouilhe ...and i just know cvs is gonna mess up this commit message
2011-04-19Cease to pretend RAW SCSI mode exists. Eradicate all traces.Kenneth R Westerback
2011-04-19POSIX only guarantees uname() will return a non-negative value onMatthew Dempsky
success. ok nicm@
2011-04-19Add missing call to pmap_update() in km_alloc().Matthew Dempsky
ok deraadt@, miod@
2011-04-19make same changes regarding -f/-F argument (tempfile -> file) as was doneAlexander Hall
in disklabel(8) pointed out by jmc@
2011-04-19Free the correct pages when we failed to allocate va.Artur Grabowski
2011-04-19Rename the argument for -f and -F from 'tempfile' to 'file'Alexander Hall
ok krw@ and looks correct to jmc@
2011-04-19use "orl" to test the return value from an interrupt handler not "orq"David Gwynne
since its an int, not a long. ok deraadt@
2011-04-19zap trailing whitespace;Jason McIntyre
2011-04-19reintroduce using the RB tree for local address lookups. this isDavid Gwynne
confusing because both addresses and broadcast addresses are put into the tree. there are two types of local address lookup. the first is when the socket layer wants a local address, the second is in ip_input when the kernel is figuring out the packet is for it to process or forward. ip_input considers local addresses and broadcast addresses as local, however, the handling of broadcast addresses is different depending on whether ip_directedbcast is set. if if ip_directbcast is unset then a packet coming in on any interface to any of the systems broadcast addresses is considered local, otherwise the broadcast packet must exist on the interface it was received on. the code also needs to consider classful broadcast addresses so we can continue some legacy applications (eg, netbooting old sparcs that use rarp and bootparam requests to classful broadcast addresses as per PR6382). this diff maintains that support, but restricts it to packets that are broadcast on the link layer (eg, ethernet broadcasted packets), and it only looks up addresses on the local interface. we now only support classful broadcast addresses on local interfaces to avoid weird side effects with packets routed to us. the ip4 socket layer does lookups for local addresses with a wrapper around the global address tree that rejects matches against broadcast addresses. we now no longer support bind sockets to broadcast addresses, no matter what the value of ip_directedbcast is. ok henning@ testing (and possibly ok) claudio@
2011-04-19Include USB vendor and product ids when manufacturing a unique disk idMatthew Dempsky
from a USB serial number, as recommended by the umass spec. ok dlg@
2011-04-19don't hold a pointer to "listen" structure. Instead, when it mustAlexandre Ratchov
be free()ed, iterate over the file_list, and find the structure to free. This is safer and simpler. No behaviour change
2011-04-18reorder macros, no object changeAlexandre Ratchov
2011-04-18Adjust after removal of /etc/security to /usr/libexec.Ingo Schwarze
More HISTORY. Using feedback from jmc@. "I think that is correct. If it isn't, someone out there will eventually moan :)" deraadt@
2011-04-18slightly cleanup by separating socket-specific code fromAlexandre Ratchov
protocol specific code. No behaviour change
2011-04-18read(2) returns ssize_t. So use a ssize_t to store and test theKenneth R Westerback
return value, not a size_t which does not grok -1. ok matthew@
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-18Perl security fix for CVE-2011-1487:Alexander Bluhm
ucfirst(), uc() and lc() forget to set the tainted flag if input was marked as tainted. http://rt.perl.org/rt3/Public/Bug/Display.html?id=87336 http://perl5.git.perl.org/perl.git/commitdiff/539689e74a3bcb04d29e4cd9396de91a81045b99 ok millert@
2011-04-18As deraadt@ points out, the history section is not quite right.Thordur I. Bjornsson
Rather then rewriting history, I've chosen to erase it; as it contains only pointless trivia... ok deraadt@
2011-04-18The mouse should only work in copy mode if mode-mouse is set, not justNicholas Marriott
mouse-select-pane.
2011-04-18sort SEE ALSO;Jason McIntyre
2011-04-18people (should) bump REVISION nowadays.Jasper Lievisse Adriaanse
ok espie@
2011-04-18Add an option (mouse-select-window) which allows the mouse to be used byNicholas Marriott
clicking on the status line, written by hsim at gmx dot li.
2011-04-18Put back the change of pool and malloc into the new km_alloc(9) api.Artur Grabowski
The problems during the hackathon were not caused by this (most likely). prodded by deraadt@ and beck@
2011-04-18yeouchMarc Espie
2011-04-18do not print 'starting local daemons' if rc_scripts is emptyRobert Nagy
asked by/ok deraadt@, ajacoutot@
2011-04-18Update Test::Simple to 0.98Jasper Lievisse Adriaanse
ok millert@
2011-04-18Deprecate vnds in favour of svnds.Thordur I. Bjornsson
In effect, this removes the "old" vndX nodes, and renames the svndX nodes to vndX. Old svndX nodes will still continue to work though, for now. Cleanup accordingly. ok deraadt@, todd@ comments and ok on the man page bits from jmc@
2011-04-18remove the old style by-pass-the-buffer-cache vnd code.Thordur I. Bjornsson
this will treat vndX the same as svndX. ok and gcc2 fixes from deraadt@
2011-04-18Print size_t with %zu and ssize_t with %zd in error/debug output.Kenneth R Westerback
Not %d or %u. May help some of the issues reported by Richard Toohey. Tested by Steven R. Gerber.
2011-04-18Improve the iked acquire mode peer <-> policy matching. This changeReyk Floeter
picks the peer from the acquire message and allows to match masked peers in the policies like "peer any" or "peer 10.0.0.0/8" instead of requiring exactly matching peer specifications. ok mikeb@
2011-04-18When the kernel wants to acquire an SA for an unknown flow, lookup aReyk Floeter
matching policy and init a new IKE SA. This adds support for "acquire mode" from static flows. ok mikeb@
2011-04-18- update List::Util to 1.23, as needed by newer p5-POEJasper Lievisse Adriaanse
tested in bulk build. ok millert@
2011-04-18Fix a bug where OBSOLETE_FILES would contain only the last appendedAntoine Jacoutot
occurence. with a small tweak from an ok sthen@
2011-04-18ido not disable interrupts in the isr and then enable them againDavid Gwynne
when leaving. when you're handling an interrupt it is masked. whacking the chip is work for no gain. modify the interrupt handler so it only processes the rings once rather than looping over them until it runs out of work to do looping in the isr is bad for several reasons: firstly, the chip does interrupt mitigation so you have a decent/predictable amount of work to do in the isr. your first loop will do that chunk of work (ie, it pulls off 50ish packets), and then the successive looping aggressively pull one or two packets off the rx ring. these extra loops work against the benefit that interrupt mitigation provides. bus space reads are slow. we should avoid doing them where possible (but we should always do them when necessary). doing the loop 5 times per isr works against the mclgeti semantics. it knows a nic is busy and therefore needs more rx descriptors by watching to see when the nic uses all of its descriptors between interrupts. if we're aggressively pulling packets off by looping in the isr then we're skewing this check. ok deraadt@
2011-04-18since the pciide driver's interrupt handler can return -1 during hotplugTheo de Raadt
eject events, then the ppb's interrupt handler can be run at IPL_BIO. This makes a huge difference on modern server with mpi/bge/bnx. In snapshots for about 2 weeks now...
2011-04-18keep an eye out for wdc registers returning 0xff. if they return 0xff,Theo de Raadt
this probably means the controller is dead -- as in, a hot plug eject event. in that case, mark the driver dead and try harder to return -1 in the interrupt handler. tested by many ok dlg, miod did not object
2011-04-18Remove a header file that is only supposed to be used by the kernel.Theo de Raadt
2011-04-18certificate options are supposed to be packed in lexical order of optionDamien Miller
name (though we don't actually enforce this at present). Move one up that was out of sequence
2011-04-18Change all aml_xfoo to aml_foo names now that parser is stableJordan Hargrave
2011-04-18tweak previous;Jason McIntyre