syslogd tcp linebuf

2015-09-01 Thread Alexander Bluhm
Hi, Instead of creating a line buffer on the stack, tcp_readcb() can use the global linebuf like the other read callbacks. ok? bluhm Index: usr.sbin/syslogd/syslogd.c === RCS file:

Re: sendsyslog error log

2015-09-01 Thread Theo de Raadt
Seems good to me. I wouldn't bother with disabling this in SMALL_KERNEL. Space is not short enough to complicate the code for ~200 bytes. > To make syslog reliable, I want to see log messages about failed > log atempts. sendsyslog(2) seems a good place to detect and report > the problem. > >

sendsyslog error log

2015-09-01 Thread Alexander Bluhm
Hi, To make syslog reliable, I want to see log messages about failed log atempts. sendsyslog(2) seems a good place to detect and report the problem. ok? bluhm Index: kern/subr_log.c === RCS file:

Re: ksh sanatizing argv redundant

2015-09-01 Thread Martijn van Duren
On 09/01/15 03:49, Theo de Raadt wrote: Martijn van Duren wrote: Hello tech@, I took a quick glance at ksh and one of the first things I noticed was that it uses some sanatizing code on argv. When looking at execve(2) I see that EINVAL or EFAULT are returned when argv isn't properly

Re: ntpd(8): Make -n quieter

2015-09-01 Thread Peter Hessler
On 2015 Aug 31 (Mon) at 14:28:11 -0400 (-0400), Michael Reed wrote: :On 08/31/15 07:36, Sebastian Benoit wrote: :> Michael Reed(m.r...@mykolab.com) on 2015.08.30 14:58:35 -0400: :>> Hi all, :>> :>> If ntpd is run with the -n flag, and /etc/ntpd.conf is parsed without :>> error, then "Configuration

Re: Journaled Soft Updates

2015-09-01 Thread Bob Beck
I would much rather see something llike wapbl ported than this.. I believe there be dragons here. You're welcome to try, but I anticipate heartbraak ;) If you're going to try I'd rather see a diff you got *working* rather than just the structure definitions for something that might never be

[WIP PATCH] SR RAID1 checksumming support V2

2015-09-01 Thread Karel Gardas
Hello, attached my work in progress on checksumming support for softraid RAID1. Currently it does: - computation of checksums (crc32) - verification of checksums - hang-over to another chunk (restart wu) in case of checksum error - properly handle errors happening on all chunks - signal bad

[patch] do bulk reads with one transfer in ugen(4)

2015-09-01 Thread Grant Czajkowski
Hi, In ugen(4), bulk reads of length > UGEN_BBSIZE are split into multiple transfers. This patch instead sends a single transfer utilizing USBD_NO_COPY. Grant Index: ugen.c === RCS file: /cvs/src/sys/dev/usb/ugen.c,v retrieving

Re: Journaled Soft Updates

2015-09-01 Thread Ted Unangst
Walter Neto wrote: > Hi, > > Here is the first patch to bring Journaling to OpenBSD based on the McKusick > paper: https://www.bsdcan.org/2010/schedule/attachments/141_suj-slides.pd and > FreeBSD 10 > > This first patch is just for structures and definitions. > > I know is my first patch

Journaled Soft Updates

2015-09-01 Thread Walter Neto
Hi, Here is the first patch to bring Journaling to OpenBSD based on the McKusick paper: https://www.bsdcan.org/2010/schedule/attachments/141_suj-slides.pd and FreeBSD 10 This first patch is just for structures and definitions. I know is my first patch suggestion and this feature is not usual,

Re: [patch] in usb(4) check for dangerous requests

2015-09-01 Thread Martin Pieuchot
On 31/08/15(Mon) 19:53, Grant Czajkowski wrote: > Hi all, > > This patch adds the usb control request validity checks > already present in ugen(4) to usb(4). Committed, thanks! > Index: usb.c > === > RCS file:

Re: doas path

2015-09-01 Thread Marc Espie
On Mon, Aug 31, 2015 at 06:27:15PM -0400, Ted Unangst wrote: > I think we can relax the path restriction if there's no restriction on > command. > Works for me. okay espie@

patch: refactoring tsort.c a bit

2015-09-01 Thread Marc Espie
Well, I've changed my coding style a bit. This rewrites the two blobs of code in main() to actually be distinct functions, adds a find_normal_cycle to avoid going off the edge of the screen. There's removal of exit() in there to allow the canari to squeak (or not). Comments, okay... Index:

Re: virtualization support

2015-09-01 Thread Denis Fondras
> TL;DR - a native hypervisor is coming. stay tuned. > Good job ! Getting rid of systemdOS by 5.9 would be a blast :D

Re: PF ignores block action when rule contains route-to/dup-to action

2015-09-01 Thread Alexandr Nedvedicky
Hello, > > As a side effect the patch breaks block rules with dup-to action. dup-to > > action as a part of block rule might make some sense... So if there is > > someone, who really needs block ... dup-to he should opt for equivalent > > rule using pass ... route-to > > > > Also there is one

Re: PF ignores block action when rule contains route-to/dup-to action

2015-09-01 Thread Joerg Jung
> On 01 Sep 2015, at 14:31, Alexandr Nedvedicky > wrote: > >>> As a side effect the patch breaks block rules with dup-to action. dup-to >>> action as a part of block rule might make some sense... So if there is >>> someone, who really needs block ... dup-to he

Re: PF ignores block action when rule contains route-to/dup-to action

2015-09-01 Thread Mike Belopuhov
On 1 September 2015 at 14:31, Alexandr Nedvedicky wrote: > Hello, > > >> > As a side effect the patch breaks block rules with dup-to action. dup-to >> > action as a part of block rule might make some sense... So if there is >> > someone, who really needs block ...

Re: [PATCH] PF: cksum modification & refactor [3/24]

2015-09-01 Thread Richard Procter
Hi Sasha, On 1/09/2015, at 12:47 AM, Alexandr Nedvedicky wrote: > the code in patch looks good for the first glance. However it seems to me > the newly introduced pf_cksum_fixup*() are not called yet. Do you think you > can reshuffle changes between your set of patches a bit, so the newly >

But wait, there's more.. another 5.8 song!

2015-09-01 Thread Bob Beck
Coming soon to http://www.openbsd.org/lyrics.html is the next 5.8 release song "A Year In The Life". I seem to have this bad habit of talking to Theo about release themes when drinking alcohol, and it brings out the poet (My inner Weird Al) in me. Then I get cajoled into finishing the Opus

Re: Call for Testing: rtalloc(9) change

2015-09-01 Thread Martin Pieuchot
On 31/08/15(Mon) 11:52, Martin Pieuchot wrote: > On 25/08/15(Tue) 12:27, Martin Pieuchot wrote: > > On 12/08/15(Wed) 17:03, Martin Pieuchot wrote: > > > I'm currently working on the routing table interface to make is safe > > > to use by multiple CPUs at the same time. The diff below is a big > >

Re: Introducing rtvalid(9)

2015-09-01 Thread Alexander Bluhm
On Tue, Sep 01, 2015 at 03:03:07PM +0200, Martin Pieuchot wrote: > Now I still believe that such conversions should not be committed all at > once because they might have undesirable side effects. So here's a > first diff that I need for my rtalloc(9) rewrite. Are you ok with it? Yes, and small

Re: Introducing rtvalid(9)

2015-09-01 Thread Martin Pieuchot
On 01/09/15(Tue) 00:23, Alexander Bluhm wrote: > On Fri, Aug 28, 2015 at 12:47:51PM +0200, Martin Pieuchot wrote: > > The rtvalid() function checks if the route entry rt is still valid and > > can be used. Cached entries that are no longer valid should be > > released > > by

Re: ntpd(8): Make -n quieter

2015-09-01 Thread Gleydson Soares
On Tue, Sep 01, 2015 at 09:21:03AM +0200, Peter Hessler wrote: > On 2015 Aug 31 (Mon) at 14:28:11 -0400 (-0400), Michael Reed wrote: > :On 08/31/15 07:36, Sebastian Benoit wrote: > :> Michael Reed(m.r...@mykolab.com) on 2015.08.30 14:58:35 -0400: > :>> Hi all, > :>> > :>> If ntpd is run with the