summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-04-20Fix possible NULL dereference for emul data. Okay miod@.Paul Irofti
2011-04-20Remove some includes and defines that are no longer needed, from MichaelNicholas Marriott
W Bombardieri.
2011-04-20Trivial code simplifying, from Michael W Bombardieri.Nicholas Marriott
2011-04-20Use -u when diff context is 3, from Michael W Bombardieri, tweaked byNicholas Marriott
millert.
2011-04-20Back out r1.10 of mutex.c as this breaks serial on hppa (at least for MP).Joel Sing
2011-04-20Implement correct prologue and epilogue for hppa64.Joel Sing
ok kettenis@
2011-04-20grammar fix; from Michael W. BombardieriJason McIntyre
2011-04-20Enhance sysmerge(8) output so that it is more readable and make it moreAntoine Jacoutot
clear if there are any warning/error or things that should be handled manually. e.g. output from going from 4.8 to current: # sysmerge -s etc49.tgz -x xetc49.tgz ===> Populating temporary root under /var/tmp/sysmerge.k1BnD/temproot ===> Starting comparison ===> Installing /.profile ===> Installing /etc/bgpd.conf <...> ===> Installing /root/.profile ===> Installing /var/www/conf/mime.types ===> Comparison complete ===> Checking directory hierarchy permissions (running mtree(8)) ===> Output log available at /var/tmp/sysmerge.k1BnD/sysmerge.log *** WARNING: file(s) detected as obsolete: /etc/portal.conf /etc/security /var/msgs/bounds *** WARNING: some new/updated file(s) may require a reboot feedback and ok sthen@
2011-04-20Interrupt handlers should only return 1 if they did some work. TheClaudio Jeker
intrstat on arc may have other status bits set which are masked as interrupt cause and not handled by our driver. So the intrstat == 0 check does not work reliably. It is better to do use a variable that is set to 1 when work is done and the cause is cleared. This makes arc(4) behave on systems where interrupts are shared. OK deraadt@ dlg@
2011-04-20Potential NULL deref in an error case spotted by chl on one copy;Theo de Raadt
correct fix applied to 3 similar drivers ok chl
2011-04-20Support for Intel GM45 SOL (Serial-over-LAN, part of Intel AMT) as aMike Larkin
generic puc(4) device. ok deraadt@
2011-04-20syncTheo de Raadt
2011-04-20do 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. diff from chris@ tested by marco@ ok by me :)
2011-04-20Fix spacing nit.Matthew Dempsky
ok jmc@
2011-04-19Iopoolification. Much simpler version than the one revived at k2k11.Kenneth R Westerback
This one works. For me at least. Botch spotted by matthew@. ok matthew@ dlg@
2011-04-19clean out some tiny nitsTheo de Raadt
2011-04-19Should check uname() >= 0 to detect success, not == 0.Matthew Dempsky
2011-04-19regenJonathan Gray
2011-04-19add some more Core 2G/6 Series PCH entriesJonathan Gray
2011-04-19Simplify umass devid generation. Only use the last 12 characters ofMatthew Dempsky
the USB serial number so as to limit the overall devid to just 20 characters. "Lovely!" deraadt@
2011-04-19syncTodd T. Fries
2011-04-19as confirmed by my 11mo old son, this makes midi keyboards work with macppcTodd T. Fries
"no objection" drahn@
2011-04-19Fix spacing nit.Matthew Dempsky
ok jmc@
2011-04-19Put splice cleanup code into a common function sounsplice().Alexander Bluhm
ok claudio@
2011-04-19Do not over-specify the return value.Ingo Schwarze
Instead, just document what POSIX requires. Reminded of the problem by joachimschipper dot nl, Feedback from matthew@, krw@, deraadt@, and ok deraadt@.
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@