summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-14fix typommcc
from Jan Schreiber, ok deraadt@
2016-01-14add brackets to avoid an operator precedence bugJonathan Gray
ok ratchov@ deraadt@
2016-01-13Change aml_find_node() such that it only walks down the tree and doesn'tMark Kettenis
traverse sideways. This seems to be what all callersexpect it to do, and fixes a bug in dwiic(4) where it would try to access i2c devices on busses they're not attached to. If there is any fallout from this change, the right thing to do is probably to make sure callers pass the right node. While there, change the return type to void, as the return value was useless and none of the callers looked at it. ok mlarkin@
2009-10-15import of gcc-4.2.1, the last gcc release under GPLv2Robert Nagy
2016-01-13eliminate fallback from untrusted X11 forwarding to trustedDamien Miller
forwarding when the X server disables the SECURITY extension; Reported by Thomas Hoger; ok deraadt@
2016-01-13unify two identical function pairs now that we've removed less's off_tmmcc
aliases ok nicm@
2016-01-13To make bug hunting easier, print more information in the soreceive()Alexander Bluhm
and somove() panic messages. OK phessler@ benno@ deraadt@ mpi@
2016-01-13Drop implementation notes sectionMike Belopuhov
2016-01-13Bump number of tx fragments to the stock value of 18Mike Belopuhov
2016-01-13Enable Xen support in GENERIC; discussed with deraadt@Mike Belopuhov
2016-01-13Implement transmit watchdog for testing purposesMike Belopuhov
2016-01-13spacing typosMike Belopuhov
2016-01-13Create rx and tx fragment maps with a page size boundary restrictionMike Belopuhov
We need to ensure that rx and tx fragments do not cross page boundary since grant table reference can only point to a complete page. Add a couple of kernel assertions in the dma map loading code to catch these problems early in the future.
2016-01-13Convert to uiomove(); from Martin Natano, thanks!Stefan Kempf
ok deraadt@
2016-01-13fix hid packet length calculationJoshua Stein
noticed by jsg
2016-01-13Revert most of if_iwm.c r1.155. Use of channel zero was a symptom ofStefan Sperling
another bug introduced in my turbo mode removal commit; Now fixed. Keep the debug printf added in r1.155.
2016-01-13Fix fallout from turbo mode removal commit: Channel initializationStefan Sperling
was broken and lots of drivers ran into trouble as a result. ok deraadt@
2016-01-13"Check UDP length for short as well as long values" - apply the fix fromStuart Henderson
usr.sbin/dhcpd/packet.c r1.4 to dhcrelay. ok deraadt@
2016-01-13fix exit status on pledge fail, eval here should be 2.Gleydson Soares
OK tb@
2016-01-13there's a resource leak here. missing a fclose(3) to kill the stream.Gleydson Soares
OK deraadt@ mestre@
2016-01-13Update the comments in vmctl.c that are describing function arguments.Reyk Floeter
2016-01-13fix remaining sudo reference (s,sudo,doas,)Gleydson Soares
OK deraadt@ millert@ tb@ sthen@
2016-01-13kill malloc(9) pointless check, malloc(9) call is using M_WAITOK flag and ↵Gleydson Soares
thus will sleep until get memory available so shouln't fail. OK deraadt@ mmcc@
2016-01-13Update the comment that is decribing terminate_vm()'s arguments,Reyk Floeter
sort the description of arguments for init_emulated_hw(). Pointed out my mlarkin
2016-01-13Don't confuse the HID descriptor address (which really is an office into theMark Kettenis
register space of the i2c device) with the i2c address. For i2c busses enumerated by ACPI we get the address from the I2C Serial Bus Connection Resource Descriptor returned by the _CRS methide of the i2c device. Pass the HID descriptor address in the ia_size member. ok jcs@
2016-01-13Add data structures and defines for Generic and I2C Serial Bus ConnectionMark Kettenis
descriptors. ok jcs@
2016-01-13Implement VFS read clustering for MSDOSFS.Martin Pieuchot
The logic used in msdosfs_bmap() to loop calling pcbmap() comes from FreeBSD and is not really efficient but it is good enough since it is only called when generating I/O. With this diff I get a 100% improvement when reading big files from a crappy USB stick. With this and bread_cluster(9) modified to not re-fetch B_CACHED buffers, reading large contiguous files with chunk sizes of MAXPHYS is almost as fast as physio(9) on the same device. For a 'real world' example, when copying music files from a USB stick I see a speed jump from 15MB/s on -current to 24Mb/s with this diff. While here rename some 'lbn' variables into 'cn' to better reflect what we're dealing with. Tested by Mathieu, with support from deraadt@
2016-01-13Prevent a double if_put().Martin Pieuchot
ok mikeb@, bluhm@
2016-01-13Make 'ifconfig $if mode' a valid subcommand that works independently ofStefan Sperling
the 'media' subcommand. Allow clearing the mode with 'ifconfig $if -mode'. This makes commands such as 'ifconfig iwn0 mode 11a' work without having to type all of 'ifconfig iwn0 media autoselect mode 11a'. ok sthen@ deraadt@ jmc@
2016-01-13Tell the iwn(4) firmware to retry failed Tx at 1Mbit/s instead of MCS 0.Stefan Sperling
Seems to make Tx rate scaling go up faster and helps Rx performance. ok deraadt@
2016-01-13Fix iwn(4) firmware SYSASSERT during hardware initialization.Stefan Sperling
For some reason we would end up passing channel number zero to the RXON firmware command, which the firmware doesn't like. ok sthen@ reyk@ and also tested by stefan@, deraadt@, mikeb@
2016-01-13dont propagate any of the parent interfaces offload features on svlanDavid Gwynne
this avoids confusion about checksum offload if you configure ips on svlan interfaces on top of interfaces that do offload, like bge or em. the problem was reported by and this fix was tested by denis fondras analyzed by naddy@ thanks guys
2016-01-13Remove obsolete flags (h, v, i, c) from getopt() call.Kenneth R Westerback
No need for 'flags' variable. Just call usage() on unknown options.
2016-01-13Nuke unused enum.Kenneth R Westerback
2016-01-12#define LOFF_T off_tKenneth R Westerback
#define llseek lseek #define LOFF_T_MAX LLONG_MAX I mean, really? Nuke'em and use off_t, lseek and LLONG_MAX. Also make a couple of checks for overflow of off_t value more likely to work. ok millert@
2016-01-12use explicit_bzero() more liberally in the buffer code; ok deraadtDamien Miller
2016-01-12Move prototypes of local functions from lp.h to the .c files and maketb
functions static if possible. Move delay() to lpd/printjob.c and fix an annoying typo. ok deraadt@
2016-01-12remove lint annotationsmmcc
ok nicm@
2016-01-12naddy observed the TSC fallback code could encounter (high word) %edxTheo de Raadt
being 0; after multiply there is no perturbance to the from-disk entropy buffer. Further investigation showed perturbance was biased towards the lower bytes of a word. Compensate for this with a hocus pocus bit-spreading operation which applies a result byte by byte. discussion with kettenis, tb, mlarkin, naddy ok naddy
2016-01-12Another unused file for the attic.Kenneth R Westerback
2016-01-12The only thing in pdisk.h is an unused #define. So don't include it.Kenneth R Westerback
2016-01-12Move unused files to attic.Kenneth R Westerback
2016-01-12Use normal err/errx/warn/warnx rather than handrolling new ones. MoveKenneth R Westerback
usage() to pdisk.c and nuke do_help() and '-h'. ok jasper@ deraadt@
2016-01-12properly initialize quirks before sending them to hid layer, brokenJoshua Stein
during hid abstraction problem noticed and fix tested by abieber
2016-01-12zap trailing whitespaceTheo de Raadt
2016-01-12accurately describe that the (3) malloc option settings are onlyTheo de Raadt
inspected on the first call to a malloc(3) family function. ok tedu
2016-01-12Remove LINUNUM, a needless alias for off_t. Also, remove a redundantmmcc
condition. ok nicm@
2016-01-12rename new i2c_attach_args fields to avoid conflict with cpp magic inTheo de Raadt
isavar.h (a few parts of the tree include both) ok jcs
2016-01-12Let smtpd start on machines without a FQDN as hostname.Sunil Nimmagadda
Ok millert@ gilles@ jung@
2016-01-12dev/isa/isavar.h does not appear to be needed by any of consumers.Theo de Raadt
(noticed because of another issue: one consumer is a high level busdriver, but also contains i2c support, so the isa #define for ia_irq clashes against i2c)