summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Be sure to return if the pci interrupt can't be mapped, instead of fallingmiod2014-10-201-1/+2
| | | | through the remainder of the attachment logic.
* improve documentation of .Fa, .Va, and .Vt;schwarze2014-10-201-10/+22
| | | | inspired by a discussion with matthew@
* pipex(4): Converted to use pool(9)uebayasi2014-10-201-13/+21
| | | | OK blambert@ yasuoka@
* As reported by Marcus Merighi, hosts enumeration no longer works.schwarze2014-10-201-5/+4
| | | | | | | | | | The asr library no longer supports gethostent(3), and there is no reasonable way to implement it. Consequently, as suggested by guenther@, error out when hosts enumeration is requested. OK deraadt@ guenther@ florian@ Also remove the now useless calls to sethostent(3) and endhostend(3) as suggested by florian@.
* correct the spacing after in-line equationsschwarze2014-10-204-8/+10
| | | | | that start at the beginning of an input line but end before the end of an input line
* correctly parse spacing around in-line equationsschwarze2014-10-201-6/+37
| | | | | at the beginning and at the end of input lines; issue reported by kristaps@
* Remove the "interface" option from the "transparent forward" directive.reyk2014-10-202-27/+5
| | | | | | | | | It was mandatory in the grammar but never used in the code. A fully transparent relay can now be specified with the following directive in a relay block: "transparent forward to destination". OK sthen@
* digests: *_LONG_LOG2 is not used, stop talking about it.bcook2014-10-2014-56/+22
| | | | | | | | Modified patch from Dmitry Eremin-Solenikov leave the sole public define in ripemd.h ok deraadt@ miod@
* SSL: Fix memory leak in d2i_SSL_SESSION.bcook2014-10-202-2/+4
| | | | | | | | | | | | | | | | | | | | Modified version of patch from Dmitry Eremin-Solenikov. ==28360== 98 bytes in 2 blocks are definitely lost in loss record 7 of 7 ==28360== at 0x402AC54: realloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==28360== by 0x40E2D2C: ASN1_STRING_set (asn1_lib.c:393) ==28360== by 0x40EC22C: asn1_ex_c2i (tasn_dec.c:959) ==28360== by 0x40EC632: asn1_d2i_ex_primitive (tasn_dec.c:824) ==28360== by 0x40ED2E6: ASN1_item_ex_d2i (tasn_dec.c:230) ==28360== by 0x40ED421: ASN1_item_d2i (tasn_dec.c:133) ==28360== by 0x40F0335: d2i_ASN1_OCTET_STRING (tasn_typ.c:75) ==28360== by 0x405FD6D: d2i_SSL_SESSION (ssl_asn1.c:367) ==28360== by 0x405DD6E: ssl3_send_newsession_ticket (s3_srvr.c:2743) ==28360== by 0x405EA48: ssl3_accept (s3_srvr.c:665) ==28360== by 0x4067C34: SSL_accept (ssl_lib.c:922) ==28360== by 0x404E97B: ssl23_get_client_hello (s23_srvr.c:573) ok miod@ beck@
* document sinclude/-includeespie2014-10-201-2/+22
|
* fix if (statement);jsg2014-10-201-2/+2
| | | | ok dlg@
* Change MTAB_TYPE_UFS from "ufs" to "ffs", fixing mount-restarting for them.guenther2014-10-2019-1117/+76
| | | | | | | | | | | | | Perform one level of expansion on the various "portability" macros from os-*.h Delete support for Hesiod and the pre-4.4 versions of the NFS API Delete the no-op unlock_mntlist() unifdef -UFASCIST_DF_COMMAND -UMOUNT_HELPER_SOURCE Move the struct mntent and MNTMAXSTR definitions into include/am.h Move the commented-out -DHAS_NDBM_MAPS into amd/Makefile Expand OS_REP to "bsd44". With config/* empty, delete them. "lot of stuff...but I know your process on this" deraadt@
* Backport fix for binutils 11867: .quad directive not assembled correctly.daniel2014-10-204-20/+68
| | | | | | | Alan Modra (and Alan's employer) graciously permitted use of his patch under GPLv2. ok kettenis@
* use sha512 instead of md5 for tcp isn. ok deraadttedu2014-10-201-15/+20
|
* whitespacedjm2014-10-201-3/+3
|
* correct spacing *after* inline equations (much simpler than expected)schwarze2014-10-202-2/+6
|
* unifdef -DHAS_REGEXP -DHAS_PASSWD_MAPS -DHAS_FILE_MAPS \guenther2014-10-2023-533/+24
| | | | | | | | | | | | -DHAS_NIS_MAPS -DHAS_NIS_RELOAD -DRPC_4 -DHAS_UNION_MAPS \ -DHAS_TCP_NFS -DOS_HAS_NDBM -DNFS_PROTOCOL_VERSION=3 \ -DNFS_ARGS_NEEDS_PATH -DPRECISE_SYMLINKS -DHAS_EMPTY_AUTOMOUNTS \ -DNEED_MNTOPT_PARSER -DSHORT_MOUNT_NAME -DHAS_NFS_QUALIFIED_NAMES \ -UUPDATE_MTAB -UFIXUP_MNTENT -UMNTENT_HDR -UMNTINFO_DEV \ -UMNTOPT_COMPRESS -UMNTOPT_NQNFS -UINFORM_MOUNTD \ -USUNOS4_WORKAROUND -UULTRIX_HACK ok deraadt@
* correct spacing before inline equationsschwarze2014-10-205-16/+16
|
* s_client: don't call shutdown on a non-existent socket descriptor.bcook2014-10-201-3/+1
| | | | | from Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> ok beck@, deraadt@
* show the {MDOC,MAN}_EQN node, it contains interesting information,schwarze2014-10-201-11/+13
| | | | | in particular line and column numbers and flags; but hide the uninteresting EQN_ROOT box
* typo; deraadttedu2014-10-201-2/+2
|
* replace bzeros after allocations with M_ZERO and PR_ZERO as appropriate.dlg2014-10-201-9/+4
| | | | ok deraadt@
* use SHA512 to hash entropy instead of MD5tedu2014-10-201-15/+15
|
* unconditionally build sha2 so we can use it in all the kernels.tedu2014-10-201-2/+2
|
* Start removing portability goo: we have syslog(), strerror(), POSIX regexp,guenther2014-10-20129-11256/+95
| | | | | | | | BSD-style getmntinfo(), BSD signals, 4.4BSD unmount(), etc Delete configurations for other OSes Delete fsinfo and mk-amd-map, as we don't build them. ok deraadt@
* make RETURN VALUES more conciseschwarze2014-10-191-77/+28
| | | | | and fix two instances of "new sentence, new line" while here feedback and ok jmc@, ok doug@
* Move the description of mg automatic recentering further down thelum2014-10-191-12/+11
| | | | | | tutorial, next to the C-l (recenter) command description. This also removes confusion if you read the tutorial on a screen larger than 24 lines. Input jmc@ ok florian@
* rearrange -d, again, after giving ingo some dodgy advice;jmc2014-10-192-4/+4
| | | | ok ingo
* Revamp malloc.3 by reordering the sections and rewriting parts.doug2014-10-191-185/+417
| | | | | | | | | | | | | | | | | | | | | | | | | | | The old man page had a lot of useful information, but it was all mixed together which made it difficult to reference. The main theme in this commit is that the sections are more focused: * DESCRIPTION describes the overall behavior * RETURN VALUES describes what it may return (including implementation defined values) * EXAMPLES shows why we recently started an audit on malloc and realloc usage in the tree. * Added CAVEATS which describes what is implementation defined, gotchas and security implications of misusing these functions * Added IDIOMS which describes how these functions should or should not be used The MALLOC_OPTIONS section was left unchanged. Function names were added to DIAGNOSTICS and STANDARDS. The MALLOC_OPTIONS and DIAGNOSTICS sections were pushed down in the page so more pertinent information is higher up. This has gone through several revisions thanks to input from deraadt@ and schwarze@. Ingo also helped with some of the mandoc formatting. OK schwarze@ (as far as it is a good starting point and the code snippets look ok)
* More gracefully handle firmware loading errors in ulpt(4).stsp2014-10-191-3/+14
| | | | | | The previous lack of error handling could trigger a kernel crash in some situations, with ulptwrite being called while not ready. ok deraadt phessler
* in usage() and SYNOPSIS, sort options as suggested by jmc@schwarze2014-10-192-5/+5
|
* Revert last commit due to changed semantics found by make release.doug2014-10-192-17/+17
|
* Use sc_if->sk_pktlen to specify the maximum DMA transfer size and maximumbrad2014-10-191-3/+3
| | | | | | DMA segment size when setting up the TX buffers in msk_init_tx_ring(). ok jsg@
* Don't use %r1 to refer to bit 1. No binary difference.kettenis2014-10-182-4/+4
|
* Remove some #ifdef from libevent.bluhm2014-10-184-36/+7
| | | | OK nicm@
* Better POSIX compliance in realpath(3).doug2014-10-182-17/+17
| | | | | | | millert@ made changes to realpath.c based on FreeBSD's version. I merged Todd's changes into dl_realpath.c. ok millert@, guenther@
* Fix description of Ss and Se.nicm2014-10-181-7/+5
|
* Whitespace.uebayasi2014-10-181-43/+43
|
* Make sure the direct map isn't executable on hardware that allows us to do so.kettenis2014-10-181-2/+2
| | | | | | Enforcing W^X in the kernel like this mitigates at least some ret2dir attacks. ok mlarkin@, deraadt@
* None of these need to include <openssl/rand.h>jsing2014-10-1862-128/+62
|
* Sort/group includes.jsing2014-10-182-50/+52
|
* Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.bluhm2014-10-186-38/+7
| | | | OK nicm@
* Use arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes().jsing2014-10-1834-130/+76
| | | | | | | | | | | | | | | arc4random provides high quality pseudo-random numbers, hence there is no need to differentiate between "strong" and "pseudo". Furthermore, the arc4random_buf() function is guaranteed to succeed, which avoids the need to check for and handle failure, simplifying the code. It is worth noting that a number of the replaced RAND_bytes() and RAND_pseudo_bytes() calls were missing return value checks and these functions can fail for a number of reasons (at least in OpenSSL - thankfully they were converted to wrappers around arc4random_buf() some time ago in LibreSSL). ok beck@ deraadt@ miod@
* plug file descriptor leaks on read or write failure;schwarze2014-10-182-16/+15
| | | | hinted at by Steffen Nurpmeso <sdaoden at yandex dot com>.
* oops, too greedymiod2014-10-181-2/+2
|
* Don't assume that ep_taddr and ep_daddr are page-aligned. It is possible tokettenis2014-10-181-5/+7
| | | | | | | | construct ELF executables for which ep_daddr ends up not being properly aligned. Sanitize the addresses before setting up the address space for the new executable. Should fix the panic discovered by Alejandro Hernandez. ok miod@
* Mention -fstack-shuffle is a gcc4-only thing, but gets silently ignored bymiod2014-10-181-4/+7
| | | | gcc3. Reminded by zhuk@
* Remove even more unnecessary `needs-flag' attributes from config machinery,miod2014-10-1810-25/+24
| | | | as well as useless include of the generated flag files.
* syncjasper2014-10-181-1/+0
|
* Add VIDIOC_G_INPUT ioctl, some ports need it (at least ffmpeg)armani2014-10-184-5/+24
| | | | ok ratchov@, sthen@, mpi@