ps: accept numerical user IDs

2023-04-15 Thread Klemens Nanni
ps(1) -U expects names, top(1) and pgrep(1) -U take numbers as well. With the new tree view, I start using 'ps -fU55' more often instead of 'top -U55' to watch ports builds, but keep doing $ ps -fU55 ps: p55: no such user $ ps -fU_pbuild ... The stray "p" in curre

Re: pass M_CANFAIL to malloc() which use M_WAITOK but are tested for failure

2023-04-15 Thread Kevin Lo
On Fri, Apr 14, 2023 at 02:01:29PM +0200, Alexander Bluhm wrote: > > On Thu, Apr 13, 2023 at 10:43:30AM +0800, Kevin Lo wrote: > > M_CANFAIL > > In the M_WAITOK case, if not enough memory is available, > > return NULL instead of calling panic(9). If mallocarray() > > Did you see such a

Re: in_ioctl*: hoist identical privilege checks

2023-04-15 Thread Klemens Nanni
On Fri, Apr 14, 2023 at 11:33:18PM +, Klemens Nanni wrote: > All cases do the same check up first, so merge it before the switch. > > It could be hoisted further in both in_ioctl() and in_ioctl_change_ifaddr(), > but that meant a change in errno return semantic, so leave it for now. in6.c alr

unwind(8): fix (some?) bad packet log messages

2023-04-15 Thread Florian Obser
Turns out I found a way to trigger "bad packet: too short" messages by suspending / resuming my laptop in just the right spot. That allowed me to figure out what's going on: When asr fails (i.e. the stub strategy) it obviously does not synthesize a SERVFAIL DNS packet for us like libunbound does. r

Re: MALLOC_STATS: dump internal state and leak info via utrace(2)

2023-04-15 Thread Otto Moerbeek
On Thu, Apr 13, 2023 at 08:22:45PM +0200, Otto Moerbeek wrote: > On Tue, Apr 11, 2023 at 05:50:43PM +0200, Otto Moerbeek wrote: > > > On Sun, Apr 09, 2023 at 12:17:35PM +0200, Otto Moerbeek wrote: > > > > > On Sun, Apr 09, 2023 at 10:08:25AM +0200, Claudio Jeker wrote: > > > > > > > On Sun, Apr

Re: pf(4) drops valid IGMP/MLD messages

2023-04-15 Thread Luca Di Gregorio
I've just seen that this has been fixed in 7.3, now I see that prune, graft, graft-ack messages are not blocked by PF Thanks a lot Il giorno gio 16 mar 2023 alle ore 16:45 Luca Di Gregorio ha scritto: > Ok, thanks a lot for the info > > Il giorno gio 16 mar 2023 alle 16:40 Theo de Raadt > ha s

bgpctl command parser any token support

2023-04-15 Thread Claudio Jeker
In bgpctl I am constantly hitting this annoying edgecase where adding detail to a show rib command errors out: bgpctl show rib 192.0.2.1 detail unknown argument: detail valid commands/args: all longer-prefixes or-longer or-s