Re: powerpc64 BOOT kernel question

2023-09-22 Thread Theo de Raadt
Klemens Nanni wrote: > Does the tiny kexec kernel actually need network, bio(4) or HID devices? I think you are playing with fire when you remove potential console devices.

powerpc64 BOOT kernel question

2023-09-22 Thread Klemens Nanni
Does the tiny kexec kernel actually need network, bio(4) or HID devices? octeon/BOOT does not have any of this. Looks like too much of powerpc64/RAMDISK remained, but I might be missing some obvious difference between these platforms. The Raptor CS Blackbird used for the re-upgrade prevention

Re: hotplug(4): introduce `hotplug_mtx' mutex(9) and make `hotplugread_filterops' mp safe

2023-09-22 Thread Alexander Bluhm
On Mon, Sep 18, 2023 at 02:12:21PM +0300, Vitaliy Makkoveev wrote: > On Mon, Sep 18, 2023 at 02:03:08PM +0300, Vitaliy Makkoveev wrote: > > Also use this mutex to protect `evqueue_head', `evqueue_tail' and > > `evqueue_count'. > > > > Sorry, the right diff: OK bluhm@ > Index: sys/dev/hotplug.c

Re: hyperv(4): use shared netlock to protect if_list and ifa_list walkthrough and data

2023-09-22 Thread Alexander Bluhm
On Mon, Sep 18, 2023 at 11:40:28AM +0300, Vitaliy Makkoveev wrote: > Context switch looks fine here. OK bluhm@ > Index: sys/dev/pv/hypervic.c > === > RCS file: /cvs/src/sys/dev/pv/hypervic.c,v > retrieving revision 1.19 > diff -u -p

Re: fw_update throwing exit 1 on successful install when passed a driver by name

2023-09-22 Thread Andrew Hewus Fresh
On Fri, Sep 22, 2023 at 01:05:17PM -0500, Brian Conway wrote: > Greetings. I noticed the above behavior with the latest 7.4-beta when > scripting some fw_update runs. Perhaps a corner case was missed in the > recent work? Steps below, let me know if more information is required > to reproduce.

Re: Make `logread_filtops' mpsafe

2023-09-22 Thread Alexander Bluhm
On Thu, Sep 14, 2023 at 01:12:22PM +0300, Vitaliy Makkoveev wrote: > `log_mtx' mutex(9) already used for message buffer protection, so use it > to protect `logread_filtops' too. > > ok? OK bluhm@ > Index: sys/kern/subr_log.c > ===

fw_update throwing exit 1 on successful install when passed a driver by name

2023-09-22 Thread Brian Conway
Greetings. I noticed the above behavior with the latest 7.4-beta when scripting some fw_update runs. Perhaps a corner case was missed in the recent work? Steps below, let me know if more information is required to reproduce. Thanks in advance. root:current-amd64.124:0:~# fw_update -d intel;

Re: fix a wireguard mbuf leak

2023-09-22 Thread Alexander Bluhm
On Fri, Sep 22, 2023 at 12:21:42PM +0900, YASUOKA Masahiko wrote: > A leak may happens when wgpeer is deleted. > > ok? OK bluhm@ > The state queue should be freeed when wg_peer is destroyed. > diff from IIJ. > > Index: sys/net/if_wg.c >

prevent re-upgrade in octeon boot loader

2023-09-22 Thread Klemens Nanni
On Thu, Sep 21, 2023 at 10:30:01PM +, Klemens Nanni wrote: > In comparison to MI boot which only cares about /bsd.upgrade's x bit, > powerpc64 rdboot just wants a regular file. > > Require and strip u+x before execution to prevent sysupgrade(8) loop. > I'm new to powerpc64 and can't think of

ssh(1): -6 and -4 only apply to first hop

2023-09-22 Thread Francisco Gaitán
Index: ssh.1 === RCS file: /cvs/src/usr.bin/ssh/ssh.1,v retrieving revision 1.437 diff -u -p -u -p -r1.437 ssh.1 --- ssh.1 23 Jul 2023 20:04:45 - 1.437 +++ ssh.1 22 Sep 2023 11:21:35 - @@ -108,12 +108,12 @@

Re: fix a wireguard mbuf leak

2023-09-22 Thread Vitaliy Makkoveev
On Fri, Sep 22, 2023 at 12:21:42PM +0900, YASUOKA Masahiko wrote: > A leak may happens when wgpeer is deleted. > > ok? > ok mvs@ > The state queue should be freeed when wg_peer is destroyed. > diff from IIJ. > > Index: sys/net/if_wg.c >