summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-03-12Be more paranoid when attempting to parse an IA record, and make sure weMiod Vallat
won't try to read past the end of the record, no matter what kind of garbage it may contain. No functional change on IP35 systems with valid IA records.
2011-03-12Implement swap64 with the bswapq instruction. (Commit stolen from mikeb@)Philip Guenthe
Add missing __statement modifiers and correct %1 to %0 in the asm. ok mikeb@, pirofti@, drahn@
2011-03-12incorrect parameters to warn()Theo de Raadt
2011-03-12syncTheo de Raadt
2011-03-12In the original sparc V7 book (and in the v8 book), the divrem leaf code usedTheo de Raadt
local registers for a few temporaries. This was changed to use two global registers. Maybe to permit use in-kernel without conflicting with the register V7 register window handlers. (Was this done by Chris Torek? Is this related to Gordon Irlam's work? Or was it in NetBSD? Hard to tell because NetBSD removed their original cvs tree.) In V8 the ABI was tightened; more global registers became offlimits in different ways. We started supporting sun4m, and did not consider this. As a result, the global registers chosen are the wrong choice. In particular, %g7 is a poor choice for upcoming TLS work. It looks like it is safer to use %g5 and %g6 since these functions are "system software". All re-entrant parts of the system save it. On sparc64 these functions are in libc per ABI requirement, but are unused. On sparc, they occur in bootblocks (no reentrancy), kernel (reentrancy saves globals; kernel is not ABI compliant), userland libc (signal handlers save globals), and ld.so (symbol binding is not re-entrant on its own). Discussed rather extensively with guenther, kettenis, miod and drahn.
2011-03-12There existed a race when a process was trying to read from a splicedAlexander Bluhm
socket. soreceive() releases splsoftnet for uiomove(). In that moment, somove() could pull the mbuf from the receive buffer. After that, soreceive removed the mbuf again. The corrupted length accounting resulted in a panic. The fix is to block read calls in soreceive() until splicing has been finished. just commit deraadt@
2011-03-12Replace the old, broken KERN_PROC ABI and its matching functionsPhilip Guenthe
in libkvm with the stable-ABI versions that are currently named KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols will continue to be supported for a few releases. Committing now that they ports people have had a couple releases to update pkgs that usd the old functions
2011-03-12Add missing __statement modifiers in various endian.h files and correctPhilip Guenthe
%1 to %0 in the i386 asm. asm correction ok drahn@
2011-03-12Provide distinct segments for the %fs and %gs selectors to use byPhilip Guenthe
default, with per-rthread base offsets and with sysarch() functions, I386_{GET,SET}_{FS,GS}BASE, for fetching and setting those base offsets. This is necessary for both rthread and Linux compat support. suggestions from kettenis@, prodding from pirofti@ and deraadt@
2011-03-11Zap stack garbage before passing buffer to biosd_io(), which mayKenneth R Westerback
be lied to by the BIOS about successfully reading data. ok deraadt@ weingart@
2011-03-11Use _MACHINE_ENDIAN_H_ for this is The Right Thing To Do.Paul Irofti
Okay guenther@, millert@.
2011-03-10Add support for detecting the NXP SA56004X (we have not actuallyTheo de Raadt
seen it in the wild yet, but the detection seems easy). Few bugs spotted by kettenis. ok kettenis
2011-03-09Log MAC address changes in the IPv6 neighbor discovery protocolAlexander Bluhm
cache as "ndp info overwritten". This makes the behavior similar to ARP. ok todd@, deraadt@, henning@, giovanni@, claudio@
2011-03-09Knock out a bunch more UPS devices from attaching to uhid(4).Stuart Henderson
feedback/ok deraadt@
2011-03-09syncStuart Henderson
2011-03-09- add IDs for various USB HID UPS devices, extracted from NUTStuart Henderson
- switch to generic naming ("Somevendor UPS") where the vendor uses the same device ID for several devices feedback/ok deraadt@
2011-03-09HW stats debugging via ifconfig emX debug instead ofMarco Pfatschbacher
a global em_display_debug_stats variable. OK mcbride, matthew, deraadt, henning.
2011-03-08Fix a subtle carp reconfiguration problem.Marco Pfatschbacher
Updating the HMAC from the carp_ioctl call does not see the newly set IP address in the if_addrlist. The only chance for carp to see the new address is via the address-hook callback. This change moves the detection of address changes entirely into carp_addr_updated. Furthermore, only call carp_hmac_prepare for the SIOCSVH case. This second bug was the reason why the first one went unnoticed for such a long time. Problem found and debugging help by camield@. OK camield@
2011-03-08vrng should go onto the ramdisk.Theo de Raadt
ok kettenis
2011-03-08Fix extended partition searching so we don't get lost. The offsetKenneth R Westerback
of the next EBR is relative to the start of the extended partition described in the first MBR, not relative to the EBR specifying the offset in its extended partition entry. Clean up installboot -v output. Use daddr64_t for all sector numbers. Not a complete fix, but better than what we had. More tweaks to come. Inspired by a diff and cluebat from uscav on tech@ a few weeks ago. Feedback from matthew@, weingart@. ok deraadt@
2011-03-08regenJasper Lievisse Adriaanse
2011-03-08- add Trust and two miceJasper Lievisse Adriaanse
2011-03-07Declare the inline function pf_addr_compare() non-static in pfvar.hAlexander Bluhm
to make it reusable by pf fragment reassembly. No functional change. discussed with henning@, claudio@, deraadt@, kettenis@ ok guenther@
2011-03-07The scheduling 'nice' value is per-process, not per-thread, so move itPhilip Guenthe
into struct process. ok tedu@ deraadt@
2011-03-07noone will ever use NTFS on alphaTheo de Raadt
2011-03-06The global_int information acpi collects is not used by amd64.Theo de Raadt
ok ketttenis
2011-03-06fix function name in error/debug messages; ok marcoStefan Sperling
2011-03-06Extract the new function frag6_deletefraghdr() from frag6_input()Alexander Bluhm
to make it reusable by pf. No functional change. ok henning@, claudio@
2011-03-06Make sure MEMORYBARRIER(SYNC_REG) performs a read/write bus_space_barrier,Miod Vallat
instead of a read barrier only, as it is used in read-modify-write cycles. ok mjacob
2011-03-05since the bus_space_barrier function does the same membar operation forTheo de Raadt
all cases, it should not waste time doing extra if/else if/else if/else conditions. i wonder how much this is going to speed up sparc64... ok miod kettenis
2011-03-05Wait until the DMA engine is stopped before unmapping buffers and descriptors.Mark Kettenis
Fixes DMA errors seen on sparc64. ok miod@
2011-03-05The function pf_tag_packet() never fails. Remove a redundant checkAlexander Bluhm
and make it void. ok henning@, markus@, mcbride@
2011-03-04Add TouchScreen support. Makes newer Gunze USB TouchScreen devices work.Mark Kettenis
ok deraadt@
2011-03-04Apparently keeping some USB devices in reset for too long makes themMark Kettenis
non-functional. Reduce the root port reset delay to 100 ms. This is still twice as long as the delay mandated by the standard, but makes the Gunze TouchScreen on the Sony Vaio VGN-UX91S and a few other devices work. ok jakemsr@
2011-03-04kill is_rx_elem_unknown.Federico G. Schwindt
damien@ ok. ports checked by sthen@.
2011-03-04gather most pci conf register manipulation into a new function,Jacob Meuser
azalia_configure_pci(). use that function in azalia_attach() and azalia_resume(). fixes post-resume "static" during playback for some machines with ATI chipsets.
2011-03-04Peek at the interrupt status register before poking with the reply postMike Belopuhov
queue. In some situations this prevents us from reading a garbled reply. If this commit breaks your mpi, please report ASAP. The issue was reported and the fix was verified by Emeric Boit. Thanks! Ok dlg, kettenis, marco (who warned us and wanted to test more)
2011-03-03Prevent division-by-zero when scaling down to the screen resolution. MakeMark Kettenis
the WSMOUSEIO_SCALIBCOORDS fail with EINVAL if the settings would cause a division-by-zero. ok deraadt@
2011-03-03Crank MAXDSIZ up to 2G on macppc and socppc.Antoine Jacoutot
ok miod@ drahn@ kettenis@
2011-03-03- remove unused devices for which we have no drivers (yet?)Jasper Lievisse Adriaanse
ok miod@
2011-03-02Change va_arg and va_end definitions from object-like macros toMatthew Dempsky
function-like macros. Allows (questionable but legal) use of "va_arg" as a local variable name in code that includes <stdarg.h>. "seems right" deraadt@
2011-03-02when sending deferred packets use ip6_output for v6 frames instead ofDavid Gwynne
blindly assuming everything is v4 to be sent with ip_output. problem originally reported by Marco Fretz. fix verified locally. ok henning@ mcbride@
2011-03-02Allow the kernel to compile with IEEE80211_DEBUG.Federico G. Schwindt
deraadt@ ok.
2011-03-02- change recieved -> received in comments, as well as two unused definesJasper Lievisse Adriaanse
in pxe.h. ok deraadt@ sthen@
2011-03-02Sync ASC/ASCQ errors with www.t10.org/lists/asc-num.txt of 11/15/10.Kenneth R Westerback
Prompted by dlg@'s tape library trying to report a failure to thread a media (0x53, 0x04).
2011-03-02enable POOL_DEBUG again since we are not in releaseTheo de Raadt
2011-03-02we are now hacking on 4.9-currentTheo de Raadt
2011-03-01back out r1.162, the one that bumps openings up on sas and fcDavid Gwynne
devices. my theory is that some devices report queue full conditions in ways the firmware doesnt understand, or some firmwares default to NOT doing the queue full handling internally. either way it reports queue full conditions as faulted io which gets passed up to the block layer as errors. this makes us conservative again and safe. this fixes panics from ajacout ok sthen@ deraadt@
2011-02-28When the maximum splice length has been reached, send out the dataAlexander Bluhm
immediately by unsetting the SS_ISSENDING flag. This prevents a possible 5 seconds delay in socket splicing. ok markus@; commit it deraadt@
2011-02-26Force the DUID cache used to generate hw.disknames to be updatedKenneth R Westerback
after every disklabel read or write. This keeps the DUID cache more in sync with the physical world. De-syncing noted by drahn@ while zapping disklabels with dd. ok jsing@ deraadt@