Re: libc: __getcwd() is hidden

2016-05-30 Thread Philip Guenther
On Sun, 29 May 2016, Philip Guenther wrote: > Total turd polishing: __getcwd() isn't ex, so ported in the shared > version of libc, ... "__getcwd() isn't exported in the shared version of libc"

Re: MBIM Patch - Part 1 of 4

2016-05-30 Thread Gerhard Roth
On Sat, 28 May 2016 09:18:13 +0200 Stefan Sperling wrote: > On Mon, May 23, 2016 at 03:37:32PM +0200, Gerhard Roth wrote: > > I have this stuff around quite a while now, but since patrick@ asked > > me repeatedly, I think it is time to share this now. > > > > This is a patch that

Clean up regress/usr.bin/sdiff

2016-05-30 Thread Ray Lai
Okan reminded me that my old regress tests used systrace policy files as example text, which weren't the easiest to decypher. I've replaced them with simpler files that should make life easier for any future regress test writers. Comments? Suggestions? Ray Index: Iflag12.out

Re: video(1) mmap support

2016-05-30 Thread Theo Buehler
On Mon, May 30, 2016 at 10:02:23AM +0200, Marcus Glocker wrote: > I was in the middle of testing a uvideo(4) mmap queue diff when I > noticed that our video(1) tool doesn't support the mmap method to grab > frames. This diff adds it and also makes mmap the default method. > > Some test reports

video(1) mmap support

2016-05-30 Thread Marcus Glocker
I was in the middle of testing a uvideo(4) mmap queue diff when I noticed that our video(1) tool doesn't support the mmap method to grab frames. This diff adds it and also makes mmap the default method. Some test reports with different uvideo(4) devices would be welcome. It would be good if you

nd6 timers vs ticks

2016-05-30 Thread David Gwynne
llinfo_nd6 thinks its expiry may extend beyond a timeout interval. so it keeps track of the number of ticks it really wants via ln_ntick in llinfo_nd6 and schedules multiple timeouts to reach it. i think this is a waste of time for two reasons: 1. nd6_llinfo_settimer() (which sets this up)

Re: MBIM Patch - Part 1 of 4

2016-05-30 Thread Stefan Sperling
On Mon, May 30, 2016 at 09:35:13AM +0200, Gerhard Roth wrote: > Yes mbim does support IPv6, but the code is still missing. > I just don't have a SIM card for a provider that gives me an IPv6 > address. So I could only implement it without testing. Let's just wait until IPv6 arrives in the telco

Re: video(1) mmap support

2016-05-30 Thread Marcus Glocker
On Mon, May 30, 2016 at 10:49:10AM +0200, Theo Buehler wrote: > On Mon, May 30, 2016 at 10:02:23AM +0200, Marcus Glocker wrote: > > I was in the middle of testing a uvideo(4) mmap queue diff when I > > noticed that our video(1) tool doesn't support the mmap method to grab > > frames. This diff

Re: plug rt leak

2016-05-30 Thread Martin Pieuchot
On 25/05/16(Wed) 01:47, Alexander Bluhm wrote: > On Tue, May 24, 2016 at 05:03:32PM +0200, Martin Pieuchot wrote: > > Hrvoje Popovski founds that as soon as his ARP cache reached 2097152 > > entries his machine started leaking route entries. > > > > Turns out that with that many entries he

Re: nd6 timers vs ticks

2016-05-30 Thread Todd C. Miller
On Mon, 30 May 2016 17:16:24 +1000, David Gwynne wrote: > llinfo_nd6 thinks its expiry may extend beyond a timeout interval. > > so it keeps track of the number of ticks it really wants via ln_ntick > in llinfo_nd6 and schedules multiple timeouts to reach it. > > i think this is a waste of time

exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Theo Buehler
It may be somewhat interesting to mention why expm1(x) = exp(x) - 1 and log1p(x) = log(1 + x) are provided and what their historical purpose is. However, as mlarkin@ put it: are any of our users of exp(3) going to seriously be asking themselves "hmm, is OpenBSD's exp compatible with BASIC on the

Re: utvfu driver port

2016-05-30 Thread Martin Pieuchot
On 26/05/16(Thu) 16:09, patrick keshishian wrote: > > Included is my initial effort to port the dual-licensed driver > for Fushicai Audio-Video Grabber (vendor 0x1b71 product 0x3002). Nice. Did you test both bulk and iso? Some comments inline. > Index: dev/usb/files.usb >

nd6_output() and NULL

2016-05-30 Thread Martin Pieuchot
Here's a corrected version of the previous diff that got backed out. The idea is still to stop calling nd6_output() with a NULL ``rt'' argument in order to always use the same code path when inserting routes. ok? Index: net/pf.c

ip_output, KERNEL_LOCK and multicast

2016-05-30 Thread Martin Pieuchot
Do not grab the KERNEL_LOCK if the source address is already specified. Note that the sending path will still be done while holding the KERNEL_LOCK but it doesn't hurt to get this right. Plus this makes it similar to another chunk in this file. ok? Index: netinet/ip_output.c

Re: exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Marc Espie
On Mon, May 30, 2016 at 03:34:04PM +0200, Joerg Sonnenberger wrote: > On Mon, May 30, 2016 at 02:16:20PM +0200, Theo Buehler wrote: > > It may be somewhat interesting to mention why expm1(x) = exp(x) - 1 and > > log1p(x) = log(1 + x) are provided and what their historical purpose is. > > However,

Re: ugen(4) Asynchronous USB Requests

2016-05-30 Thread Martin Pieuchot
Hello Phil, On 26/05/16(Thu) 14:55, Phil Vachon wrote: > Hi all, > > In order to make iPhone USB tethering work with OpenBSD, I ended up  > going a bit down the proverbial rabbit's hole. > > After initially playing around with trying to build a userspace  > 'driver' using a tap interface, I

Re: W^X compliance

2016-05-30 Thread Marc Espie
On Sun, May 29, 2016 at 12:00:14PM -0600, Theo de Raadt wrote: > If anyone decides to engage an upstream developer about their software > performing W^X violations, please be respectful, detailed, and calm. > The major W^X violators which remain are not simple pieces of > software, and their

Re: siginfo_t.si_addr should be void*

2016-05-30 Thread Martin Pieuchot
On 27/04/16(Wed) 18:52, i80...@foxquill.com wrote: > On 2016-04-27 18:20, Joerg Sonnenberger wrote: > >This > >[...snip...] > >and this disagree? > > I... am so sorry. You're right of course; I don't know how that patch > happened. ok mpi@ > diff --git a/src/sys/sys/siginfo.h

Re: Bridge STP and multicast address

2016-05-30 Thread Martin Pieuchot
On 24/05/16(Tue) 13:08, Alexandre MOREL wrote: > Hi, > > Hope that I'm writing to the adequate mailing list in order to have some > ideas or point of view about a functionality need after some troubleshoot > with STP and other networks devices. > > In order to have two "redundancy" firewalls

Re: plug rt leak

2016-05-30 Thread Alexander Bluhm
On Mon, May 30, 2016 at 02:24:10PM +0200, Martin Pieuchot wrote: > Good catch, updated diff below. OK bluhm@ > > Index: net/route.c > === > RCS file: /cvs/src/sys/net/route.c,v > retrieving revision 1.300 > diff -u -p -r1.300

Re: ip_output, KERNEL_LOCK and multicast

2016-05-30 Thread Stefan Sperling
On Mon, May 30, 2016 at 02:49:11PM +0200, Martin Pieuchot wrote: > Do not grab the KERNEL_LOCK if the source address is already specified. > > Note that the sending path will still be done while holding the > KERNEL_LOCK but it doesn't hurt to get this right. Plus this makes it > similar to

Re: exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Joerg Sonnenberger
On Mon, May 30, 2016 at 02:16:20PM +0200, Theo Buehler wrote: > It may be somewhat interesting to mention why expm1(x) = exp(x) - 1 and > log1p(x) = log(1 + x) are provided and what their historical purpose is. > However, as mlarkin@ put it: are any of our users of exp(3) going to > seriously be

Re: exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Mark Kettenis
> Date: Mon, 30 May 2016 15:34:04 +0200 > From: Joerg Sonnenberger > > On Mon, May 30, 2016 at 02:16:20PM +0200, Theo Buehler wrote: > > It may be somewhat interesting to mention why expm1(x) = exp(x) - 1 and > > log1p(x) = log(1 + x) are provided and what their historical purpose

Re: exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Joerg Sonnenberger
On Mon, May 30, 2016 at 04:30:10PM +0200, Marc Espie wrote: > On Mon, May 30, 2016 at 03:34:04PM +0200, Joerg Sonnenberger wrote: > > On Mon, May 30, 2016 at 02:16:20PM +0200, Theo Buehler wrote: > > > It may be somewhat interesting to mention why expm1(x) = exp(x) - 1 and > > > log1p(x) = log(1 +

pppoe(4) vlan priorities

2016-05-30 Thread Stuart Henderson
So people are running into the pppoe vlan priority problem again, some ISP equipment doesn't like the default of IFQ_DEFPRIO (prio 3). http://permalink.gmane.org/gmane.os.openbsd.misc/231358 As things stand, priority of normal IP packets can be set using PF rules, but there's no way to set the

Re: ugen(4) Asynchronous USB Requests

2016-05-30 Thread Phil Vachon
Hi Martin, Thank you very much for the information and commentary! On May 30, 2016 at 9:28:52 AM, Martin Pieuchot wrote: > Hello Phil, >  > On 26/05/16(Thu) 14:55, Phil Vachon wrote: > > Hi all, > > > > -- snip -- >  > You should get in touch with Grant Czajkowski, he did something similar >

Re: sed/regcomp bug?

2016-05-30 Thread Ingo Schwarze
Hi Martijn, Martijn van Duren wrote on Sat, May 28, 2016 at 10:58:27PM +0200: > Here's part two of the sed fix. It applies the just added > REG_NOTBOL|REG_STARTEND change to sed, so that begin of word > matches directly after a previous match, ending in not a > word, can match. > > It passes

Re: nd6_output() and NULL

2016-05-30 Thread Alexander Bluhm
On Mon, May 30, 2016 at 02:46:18PM +0200, Martin Pieuchot wrote: > Here's a corrected version of the previous diff that got backed out. > > The idea is still to stop calling nd6_output() with a NULL ``rt'' > argument in order to always use the same code path when inserting > routes. > > ok? OK

Re: exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Theo Buehler
On Mon, May 30, 2016 at 06:24:55PM +0200, Mark Kettenis wrote: > > Date: Mon, 30 May 2016 15:34:04 +0200 > > From: Joerg Sonnenberger > > > > On Mon, May 30, 2016 at 02:16:20PM +0200, Theo Buehler wrote: > > > It may be somewhat interesting to mention why expm1(x) = exp(x) - 1 and

Re: pool related crashes, but "kernel did no panic"

2016-05-30 Thread Alexey Suslikov
On Thu, May 12, 2016 at 4:14 PM, Bob Beck wrote: > Thank you!now that's a bug report.. Hi. Moved to 6.0-beta some time ago to make crash dumps more up to date. Also, removed some services to minimize their impact. Fresh build against today's cvs don't survived even half

make nd6_llinfo_settimer use seconds, not ticks

2016-05-30 Thread David Gwynne
internally, nd6 llinfo keeps track of seconds, and the majority of the callers work in seconds. the exception is the nd_ifinfo retrans stuff which is msec, not seconds. i believe there is a bug fix in here too relating to the use of nd_defrouter.expire handling in nd6_free. from what i can tell,

small glitch in pfctl_show_rules()

2016-05-30 Thread Alexandr Nedvedicky
Hello, Petr Hoffmann discovered glitch in 'pfctl -a "*" -sr' command when it is recursively dumping rulesets from PF kernel module. The ruleset in kernel got created by screw-it.sh shell script: #!/bin/sh pfctl -d echo 'anchor "../bar/*"\nanchor "bar/*"' |pfctl -a foo -f - echo

Re: -current packages that need rebuilding from recent ABI break

2016-05-30 Thread Daniel Wilkins
> Stuart Henderson said: > > Are you sure it's errno related and not something else (e.g. lack of > > following http://www.openbsd.org/faq/current.html#r20160527 ("2016/05/27 > > - fstab needs wxallowed flag on /usr/local")? It may have been. I just went through a fresh install (had some

bgpd: filter as path with operators

2016-05-30 Thread Sebastian Benoit
Hi, this allows to have allow from any AS 64512 - 65534 ... allow from any AS > 100 etc in bgpd.conf. Ignore the example file for now, i will commit that seperatly anyway. One obvious improvment would be to be able to use this in bgpctl to restrict the output of "show rib" a bit more.

Re: pppoe(4) vlan priorities

2016-05-30 Thread Mike Belopuhov
On 30 May 2016 at 20:15, Stuart Henderson wrote: > On 2016/05/30 19:26, Daniel Gillen wrote: >> Just tested your patch on my 5.9-stable amd64 gateway. >> >> Setting SPPP_CTL_PRIO to 1 and adding "match out on pppoe0 set prio 1" >> to /etc/pf.conf solves my issues. > > Thanks

-current packages that need rebuilding from recent ABI break

2016-05-30 Thread Daniel Wilkins
The mpv and libreoffice packages need to get rebuilt after the abi change; it seems like they were missed when most other things got updated, they're still giving the errno crash on startup.

Re: pppoe(4) vlan priorities

2016-05-30 Thread Daniel Gillen
On 30.05.2016 18:24, Stuart Henderson wrote: > So people are running into the pppoe vlan priority problem again, some > ISP equipment doesn't like the default of IFQ_DEFPRIO (prio 3). > > http://permalink.gmane.org/gmane.os.openbsd.misc/231358 > > As things stand, priority of normal IP packets

Re: exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Mark Kettenis
> Date: Mon, 30 May 2016 18:55:42 +0200 > From: Theo Buehler > > On Mon, May 30, 2016 at 06:24:55PM +0200, Mark Kettenis wrote: > > > Date: Mon, 30 May 2016 15:34:04 +0200 > > > From: Joerg Sonnenberger > > > > > > On Mon, May 30, 2016 at 02:16:20PM +0200, Theo

Re: ptrace PT_IO write bug

2016-05-30 Thread Jeremie Courreges-Anglas
Mark Kettenis writes: > Mathieu - schreef op 2016-05-28 13:05: >> Martin Natano wrote: >>> The diff reads fine to me, however it is incomplete. There are some >>> callers of process_domem() in arch/. They will need to be changed too. >>> req seems to be in sync with

Re: exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Theo Buehler
> Sorry. No. The use of originally still implies that these functions > are no longer relevant for the purpose mentioned in the sentence. It > doesn't make sense without the historic context. I'd simply leave the > NOTES section as-is. Fine. Here's the diff only doing the markup stuff.

Re: pool related crashes, but "kernel did no panic"

2016-05-30 Thread Ted Unangst
Alexey Suslikov wrote: > On Thu, May 12, 2016 at 4:14 PM, Bob Beck wrote: > > Thank you!now that's a bug report.. > > Hi. > > Moved to 6.0-beta some time ago to make crash dumps more up > to date. Also, removed some services to minimize their impact. > > Fresh build

Re: pppoe(4) vlan priorities

2016-05-30 Thread Stuart Henderson
On 2016/05/30 19:26, Daniel Gillen wrote: > Just tested your patch on my 5.9-stable amd64 gateway. > > Setting SPPP_CTL_PRIO to 1 and adding "match out on pppoe0 set prio 1" > to /etc/pf.conf solves my issues. Thanks for testing. > The only drawback is having to change the source and compiling

Re: ptrace PT_IO write bug

2016-05-30 Thread Mark Kettenis
> From: Jeremie Courreges-Anglas > Date: Mon, 30 May 2016 19:30:27 +0200 > > Mark Kettenis writes: > > > Mathieu - schreef op 2016-05-28 13:05: > >> Martin Natano wrote: > >>> The diff reads fine to me, however it is incomplete. There are some > >>>

Re: exp.3: remove ancient history and some markup tweaks

2016-05-30 Thread Mark Kettenis
> Date: Mon, 30 May 2016 19:33:04 +0200 > From: Theo Buehler > > > Sorry. No. The use of originally still implies that these functions > > are no longer relevant for the purpose mentioned in the sentence. It > > doesn't make sense without the historic context. I'd simply

Re: -current packages that need rebuilding from recent ABI break

2016-05-30 Thread Stuart Henderson
On 2016/05/30 14:38, Daniel Wilkins wrote: > The mpv and libreoffice packages need to get rebuilt after the abi change; > it seems like they were missed when most other things got updated, they're > still giving the errno crash on startup. > All packages get rebuilt every few days on amd64/i386,

Re: video(1) mmap support

2016-05-30 Thread Theo Buehler
On Mon, May 30, 2016 at 02:29:08PM +0200, Marcus Glocker wrote: > On Mon, May 30, 2016 at 10:49:10AM +0200, Theo Buehler wrote: > > > On Mon, May 30, 2016 at 10:02:23AM +0200, Marcus Glocker wrote: > > > I was in the middle of testing a uvideo(4) mmap queue diff when I > > > noticed that our

Re: -current packages that need rebuilding from recent ABI break

2016-05-30 Thread Dmitrij D. Czarkoff
Stuart Henderson said: > Are you sure it's errno related and not something else (e.g. lack of > following http://www.openbsd.org/faq/current.html#r20160527 ("2016/05/27 > - fstab needs wxallowed flag on /usr/local")? Mpv doas not need "wxallow". -- Dmitrij D. Czarkoff

Re: nd6 timers vs ticks

2016-05-30 Thread Sebastian Benoit
David Gwynne(da...@gwynne.id.au) on 2016.05.30 17:16:24 +1000: > llinfo_nd6 thinks its expiry may extend beyond a timeout interval. > > so it keeps track of the number of ticks it really wants via ln_ntick > in llinfo_nd6 and schedules multiple timeouts to reach it. > > i think this is a waste

Re: video(1) mmap support

2016-05-30 Thread Marcus Glocker
On Mon, May 30, 2016 at 09:34:32PM +0200, Theo Buehler wrote: > The same tests went fine with these changes. Diff reads ok to me, it's > really easy to follow what is happening. > > Very minor comments inline. Thanks for your comments. I agree to all :-) Attached new diff. Index: video.1