mue(4): microchip lan75xx/lan78xx driver

2018-08-01 Thread Kevin Lo
Hi, This driver supports Microchip LAN75xx/LAN78xx USB Gigabit Ethernet devices. I tested with Z-TEK ZE582 [1] and Microchip EVB-LAN7800LC evaluation board [2] on i386 and amd64. [1] http://www.z-tek.com.cn/USBzhuanhuanxian/275.html [2] https://www.microchip.com/DevelopmentTools/ProductDetails/P

amce-client.conf.5 - "domain certificate", "domain full chain certificate" are optional

2018-08-01 Thread Ross L Richardson
According to code (and testing), each is optional but at least one must be present. Index: acme-client.conf.5 === RCS file: /cvs/src/usr.sbin/acme-client/acme-client.conf.5,v retrieving revision 1.13 diff -u -p -r1.13 acme-client.c

acme-client.1 - Change "TLS certificate" to "X.509 certificate"

2018-08-01 Thread Ross L Richardson
It's an "X.509 certificate" rather than a "TLS certificate". As pointed out by sthen@, TLS isn't the only possible use. Index: acme-client.1 === RCS file: /cvs/src/usr.sbin/acme-client/acme-client.1,v retrieving revision 1.24 diff

acme-client.1 - fix mangled sentence and stray plural

2018-08-01 Thread Ross L Richardson
This is the first of several diffs containing separate bits of the earlier combined diff. "X509" to "X.509" for correctness and consistency with acme-client.conf.5 Index: acme-client.1 === RCS file: /cvs/src/usr.sbin/acme-client/a

Re: correct nd6_timer_next accounting

2018-08-01 Thread Klemens Nanni
Running your diff on both my APU2 and X250, I no longer see NDP entries staying expired, so this is an improvement! More tests and review tomorrow, thanks for looking into this.

Re: Floating point exception on boot after using syspatch(8)

2018-08-01 Thread Philip Guenther
On Wed, 1 Aug 2018, Zbyszek Żółkiewski wrote: > OpenBSD 6.3 GENERIC.MP running on XEN (AWS m4.large) - dmesg at the end > of this mail. Image build from https://github.com/kolargol/openbsd-aws > which is fork from https://github.com/ajacoutot/aws-openbsd - my fork > have some minor modifications

correct nd6_timer_next accounting

2018-08-01 Thread Florian Obser
I'm chasing a bug in IPv6 where ndp reports an entry as (incomplete) but when you try to reach that target no neighbor solicitation is send. I think the reason for that is that no new nd6_timer is scheduled because the code thinks it is already scheduled. Maybe. I'm having a hard time reproducing

properly delete eigrpd(8)'s unix socket on shutdown

2018-08-01 Thread Ricardo Mestre
Hi, Currently the eigrp engine process from eigrpd(8) runs in a chroot and at the same time the unlink(socket) is called when its shutdown, of course this won't work because the file won't be found within the chroot environment. To solve this the patch below brings the control_cleanup() function

fix use-after-free on eigrpd(8)

2018-08-01 Thread Ricardo Mestre
Hi, eigrpd(8) should only free the configured interfaces after the eigrp instances on shutdown otherwise an use after free will happen and the name of the iface will also not be displayed since that information was already disposed. The use-after-free actually doesn't manifest everytime, but after

Regulator ramp delay

2018-08-01 Thread Mark Kettenis
Ramping up the voltage of a regulator takes time; the target voltage is not reached instantaniously. And typically you should not continue until the target voltage has been reached. For example, if we want to increase the clock speed of a CPU, we typically also need to increase the voltage. And

Re: [PATCH] jot(1): negative and overflowing reps

2018-08-01 Thread Scott Cheloha
On Tue, Jul 31, 2018 at 05:38:20PM -0500, Kris Katterjohn wrote: > On Wed, Aug 01, 2018 at 12:24:59AM +0200, Theo Buehler wrote: > > ok tb if anyone wants to commit. > > Cool, thanks for looking at this. > > > > + errx(1, "Bad reps value, %s: %s", errstr, > > > > A singl

Re: ssdfb(4): SSD1309 OLED display (128x64)

2018-08-01 Thread Patrick Wildt
On Tue, Jul 31, 2018 at 03:05:11PM +0200, Mark Kettenis wrote: > You might want to look at what the udl(4) driver does. The kernel > driver lives in sys/dev/usb/udl.c and implements a "damage" ioctl that > updates a region of the actual framebuffer from the virtual > framebuffer that lives in phys

Re: fix segfault on radiusd(8)

2018-08-01 Thread Ricardo Mestre
:facepalm: let's forget I sent the previous patch. OK? Index: radiusd.c === RCS file: /cvs/src/usr.sbin/radiusd/radiusd.c,v retrieving revision 1.20 diff -u -p -u -r1.20 radiusd.c --- radiusd.c 13 Jun 2017 05:40:22 - 1.20

Re: fix segfault on radiusd(8)

2018-08-01 Thread Sebastien Marie
On Wed, Aug 01, 2018 at 12:54:49PM +0100, Ricardo Mestre wrote: > Hi, > > When radiusd(8) starts shutting down one of the actions is to iterate through > the configured modules and freezero(3) each module->secret. By using the > config > from /etc/examples/radiusd.conf which has module bsdauth an

Re: fix segfault on radiusd(8)

2018-08-01 Thread Ricardo Mestre
Forgot to mention that I didn't use an if (module->secret != NULL) since it may look like the problem would be with freezero(3) which is not the case because this one accepts a NULL pointer without issues. On 12:54 Wed 01 Aug , Ricardo Mestre wrote: > Hi, > > When radiusd(8) starts shutting d

fix segfault on radiusd(8)

2018-08-01 Thread Ricardo Mestre
Hi, When radiusd(8) starts shutting down one of the actions is to iterate through the configured modules and freezero(3) each module->secret. By using the config from /etc/examples/radiusd.conf which has module bsdauth and radius configured and running it with -d then hit ^C it will segfault. This

[diff] Improvements for acme-client.1, acme-client.conf.5

2018-08-01 Thread Ross L Richardson
acme-client.1 changes are largely similar to my previous attempt [off-list] with some feedback from jsing@ [thanks!] The example has been changed from "example.com" to "www.example.com" in an attempt to make it clear that "domain" is a misnomer. acme-client.conf.5 stuff is mostly documenting whi

Floating point exception on boot after using syspatch(8)

2018-08-01 Thread Zbyszek Żółkiewski
Hi guys, OpenBSD 6.3 GENERIC.MP running on XEN (AWS m4.large) - dmesg at the end of this mail. Image build from https://github.com/kolargol/openbsd-aws which is fork from https://github.com/ajacoutot/aws-openbsd - my fork have some minor modifications. Recently i run into problems after using

add pledge(2) to relayd(8)'s main proc

2018-08-01 Thread Ricardo Mestre
Hi, This add pledge(2) to the main proc of relayd(8) with the following promises: - rpath: load (and reload) the config file - cpath: unlink the RELAYD_SOCKET - inet/dns: the daemon deals with AF_INET sockets and also needs to resolve dns - sendfd: send fds to its childs - unix: additionaly if SN

bsd.port.mk: make clean=build && make : failed

2018-08-01 Thread Sebastien Marie
Hi, After issuing a "make clean=build" on a port, I am unable to build again. "make" failed in 'configure' stage: $ make ... /bin/sh: cannot create /home/semarie/repos/openbsd/ports/pobj/rust-1.28.0/bin/aclocal: Permission denied *** Error 1 in . (/home/semarie/repos/openbsd/ports/infrastruct

Re: [PATCH] find(1) man page: -exec evaluation

2018-08-01 Thread Jason McIntyre
On Wed, Aug 01, 2018 at 07:18:23AM +0100, Jason McIntyre wrote: > On Mon, Jul 30, 2018 at 02:27:54PM -0500, Kris Katterjohn wrote: > > Hey, > > > > The man page for find(1) does not mention when the -exec primary > > evaluates to true. > > > > -exec utility ... ; evaluates to true when the utilit