summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-12-08Deprecate usb_*_report(). USB HID devices are always attached belowMartin Pieuchot
an uhidev(4) on OpenBSD and there is not point in rerolling your own reportID handling. Simply use uhidev_*_report(). This is a first step towards better error handling required to deal with broken upd(4) firmwares. Tested by David Higgs.
2014-12-08spacesTheo de Raadt
2014-12-08For now, these games still contain deterministic randomization (forTheo de Raadt
save / replay modes of operation that have not yet been cleaned up). OK, I've let the cat out of the bag, now some of you know you can cheat at them.. ok millert guenther tedu
2014-12-08Oops, got the sense of the test backwards. Hilarious that we didn't spot it.Theo de Raadt
2014-12-08Use srandom_deterministic() if a seed is supplied, thereby switching theTheo de Raadt
subsystem out of strong random mode. No effective change from what we've been doing for a while. Result is it becomes 1 line of code. ok millert
2014-12-08Don't need special complex rand vs arc4random code. If theTheo de Raadt
standards-mandated "seed" method is used, simply call srand_deterministic() and the subsystem switches out of strong random mode into C89 crap mode. ok millert
2014-12-08Do not report underruns as bus data errors, as suggested by sectionMartin Pieuchot
13.2.3, and let the stack set the status to USBD_SHORT_XFER if appropriate. From David Higgs.
2014-12-08Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()Theo de Raadt
to returning strong random by default, source from arc4random(3). Parameters to the seeding functions are ignored, and the subsystems remain in strong random mode. If you wish the standardized deterministic mode, call srand_deterministic(), srandom_determistic(), srand48_deterministic(), seed48_deterministic() or lcong48_deterministic() instead. The re-entrant functions rand_r(), erand48(), nrand48(), jrand48() are unaffected by this change and remain in deterministic mode (for now). Verified as a good roadmap forward by auditing 8800 pieces of software. Roughly 60 pieces of software will need adaptation to request the deterministic mode. Violates POSIX and C89, which violate best practice in this century. ok guenther tedu millert
2014-12-08typoTheo de Raadt
2014-12-08Convert syscall argument handling from a giant switch to a giant table.Philip Guenther
While at it, use formatters for fds, counts, ids of all types, and "small buffer sizes" that always show them in decimal, while paths, pointers, and "big buffer sizes" get formatters that always show them in hex. The -d option only affects args when the -n option is used or for unknown syscalls, as well as syscall return values, and unrecognized ioctls. ok otto@ millert@
2014-12-08Fix for CVE-2014-8602.Florian Obser
OK sthen@ Unfortunately you only get the dedication to support the infrastructure of the universally connected self-organizing Internet - and the autonomy of its participants iff you are a paying customer with a support contract.
2014-12-08okan noticed this was actually calling the cfree turd.Ted Unangst
2014-12-08major++Ted Unangst
2014-12-08regenPhilip Guenther
2014-12-08Add chflagsat(), modeled on fchmodat() with name to match FreeBSD.Philip Guenther
2014-12-08more libc, less kernel documentationTed Unangst
2014-12-08tweak recommendation to use arc4random_bufTed Unangst
2014-12-08delete documentation for deleted DES interfacesTed Unangst
2014-12-08remove cfree from documentationTed Unangst
2014-12-08don't do silly (and slow) one byte reads in unbuffered mode.Ted Unangst
from enh at google
2014-12-08header changes for recent libc changes:Ted Unangst
add siphash delete setkey, encrypt, cfree
2014-12-08delete obsolete sunos cfree function. ok deraadt millert naddyTed Unangst
2014-12-08add siphash from the kernel to libcTed Unangst
2014-12-08remove setkey and encrypt interfaces. they are useless and dangerous.Ted Unangst
ok deraadt naddy
2014-12-08Do not send an error body in a HEAD request answer.Florian Obser
From Bertrand Janin (b at janin dot com), thanks! OK reyk@
2014-12-08avoid void arithmetic. from david carlierTed Unangst
2012-03-26Import Unbound 1.4.16 to work on in-tree (not yet linked to the build).Stuart Henderson
These are the direct sources from NLnet Labs upstream, minus these: compat contrib libunbound/python pythonmod testcode testdata winrc ok deraadt@ jakob@
2014-12-08Remove a few foo_start() calls within ioctl handlers. Odd spot to haveBrad Smith
them and the vast majority of the rest of the drivers do not do this. ok mikeb@
2014-12-08fix crash when trying to apply ++ without an lvalue; ok millert@ jsg@Otto Moerbeek
2014-12-08tweak previous;Jason McIntyre
2014-12-08When resetting an endpoint do not purge the ring. Instead set theMartin Pieuchot
dequeue pointer past the last enqueued TRB and let xhci_xfer_done() properly accounts free TRBs.
2014-12-08Add an intermediate layer driver, cbus(4), to manage its ownKenji Aoyama
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on LUNA-88K2. Existing pcex(4) is now attached at cbus(4), i.e. cbus0 at mainbus0 pcex0 at cbus0 With this driver, some other PC-9801 boards might be supported on luna88k in the (near?) future:-) ok miod@
2014-12-08read(2) returns ssize_t, not size_tBret Lambert
ok florian@
2014-12-08Use tabs instead of spaces here.Brad Smith
2014-12-08Have foo_init() call foo_reset() to reset the chip to a known stateBrad Smith
as is the case for a lot of the other drivers. Remove some redundant calls to foo_stop() and foo_reset() before foo_init(). Tested with DP83815, 3c905C, 8139 and ST201. Mostly from FreeBSD.
2014-12-08Do not use a "struct route" when a "struct rtentry" is enough.Martin Pieuchot
ok millert@, bluhm@
2014-12-08There's no good reason to keep into "struct ifnet" a pointer that's onlyMartin Pieuchot
used by enc(4) devices to attach their routes. ok sthen@, mikeb@
2014-12-08Do not take into account addresses configured in a different rdomainMartin Pieuchot
to decide whether or not to remove local routes. Prevent from having a NULL ifp pointer in the routing table when an address present in another rdomain is removed from an interface. ok bluhm@
2014-12-08no need for arc4random_uniform() here, arc4random() does the jobGilles Chehade
spotted by deraadt@, ok eric@
2014-12-08Move the data part of the mp trampoline to .rodata (initially). The kernelMike Larkin
moves a copy of this to the RW tramp data page during bootup. ok deraadt@
2014-12-08Split the ACPI resume trampoline into code and data, move the data page toMike Larkin
.rodata (kernel copies to the RW page), protect the code page with RX permissions, protect the code page with RW permissions. ok deraadt@
2014-12-08fix a crash with '(' at EOF found with the afl fuzzerJonathan Gray
ok deraadt@ tobias@
2014-12-08Use platform-defined method of printing a pointer.Brent Cook
Casting a pointer to an unsigned long discards bits on an LLP64 system. ok deraadt@
2014-12-08avoid left shift overflow in reallocarray.Brent Cook
Some 64-bit platforms (e.g. Windows 64) have a 32-bit long. So, shifting 1UL 32-bits to the left causes an overflow. This replaces the constant 1UL with (size_t)1 so that we get the correct constant size for the platform. discussed with tedu@ & deraadt@
2014-12-08Add some more makefiles that often cause a crash.Jonathan Gray
Found with the afl fuzzer.
2014-12-08syncTheo de Raadt
2014-12-08Try harder to avoid displaying "no link ... got link" when initialKenneth R Westerback
link comes up and nothing has yet been displayed.
2014-12-07Since rev. 1.1, we discouraged space characters in passwords -Ingo Schwarze
but even after repeated enquiries on misc@, nobody can explain why, so tedu the two confusing words; ok tedu@.
2014-12-07South Africa.Daniel Dickman
2014-12-07Do not move from S_PREBOOT to S_REBOOT just because link_timeoutKenneth R Westerback
has expired. In S_REBOOT state_reboot() assumes link is present and starts sending REQUEST/DISCOVER packets and doing the backoff dance after retry_interval expires. Stay in S_PREBOOT until link appears. Pointed out by and initial diff from Nathanael Rensen.