Re: ldomctl: download: select new configuration

2020-01-06 Thread Mike Larkin
On Fri, Jan 03, 2020 at 08:27:21PM +0100, Mark Kettenis wrote: > > Date: Mon, 30 Dec 2019 21:07:59 +0100 > > From: Klemens Nanni > > > > The example in the manual implies that the download command also selects > > it: > > > > # ldomctl init-system ldom.conf > > # cd .. > > # ldomctl

fd(4): tsleep(9) -> tsleep_nsec(9), timeout_add(9) -> timeout_add_msec(9)

2020-01-06 Thread Scott Cheloha
Convert ticks to milliseconds. The 33 milliseconds in the timeout_add_msec(9) call will be truncated to 3 ticks, but that was already the case with the current (hz / 30) code so this is no worse. ok? Index: isa/fd.c === RCS file: /c

Re: Null pointer crash in filt_uhidrdetach

2020-01-06 Thread Greg Steuck
On Mon, Jan 6, 2020 at 9:49 AM Visa Hankala wrote: > The kernel is not very good at revoking knotes when a device is > detached. There is already some code for doing a cleanish detachment, > but it is not used everywhere. > > Does the following diff help with this problem with uhid(4)? > To the

Re: TIMESPEC_TO_NSEC(), futex(2) & __thrsleep(2)

2020-01-06 Thread Scott Cheloha
Sorry for the delay. I needed to think on this. On Fri, Jan 03, 2020 at 11:15:20AM +0100, Martin Pieuchot wrote: > On 02/01/20(Thu) 14:29, Scott Cheloha wrote: > > > On Jan 2, 2020, at 9:02 AM, Martin Pieuchot wrote: > > > > > > On 01/01/20(Wed) 22:13, Scott Cheloha wrote: > > >>> On Dec 31, 20

Re: Fix parsing of '\' in hostname.if

2020-01-06 Thread Stuart Henderson
On 2020/01/05 22:36, Matt Kunkel wrote: > Backslash characters inside hostname.if cause it to differ from > parameters provided to ifconfig. Adding '-r' to eliminate the need to > escape '\' inside hostname.if (ssid/wpa key material). If this has > unintended consequences, I can provide a hostnam

Re: Fix parsing of '\' in hostname.if

2020-01-06 Thread mtk
> Can you provide an example of hostname.if(5) lines that cause trouble > for you? Sure, a command like: ifconfig iwm0 nwid "-... ... -.." wpakey 'max_entropy_includes_\!' Needs to be the following in /etc/hostname.iwm0 (does not match): join "-... ... -.." wpakey 'max_entropy_includes_\\!' Addi

Re: Null pointer crash in filt_uhidrdetach

2020-01-06 Thread Visa Hankala
On Fri, Jan 03, 2020 at 11:37:22PM -0800, Greg Steuck wrote: > While playing with chromium u2f support[1] I managed to induce kernel > crashes in filt_uhidrdetach. It takes a few attempts of plugging/unplugging > the fido key while trying to authenticate at demo.yubico.com/playground. > Eventually

Re: netcat bad unveil

2020-01-06 Thread Theo Buehler
On Mon, Jan 06, 2020 at 02:05:10PM +0100, Alexander Bluhm wrote: > Hi, > > The unveil(2) for nc -U -u -l is wrong. Basically we cannot unveil > as the server has to connect to the client socket. The latter is > determined dynamically. > > Instead we can add a restrictive pledge(2) after connect

Re: netcat unix getnameinfo

2020-01-06 Thread Theo Buehler
On Sun, Jan 05, 2020 at 06:41:08PM +0100, Alexander Bluhm wrote: > Hi, > > When using netcat with the options -Uuvs I get: > > netcat-regress: getnameinfo: Invalid argument > > Using the same check when calling report_sock() as a few lines below > fixes it. > > While there use the same error ch

netcat bad unveil

2020-01-06 Thread Alexander Bluhm
Hi, The unveil(2) for nc -U -u -l is wrong. Basically we cannot unveil as the server has to connect to the client socket. The latter is determined dynamically. Instead we can add a restrictive pledge(2) after connect(2). Note that you need my previous diff that fixes dns as the wrong lookup do

Re: ipmi@acpi improvement

2020-01-06 Thread Jonathan Matthew
On Sat, Jan 04, 2020 at 08:22:56PM +0100, Mark Kettenis wrote: > > Date: Sat, 21 Dec 2019 12:30:50 +0100 (CET) > > From: Mark Kettenis > > > > On arm64 systems, IPMI can actually attach using mmio. The diff below > > implements this. It also sets the IPMI revision based on the _SRV > > method i