Support for Realtek RTL8125 2.5Gb Ethernet controller

2019-11-14 Thread Kevin Lo
Hi, The following diff adds support for Realtek RTL8125 chip. Tested with Syba SD-PEX24065. Test reports and OKs are welcome. Index: share/man/man4/Makefile === RCS file: /cvs/src/share/man/man4/Makefile,v retrieving revision 1.740

Re: Fix cpio -Hustar -o

2019-11-14 Thread Philip Guenther
On Thu, Nov 14, 2019 at 1:36 PM Christian Weisgerber wrote: > I found this discrepancy surprising: > > $ find /bin -print | cpio -o -Hustar >foo > $ file foo > foo: POSIX tar archive > $ find /bin -print | cpio -Hustar -o >foo > $ file foo > foo: ASCII cpio archive (SVR4 with CRC) > > The argumen

Re: ifconfig inet6 netmask

2019-11-14 Thread Sebastian Benoit
Alexander Bluhm(alexander.bl...@gmx.net) on 2019.11.14 22:50:50 +0100: > Hi, > > While writing my ifconfig regress test I realized that IPv6 netmasks > are parsed, but silently ignored. Ignoring commandline parameters > feels wrong and is inconsistent to IPv4. > > Of course I don't expect anyone

Re: Fix cpio -Hustar -o

2019-11-14 Thread Christian Weisgerber
Klemens Nanni: > cpio -o [-AaBcjLvZz] [-C bytes] [-F archive] [-H format] [-O archive] > < name-list [> archive] > cpio -i [-6BbcdfjmrSstuvZz] [-C bytes] [-E file] [-F archive] [-H format] > [-I archive] [pattern ...] [< archive] > cpio -p [-adLlmuv] destination-directory < name-list >

ifconfig inet6 netmask

2019-11-14 Thread Alexander Bluhm
Hi, While writing my ifconfig regress test I realized that IPv6 netmasks are parsed, but silently ignored. Ignoring commandline parameters feels wrong and is inconsistent to IPv4. Of course I don't expect anyone to use something like this: ifconfig vether0 inet6 fdd7:e83e:66bc:::17 netmask

OpenSSH U2F/FIDO support in base

2019-11-14 Thread Damien Miller
Hi, I just committed all the dependencies for OpenSSH security key (U2F) support to base and tweaked OpenSSH to use them directly. This means there will be no additional configuration hoops to jump through to use U2F/FIDO2 security keys. Hardware backed keys can be generated using "ssh-keygen -t

Re: Fix cpio -Hustar -o

2019-11-14 Thread Klemens Nanni
On Thu, Nov 14, 2019 at 10:09:20PM +0100, Christian Weisgerber wrote: > The argument order should not matter here. The synopsis however seems to dictate it coming first: cpio -o [-AaBcjLvZz] [-C bytes] [-F archive] [-H format] [-O archive] < name-list [> archive] cpio -i [-6BbcdfjmrSstuvZz] [

Fix cpio -Hustar -o

2019-11-14 Thread Christian Weisgerber
I found this discrepancy surprising: $ find /bin -print | cpio -o -Hustar >foo $ file foo foo: POSIX tar archive $ find /bin -print | cpio -Hustar -o >foo $ file foo foo: ASCII cpio archive (SVR4 with CRC) The argument order should not matter here. Fix: When proc

Re: iked(8): use msg_valid to handle duplicate fragment sequence numbers

2019-11-14 Thread Alexander Bluhm
On Mon, Nov 11, 2019 at 06:47:35PM +0100, Tobias Heider wrote: > With IKEv2 message fragmentation a message is split into several fragments, > which all have the same sequence number. In the original commit this was > handled with an explicit exception to accept the same sequence number as > before

Re: ftp(1): HTTP/1.1

2019-11-14 Thread Theo Buehler
On Mon, Nov 11, 2019 at 06:07:46PM +0200, Jeremie Courreges-Anglas wrote: > > More and more people seem to reject HTTP/1.0 clients, to avoid log spam, > vulnerability scanners, etc. Some MASTER_SITES in ports started doing > this (eg https://download.samba.org). > > The diff below implements HTT

Re: iked(8): fix error handling in msg_send

2019-11-14 Thread Tobias Heider
On Thu, Nov 14, 2019 at 09:57:27AM -0700, Theo de Raadt wrote: > > > > The problem here is that log_warn can change errno, > > No, it specifically avoids touching errno. > > log_warn(const char *emsg, ...) > { > char*nfmt; > va_list ap; > int

Re: iked(8): fix error handling in msg_send

2019-11-14 Thread Theo de Raadt
Tobias Heider wrote: > On Thu, Nov 14, 2019 at 05:25:48PM +0100, Mike Belopuhov wrote: > > > > Tobias Heider writes: > > > > > Hi, > > > > > > in the error case ikev2_msg_send the accesses the sa before checking for > > > NULL. The diff adds explicit checks in those cases. > > > If sendtofrom f

Re: iked(8): fix error handling in msg_send

2019-11-14 Thread Tobias Heider
On Thu, Nov 14, 2019 at 05:25:48PM +0100, Mike Belopuhov wrote: > > Tobias Heider writes: > > > Hi, > > > > in the error case ikev2_msg_send the accesses the sa before checking for > > NULL. The diff adds explicit checks in those cases. > > If sendtofrom fails for any other reason than EADDRNOTAV

Re: iked(8): fix error handling in msg_send

2019-11-14 Thread Mike Belopuhov
Tobias Heider writes: > Hi, > > in the error case ikev2_msg_send the accesses the sa before checking for > NULL. The diff adds explicit checks in those cases. > If sendtofrom fails for any other reason than EADDRNOTAVAIL and sa is not NULL > we should continue instead of returning (-1) so that t

Re: [PATCH] make: implement jobserver and use it to avoid exponential behavior

2019-11-14 Thread Marc Espie
On Thu, Nov 14, 2019 at 05:30:34PM +0200, Lauri Tirkkonen wrote: > > > @@ -347,10 +360,9 @@ print_errors(void) > > > static void > > > setup_signal(int sig) > > > { > > > - if (signal(sig, SIG_IGN) != SIG_IGN) { > > > - (void)signal(sig, notice_signal); > > > - sigaddset(&sigset,

iked(8): fix error handling in msg_send

2019-11-14 Thread Tobias Heider
Hi, in the error case ikev2_msg_send the accesses the sa before checking for NULL. The diff adds explicit checks in those cases. If sendtofrom fails for any other reason than EADDRNOTAVAIL and sa is not NULL we should continue instead of returning (-1) so that the error is handled with retransmiss

Re: [PATCH] make: implement jobserver and use it to avoid exponential behavior

2019-11-14 Thread Marc Espie
On Thu, Nov 14, 2019 at 05:30:34PM +0200, Lauri Tirkkonen wrote: > Yeah, you're right, it reads like crap, I'll rewrite it. The gist of the > thing is that 'expensive' heuristic is now only used to decide whether > or not to print the failed command. I object to that. Keep the "expensive" heuristi

Re: [PATCH] make: implement jobserver and use it to avoid exponential behavior

2019-11-14 Thread Lauri Tirkkonen
Hi, thanks for your comments. More responses inline, but I'd like to mention up front that further testing I've made agrees with you; this isn't ready by any means. I observed one hang I've yet to debug (very bad), and the speedups weren't that great in some cases either (more on that later). I d

Re: [PATCH] make: implement jobserver and use it to avoid exponential behavior

2019-11-14 Thread Marc Espie
On Tue, Nov 05, 2019 at 03:22:08PM +, Lauri Tirkkonen wrote: > Hi, > > make has the concept of 'expensive' jobs: if the command line includes > the word "make" in it, the command is considered expensive and other > jobs are held until that job finishes. It does this to avoid exponential > beha

Re: _pbuild user to have priority=5

2019-11-14 Thread Stuart Henderson
On 2019/11/14 10:26, Solene Rapenne wrote: > any other people noticed a difference with the priority change? Can't tell if it has affected bulk builds, between bugs being committed and some changes to ports/packages that would affect build times it's hard to say. Maybe when the dust has settled I'

Re: Remove NetChip from cdce

2019-11-14 Thread Stuart Henderson
On 2019/11/13 18:40, Aaron Bieber wrote: > Hi, > > I have a raspberry pi 0 that attaches as: > cdce0 at uhub0 port 3 configuration 2 interface 0 "Linux 4.19.75+ with \ > 2098.usb RNDIS/Ethernet Gadget" rev 2.00/4.19 addr 10 > > Unfortunately the cdce interface does not work with this pa

exact meaning of bio(4) bv_level

2019-11-14 Thread Jonathan Matthew
Recently I plugged in an old box we got a while ago that used to crash weirdly during boot and to my surprise, everything works now. 'bioctl mfi0' gave me further surprises, as it claimed there was a four disk RAID17 volume. It turns out megaraids give us SNIA DDF raid levels, which include exoti

Re: sysupgrade: Allow to use another directory for the sets

2019-11-14 Thread Renaud Allard
On 11/13/19 11:51 PM, Renaud Allard wrote: On 12/11/2019 19:02, Renaud Allard wrote: On 12/11/2019 08:29, Theo de Raadt wrote: Renaud, please test it for me like this:   sysupgrade -d / This interface is dangerously incorrect. What about this one? ping. I haven't seen any rep

Re: _pbuild user to have priority=5

2019-11-14 Thread Solene Rapenne
On Wed, Nov 06, 2019 at 02:38:52PM +0100, Marc Espie wrote: > On Sat, Nov 02, 2019 at 02:35:28PM +0100, Solene Rapenne wrote: > > On Sat, Nov 02, 2019 at 01:18:53PM +, Stuart Henderson wrote: > > > On 2019/11/01 19:16, Theo de Raadt wrote: > > > > Ted Unangst wrote: > > > > > > > > > Theo de

Fw: drm core/helpers and MIT license

2019-11-14 Thread Simon Ser
Hi OpenBSD and NetBSD folks, Here [1] is an e-mail from Daniel Vetter that probably affect you. It's about the DRM subsystem license. It would be nice if you could reply to the original post with your thoughts. Thanks, Simon Ser [1]: https://lists.freedesktop.org/archives/dri-devel/2019-Novembe