summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-16Add regression test of unlinking and re-creating a pledgepathed fileBob Beck
2018-04-15syncTheo de Raadt
2018-04-15Disable microcode loading added in r1.20 of exec_i386.c.Joel Sing
The implementation tries to allocate sufficient memory to match the size of the microcode file and will blow the boot loader heap when loading a larger microcode file. This has been causing "heap full" errors at boot on some machines. Diagnosed with deraadt@
2018-04-15add a few new sentences regarding the big pictureIngo Schwarze
2018-04-15Rewrite the ENGINE_*(3) documentation from scratch - step 2,Ingo Schwarze
covering the remaining functions that were documented in engine(3), except for seven functions that are completely pointless and that were merely listed but not really documented.
2018-04-15The Exar XR17V354 has 4 com ports that have a 256-byte FIFO, use aJoshua Stein
frequency of 125Mhz, and have a unique sleep register. A custom interrupt handler is setup in puc for these ports so it can check a register which reports which ports triggered the interrupt, rather than having to run comintr for every port every time. ok mlarkin deraadt
2018-04-15syncTheo de Raadt
2018-04-15Add TCP support to snmpd.Marco Pfatschbacher
This implements RFC 3430, with the exception of processing multiple incoming requests in parallel (Section 2.1). This required too much code and is optional anyway. Initial review by reyk@, very thorough reviews by jca@. Thanks! OK jca@, gerhard@
2018-04-15Rewrite the ENGINE_*(3) documentation from scratch (step 1,Ingo Schwarze
covering 60% of the documented functions). The old, abominable engine(3) manual page shall die soon.
2018-04-15pucdata: convert port types and frequencies to a lookup table toJoshua Stein
allow for custom frequencies not a multiple of COM_FREQ ok deraadt
2018-04-14don't free the %C expansion, it's used later for LocalCommandDamien Miller
2018-04-14In case of a tcp read timeout, the destination host state needs to beSebastian Benoit
set to HOST_DOWN. Noticed and fixed by Rivo Nurges <Rivo DOT Nurges AT smit DOT ee> ok and reminder florian@
2018-04-14regenJoshua Stein
2018-04-14add another lite-on vendor id and cb1 nvmeJoshua Stein
2018-04-14Correct heap overflow bugs in perlAndrew Fresh
* RT #131844: [CVE-2018-6913] heap-buffer-overflow in S_pack_rec Reported by GwanYeong Kim, fixed by Tony Cook. * RT #132063: [CVE-2018-6798] Heap-buffer-overflow in Perl__byte_dump_string (utf8.c) Reported by Nguyen Duc Manh, fixed by Karl Williamson, Yves Orton, and Tony Cook. * RT #132227: [CVE-2018-6797] heap-buffer-overflow (WRITE of size 1) in S_regatom (regcomp.c) Reported by Brian Carpenter, fixed by Yves Orton, Karl Williamson, and Tony Cook. Many thanks to deraadt@ tj@ bluhm@ tb@ robert@
2018-04-14In eng_lib.c rev. 1.14 2018/04/14 07:18:37, tb@ allowed ENGINE_free(3)Ingo Schwarze
to accept a NULL argument. Document that. While here, make the related sentences more precise and less verbose. Tweaks and OK tb@.
2018-04-14Make ENGINE_free() succeed on NULL. Matches OpenSSL's behavior andTheo Buehler
simplifies the caller side. tested by & ok inoguchi; discussed with schwarze
2018-04-14make ENGINE_finish() succeed on NULL and simplify callers as inTheo Buehler
OpenSSL commit 7c96dbcdab9 by Rich Salz. This cleans up the caller side quite a bit and reduces the number of lines enclosed in #ifndef OPENSSL_NO_ENGINE. codesearch.debian.net shows that almost nothing checks the return value of ENGINE_finish(). While there, replace a few nearby 'if (!ptr)' with 'if (ptr == NULL)'. ok jsing, tested by & ok inoguchi
2018-04-14account for the meltdown pdir page in pmap statsMike Larkin
ok deraadt, kettenis
2018-04-13Add a test for stack pivots that trigger page faults.mortimer
"Regress is always open for commits" @deraadt
2018-04-13Use TIOCGWINSZ to reduce the default -Owidth during interactive useIngo Schwarze
on terminals narrower than 79 columns and the default -Oindent on terminals narrower than 66 columns. Requested by and feedback from pirofti@; mpi@ and juanfra@ also like the general direction.
2018-04-13Make sure that mandoc only goes into UTF-8 mode if the user reallyIngo Schwarze
selected UTF-8, not some other multibyte locale. This obviously makes no difference on OpenBSD but improves portability. Issue reported by <Nakayama at NetBSD> via wiz@.
2018-04-13Count $SECONDS with CLOCK_MONOTONIC.cheloha
Keeps $SECONDS advancing uniformly and independent of wall clock jumps. ok jca@
2018-04-13Close socket from vmm to parent after forking to vm process.Martijn van Duren
Ok ccardenas@
2018-04-13preserve comments before .Dd and .TH (typically Copyright and license)Ingo Schwarze
in full HTML output, but not with -Ofragment, e.g. in man.cgi(8); suggested by Thomas Klausner <wiz at NetBSD>
2018-04-13mg tries to write backups to the wrong directory when run under aFlorian Obser
different effective user, i.e. when invoced via su and backup-to-home-directory is enabled. Problem pointed out and diff provied by Lucas Gabriel Vuotto <lvuotto92 () gmail ! com>, thanks! Subsequently slacked on for nearly a year by yours truly. Then remembered when Han Boetes <hboetes () gmail ! com> came up with a similar diff because of a problem report by Mark Willson where it turned out that getlogin(2) is not very portable. OK tb
2018-04-13Remove compatibility with pfctl from 6.1 and plug a few leaksMike Belopuhov
No objections from henning, OK visa
2018-04-13spaces->tabAntoine Jacoutot
ok kettenis@+florian@'s OCD
2018-04-13Don't panic if ipmi_sendcmd() failsYASUOKA Masahiko
diff from fukaumi at soum.co.jp. ok deraadt mpi
2018-04-13notify user immediately when underlying ssh process dies;Damien Miller
patch from Thomas Kuthan in bz2719; ok dtucker@
2018-04-13Defend against user enumeration timing attacks.Darren Tucker
This establishes a minimum time for each failed authentication attempt (5ms) and adds a per-user constant derived from a host secret (0-4ms). Based on work by joona.kannisto at tut.fi, ok markus@ djm@.
2018-04-12(file missed from previous commit)Theo de Raadt
Implement MAP_STACK option for mmap(). Synchronous faults (pagefault and syscall) confirm the stack register points at MAP_STACK memory, otherwise SIGSEGV is delivered. sigaltstack() and pthread_attr_setstack() are modified to create a MAP_STACK sub-region which satisfies alignment requirements. Observe that MAP_STACK can only be set/cleared by mmap(), which zeroes the contents of the region -- there is no mprotect() equivalent operation, so there is no MAP_STACK-adding gadget. This opportunistic software-emulation of a stack protection bit makes stack-pivot operations during ROPchain fragile (kind of like removing a tool from the toolbox). original discussion with tedu, uvm work by stefan, testing by mortimer
2018-04-12Implement MAP_STACK option for mmap(). Synchronous faults (pagefault andTheo de Raadt
syscall) confirm the stack register points at MAP_STACK memory, otherwise SIGSEGV is delivered. sigaltstack() and pthread_attr_setstack() are modified to create a MAP_STACK sub-region which satisfies alignment requirements. Observe that MAP_STACK can only be set/cleared by mmap(), which zeroes the contents of the region -- there is no mprotect() equivalent operation, so there is no MAP_STACK-adding gadget. This opportunistic software-emulation of a stack protection bit makes stack-pivot operations during ROPchain fragile (kind of like removing a tool from the toolbox). original discussion with tedu, uvm work by stefan, testing by mortimer ok kettenis
2018-04-12Restore the original BSDI $Id$ strings. Those were mangled by CVSVisa Hankala
by my mistake. Pointed out by Christian Ludwig. Thank you!
2018-04-12keep the STT_FILE symbol in the table so that we know what fileRobert Nagy
was used to compile and object ok kettenis@
2018-04-12Use the current reference instead of incrementing `f_count' manually andMartin Pieuchot
calling FRELE(9) in finishdup(). Update comments accordingly. ok bluhm@, visa@
2018-04-12Call FREF(9) earlier instead of incrementing `f_count' directly inMartin Pieuchot
dupfdopen(). ok bluhm@, visa@
2018-04-12Disable counting TCP packets in the test as it does not work reliably.Alexander Bluhm
The sequence of packets and combination of flags depends on timing.
2018-04-11syncTheo de Raadt
2018-04-11Fix a race in the syslogd test. It did not wait long enough forAlexander Bluhm
syslogd to shutdown. So the test could miss some log messages.
2018-04-11In ssl.h rev. 1.155 2018/04/11 17:47:36, jsing@ changedIngo Schwarze
SSL_OP_TLS_ROLLBACK_BUG to no longer have any effect. Update the manual page.
2018-04-11Nuke SSL_OP_TLS_ROLLBACK_BUG - this is a workaround for buggy clients fromJoel Sing
around the SSLv3/TLSv1.0 period... and buggy clients are buggy. This also helps to clean up the RSA key exchange code. ok "kill it with fire" beck@ tb@
2018-04-11preserve comments before .Dd when converting mdoc(7) to man(7)Ingo Schwarze
with mandoc -Tman; suggested by Thomas Klausner <wiz at NetBSD>
2018-04-11The pledge flag for file descriptors opened from /dev/fd was alwaysAlexander Bluhm
set for pledged processes. dup(2) uses the flag from the old file descriptor. Make open /dev/fd consistent to duplicate and inherit the flag. OK deraadt@
2018-04-11Two fixes in ping:Vadim Zhukov
1. Stop telling our PID to the world: the ident values could overlap anyway since PID space is larger than 16 bits for some time already. 2. No need for htons/ntohs dance with ident in IPv6 case. okay benno@ deraadt@ florian@
2018-04-11"listen on * port 80" means all v4 and v6 addresses these days.Florian Obser
OK benno
2018-04-11Make httpd listen on all IPv4 and IPv6 addresses forFlorian Obser
"listen on * port 80". While here accept up to 16 addresses from DNS or interface groups. requested by & "lovely" deraadt@ OK kn@
2018-04-11More steps for i386 Meltdown fix:Alexander Bluhm
- provide struct cpu_info_full - prepare K-U sections - reorganize interrupt, trap, syscall entry to use K-U trampoline - prepare pmap for entering special mappings, the mappings are not setup yet This code will already trigger performance issues. We do more tlb flushes, but we do not unmap the kernel yet. The latter will be needed to prevent Meltdown. from hshoexer@; input guenther@; OK mlarkin@ deraadt@
2018-04-11Stop telling patch(1) runs ed(1).Vadim Zhukov
okay tb@ and benno@
2018-04-10Check that a file descriptor's plegde flag is correctly propagated.Alexander Bluhm
The test covers the system calls dup, dup2, dup3, open /dev/fd, and file descriptor passing. The fstat(1) output is analysed.