tcp socket splicing block output

2017-11-07 Thread Alexander Bluhm
Hi, I had to debug a crash in socket splicing that happened with an old version of OpenBSD 5.2. It is triggered when system calls and TCP packets with urgent pointer occur in a certain order. The crash does not happen in OpenBSD -current as I delay moving the spliced data to a special sosplice t

sysctl.3: Fix variable spelling

2017-11-07 Thread Scott Bennett
'bet.' -> 'net.' diff --git lib/libc/gen/sysctl.3 lib/libc/gen/sysctl.3 index 8d17e4796c8..15abe1e2ec3 100644 --- lib/libc/gen/sysctl.3 +++ lib/libc/gen/sysctl.3 @@ -1340,7 +1340,7 @@ The variables are as follows: Returns number of packet dropped. .It Dv IFQCTL_LEN Pq Va net.inet.ip.ifq.len Re

Re: [PATCH] amd64/bsd.rd: add growfs(8)

2017-11-07 Thread Job Snijders
On Mon, Nov 06, 2017 at 04:14:48PM -0700, Theo de Raadt wrote: > I agree on that. So please put it into the correct lists files for > all the unlimited ramdisks. > > Job, the situation is a little nit-picky but try to do it for all the > architectures and I'll give you fast feedback. This is wha

Re: xhci: fix off-by-one-trb

2017-11-07 Thread Martin Pieuchot
On 07/11/17(Tue) 17:16, Paul Irofti wrote: > > http://vcs.in-berlin.de/stsp_xhci/ci/e122929b48589657?sbs=0 > > Nice repo, would have been useful to know about it sooner :) > > > With your diff, the last TRB will not be processed because > > xhci_xfer_tdsize() now returns zero for the second-to-la

Re: xhci: fix off-by-one-trb

2017-11-07 Thread Paul Irofti
> http://vcs.in-berlin.de/stsp_xhci/ci/e122929b48589657?sbs=0 Nice repo, would have been useful to know about it sooner :) > With your diff, the last TRB will not be processed because > xhci_xfer_tdsize() now returns zero for the second-to-last TRB. Okay, if that is true than xhci_device_generic

Collapse ipsecctl(8) flow output

2017-11-07 Thread Martin Pieuchot
ipsecctl(8)'s output is easily parsed by a program but not by human brain, at least not by mine. The programs currently dumps one flow per line. While this is perfect when you want to see the content of the radix-tree, it is hard to compare what's in there with what you specified in ipsec.conf(5)

Re: tftpd(8): diff for ip path rewrite

2017-11-07 Thread Alexander Bluhm
On Wed, Oct 25, 2017 at 06:54:01PM +0200, Jeremie Courreges-Anglas wrote: > New diff after feedback from jmc@ OK bluhm@ > Index: tftpd.8 > === > RCS file: /d/cvs/src/usr.sbin/tftpd/tftpd.8,v > retrieving revision 1.5 > diff -u -p -r1

Flushing IPsec flow w/ radix-tree

2017-11-07 Thread Martin Pieuchot
This one is similar to my previous dump diff. I'd like to iterate on the radix-tree to flush flows, this will allows us to get rid of the global list. ok? Index: net/pfkeyv2.c === RCS file: /cvs/src/sys/net/pfkeyv2.c,v retrieving re

Re: Have installboot default to the device carrying /

2017-11-07 Thread Paul de Weerd
On Tue, Nov 07, 2017 at 12:38:17AM -0700, Theo de Raadt wrote: | >On Mon, Nov 06, 2017 at 03:24:30PM -0700, Theo de Raadt wrote: | >| > Here's a diff that will make it default to the device carrying the | >| > root filesystem. Result this: | >| | >| I disagree strongly with this. installboot is

Re: how does ld.so work when dlsym'ing a weak symbol (environ)

2017-11-07 Thread Christian Kellermann
* Philip Guenther [171107 00:44]: > On Mon, Nov 6, 2017 at 2:37 PM, Christian Kellermann > wrote: > > > > While porting a smalltalk VM to OpenBSD I came across this peculiar > > quirk and I don't quite understand what's going on. > > > > This VM does its FFI calls through dlopen'ing and dlsym'ing