summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-13Since this is limited to ffs, use ufsinfo_t instead of ino_t.Philip Guenther
Grow the array of cached inodes exponentially instead of arithmetically. Prefer sizeof(*pointer) over sizeof(type) in mallocs. Don't leak memory in searchdir(). Fix multiple bugs in the handling of indirect blocks, including reuse of a static buffer in a recursive function and failure to track the remaining size of the directory blocks to process Tested with a directory *doubly* indirect block! ok krw@
2014-05-13All callers of helpfile() are #ifdef SMALL so only define thatTodd C. Miller
function when SMALL is not defined. OK guenther@
2014-05-12Refactors "dummyrun" flag as "dryrun" with an approach similar to the one usedAndre de Oliveira
for client/server processes checks through $self->{down} state control variable, while here, do not instantiate a client when noclient is defined, reflecting server object instantiation behaviour. ok bluhm
2014-05-12Remove useless dev_bsize variable and use DEV_BSIZE as needed. DivideKenneth R Westerback
sblock_try[] entries by DEV_BSIZE to get proper 512-byte-block address for bread(). Confirmed to still work on 4k-byte sector devices by David Vasek.
2014-05-12Fix format strings involving time_t arguments, fixes `ntpd -d' on sparc (andMiod Vallat
probably more 32-bit platforms). Problem noticed by tobiasu@; ok tobiasu@ dtucker@ sthen@ benno@
2014-05-12Move GTT management for Sandy Bridge and up into inteldrm(4). This makesMark Kettenis
it possible to use the non-mappable part of the GTT, prepares the way for using the PPGTT and reduces the diffs with Linux. ok jsg@
2014-05-12these files have moved to libutilMarc Espie
2014-05-12...better if I actually unplug it, Makefile doesn't do itMarc Espie
2014-05-12Remove AES_bi_ige_encrypt() from libcrypto. This routine is supposed to useMiod Vallat
two keys and four IVs to do much magic, is specified as such with test vectors, but the implementation actually always uses the first key, and the test vectors were computed with it, so they are wrong. Fixing the code to match the intended specification would break interoperability with existing code (assuming such code would exist), so it is better to remove this interface, which is obviously too complex for mere mortals if even its author can not implement it correctly. Riding on the libcrypto major bump.
2014-05-12syncTodd T. Fries
2014-05-12Bring back ASN1_seq_pack(), ASN1_seq_unpack(), ASN1_pack_string() andMiod Vallat
ASN1_unpack_string() from the NO_ASN1_OLD purge; turns out that some Ruby extensions still use them, unfortunately, so we need to give them some more time to catch up on ``recent'' interfaces. Riding on the libcrypto major bump.
2014-05-12Move the `pqueue' part of libcrypto, which is a glorified sorted linked listMiod Vallat
of 64-bit data, and only used by DTLS, to libssl where it belongs. Remove pqueue_print() which is a debugging interface and serves no useful purpose, except for the regress test, which grows its own pqueue_print() routine. Bump libcrypto major and libssl minor. WARNING: do not update your tree right now, more changes are coming, which will ride the libcrypto major bump.
2014-05-12no md5cryptTed Unangst
2014-05-12remove md5crypt.Ted Unangst
while changing things, add a crypt_checkpass wrapper that handles most of the edge cases. (not quite ready for production, though.) ok deraadt
2014-05-12adjust to ohash being in libutil now, and to the interface changes.Marc Espie
fix potential integer overflows in memory allocation (mostly for pedagogical purposes, these are unlikely to overflow in practice) move the rest of lst.lib stuff into its own directory.
2014-05-12move the ohash functions into libutil by popular demand.Marc Espie
It's not a standard interface, so it doesn't belong in libc. I hate duplicating the code in client programs, so do beck@, kettenis@, schwarze@, millert@, miod@... and they agree with libutil.
2014-05-12tweak interface to do the right thing, after useful comments from millert@Marc Espie
(mostly use a calloc function to avoid potential integer overflow)
2014-05-12change to having four freelists per size, to reduce another source ofTed Unangst
deterministic behavior. four selected because it's more than three, less than five. i.e., no particular reason.
2014-05-12Don't exit on encountering RTM_NEWADDR or RTM_DELADDR routing messagesKenneth R Westerback
that lack the appropriate address info. Simply ignore the message as is done for short or incorrectly versioned messages ok claudio@
2014-05-12Keep libusbhid's HID parser in sync with the kernel one. This is mostlyMartin Pieuchot
a backport from FreeBSD's r205728, r224511 and 225839 without the new functions to set/get a report ID nor the usbhidctl(1) & usbhidaction(1) bits. Committing now to open the "Monday's Bump Parade".
2014-04-15Import the OpenSSL libcrypto tests in a form suitable for our rergressMiod Vallat
infrastructure. The following tests have not been imported, for their code lacks a licence: asn1, rsa, sha256, sha512, wp.
2014-05-12fix a possible double free when tls is required but not advertised byEric Faurot
the server. ok gilles@
2014-05-12Fix format strings in debug code.Mark Kettenis
2014-05-12Fix a leak from a recent added mark/marked keywords check.Andre de Oliveira
ok reyk
2014-05-12Since all static leases are in one file, /etc/dhclient.conf, there is noKenneth R Westerback
'wrong interface' specification. So display that error message only for non-static leases. i.e. when reading /var/db/dhclient.leases.<if>.
2014-05-12No need for a dev_bsize variable that is always set to 512,Kenneth R Westerback
a.k.a. DEV_BSIZE. So just use DEV_BSIZE. Confirmed to still work on 4k-byte sector disks by David Vasek.
2014-05-12Backport FreeBSD's HID parser in order to properly parse `moderm'Martin Pieuchot
input device descriptors, notably if they include an Item with an Usage array (Min-Max range) and others single Usage elements. Tested by many, thanks! ok andre@
2014-05-12Includes a router altert option (RAO) in IGMP packets. Without thisMartin Pieuchot
option, required by the RFC2236, some L3 switches do not examine the packets. Based on FreeBSD's r14622 via Florian Riehm on tech@. ok bluhm@, jca@
2014-05-12Make ifconfig do something intelligent based on the required length ofBob Beck
WEP keys rather then being silently dumb, so when using WEP: 1) If the key is a plausible size try to use it. 2) If they key would be a plausible size with '0x' in front of it, add that. 3) If the key is not a plausible size, emit a warning and do not try to use it. ok sthen@
2014-05-11replace realloc(p, N * M) with reallocarray(p, N, M) and remove someAlexander Hall
pointless cleanup if we're obviously going to die anyway ok guenther@
2014-05-11struct direct's d_ino is no longer the same size as an ino_t, so copy itPhilip Guenther
for the call to bsearch() problem report and ok krw@
2014-05-11The relation between uhci(4), ohci(4) and their root hub device isMartin Pieuchot
delicate. HC drivers do not always accept to be left alone. I don't know if it is a love crisis, but apparently receiving a root hub status change interrupt before having an uhub(4) attached breaks resume. So make sure the root hub is re-attached before interrupt get enabled. It is safe to do it during DVACT_RESUME since attaching root hubs do not require any USB transfer. Based on a diff from yasuoka@, fix a regression introduced in last commit an reported by Abel Abraham Camarillo Ojeda on tech@ and Nils R on bugs@.
2014-05-11Tweak DHCPREQUEST log message to omit 'port N', since the port is notKenneth R Westerback
set at that point, and is always set to 67 in send_packet().
2014-05-11need syscall.h..Theo de Raadt
2014-05-11Rework/restore recorded lease handling. Actually use 'lease'Kenneth R Westerback
statements in dhclient.conf. Recorded and static leases should now be bound to interfaces when appropriate. .... Ken
2014-05-11More KNF.Joel Sing
2014-05-11KNF.Joel Sing
2014-05-11zap double full stop; ok schwarzeJason McIntyre
2014-05-11hide two printfs behind an ifdef DEBUG; spotted by miod@Jasper Lievisse Adriaanse
2014-05-11Fix configuration of static IPv6 default gatewayRobert Peichaer
- Append IPv4 default gw to /tmp/mygate instead of overwriting it. - Delete /tmp/mygate at the beginning of configure_ifs() to reset previous default gw config on installer restarts. pointed out by todd@ OK halex@ krw@
2014-05-11syncTheo de Raadt
2014-05-11Move the increment of uvmexp.softs back to the caller of mi_ast():Philip Guenther
it needs to be done atomicly on some MP archs and we don't have atomic_add_int() everywhere yet. Also, mi_ast() was meant to be inline. noted by miod@
2014-05-11Pull in <sys/user.h> before <sys/syscall*.h>Philip Guenther
2014-05-11remove unused variableCharles Longeau
ok tedu@
2014-05-10catch up with the inet(3) rename; this commit missed in previousJason McIntyre
ok guenther
2014-05-10spello in comment and tweak DUMP_BOOT_DESC a tadJasper Lievisse Adriaanse
2014-05-10various format string fixes and remove -Wno-format from octeonJasper Lievisse Adriaanse
feedback/ok miod@
2014-05-10sigh, another case of user.h before syscall_mi.hTheo de Raadt
2014-05-10fix typo in function prototypeCharles Longeau
ok gilles@
2014-05-10Fix SSL breakage that I accidentally introduced with my previous commit.Reyk Floeter