Remove unused fields from struct in6_ifextra

2022-11-11 Thread Klemens Nanni
This is all under _KERNEL: - rs_lhcookie was added in 2014 110585f259f4974284e531f0a1e121b001a580dc "Move sending of router solicitations to the kernel; [...]" but never used - nprefixes and ndefrouters became obsolete with 2017 4a2f474d14c160dc7829cce0149ead09d473ece9 "Remove sending of

Re: netstart: wait for autoconf on RUNNING interfaces only

2022-11-11 Thread Florian Obser
On 2022-11-11 20:15 UTC, Klemens Nanni wrote: > On Fri, Nov 11, 2022 at 07:00:27PM +, Florian Obser wrote: >> On 2022-11-11 16:55 UTC, Klemens Nanni wrote: >> > Only /etc/hostname.athn0 contains autoconf on my X230. >> > >> > When the hardware switch turned off, netstart still waits 10

Re: size: improve column alignment

2022-11-11 Thread Klemens Nanni
On Sun, Oct 30, 2022 at 09:30:50PM +, Klemens Nanni wrote: > size(1) output is not padded and uses a single tab between each column > which often looks ugly: > > $ size bsd /usr/lib/libc.so.96.4 `which echo cc` > textdatabss dec hex > 896234 31208 54664

Re: netstart: wait for autoconf on RUNNING interfaces only

2022-11-11 Thread Klemens Nanni
On Fri, Nov 11, 2022 at 07:00:27PM +, Florian Obser wrote: > On 2022-11-11 16:55 UTC, Klemens Nanni wrote: > > Only /etc/hostname.athn0 contains autoconf on my X230. > > > > When the hardware switch turned off, netstart still waits 10 seconds: > > > > $ ifconfig athn0 > > athn0: > >

Re: netstart: wait for autoconf on RUNNING interfaces only

2022-11-11 Thread Florian Obser
On 2022-11-11 16:55 UTC, Klemens Nanni wrote: > Only /etc/hostname.athn0 contains autoconf on my X230. > > When the hardware switch turned off, netstart still waits 10 seconds: > > $ ifconfig athn0 > athn0: > flags=a48803 > mtu 1500 > lladdr 04:f0:21:30:37:de >

Re: Push kernel lock into nd6_ioctl()

2022-11-11 Thread Klemens Nanni
This was in fact in_ioctl_get(). --- Push kernel lock into nd6_ioctl() Purely mechanical. Feedback? OK? --- sys/netinet6/in6.c | 2 -- sys/netinet6/nd6.c | 5 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index

netstart: wait for autoconf on RUNNING interfaces only

2022-11-11 Thread Klemens Nanni
Only /etc/hostname.athn0 contains autoconf on my X230. When the hardware switch turned off, netstart still waits 10 seconds: $ ifconfig athn0 athn0: flags=a48803 mtu 1500 lladdr 04:f0:21:30:37:de index 2 priority 4 llprio 3

tmux: Sort the rest of the options

2022-11-11 Thread Josiah Frentsos
Also adds a few missing Op's. Index: cmd-bind-key.c === RCS file: /cvs/src/usr.bin/tmux/cmd-bind-key.c,v retrieving revision 1.46 diff -u -p -r1.46 cmd-bind-key.c --- cmd-bind-key.c 27 Aug 2021 17:25:55 - 1.46 +++

Re: libX11 patch for X*IfEvent() API issues, take #2

2022-11-11 Thread Walter Alejandro Iglesias
On Nov 11 2022, Matthieu Herrb wrote: > On Fri, Nov 11, 2022 at 03:17:21PM +0100, Walter Alejandro Iglesias wrote: > > On Nov 11 2022, Matthieu Herrb wrote: > > > Hi, > > > > > > So the patch provided by Adam Jackson upstreams is completely buggy. > > > > > > - the logic to setup the new locking

move vmd vioblk handling to another thread

2022-11-11 Thread David Gwynne
this updates a diff i had from a few years ago to move the vioblk handling in vmd into a separate thread. basically disk io in your virtual machine should not block the vcpu from running now. just throwing this out so people can give it a go and kick it around. Index: Makefile

Re: libX11 patch for X*IfEvent() API issues, take #2

2022-11-11 Thread Matthieu Herrb
On Fri, Nov 11, 2022 at 03:17:21PM +0100, Walter Alejandro Iglesias wrote: > On Nov 11 2022, Matthieu Herrb wrote: > > Hi, > > > > So the patch provided by Adam Jackson upstreams is completely buggy. > > > > - the logic to setup the new locking function was busted > > - I've observed cases

btrace: string comparison in filters

2022-11-11 Thread Martin Pieuchot
Diff below adds support for the common following idiom: syscall:open:entry /comm == "ksh"/ { ... } String comparison is tricky as it can be combined with any other expression in filters, like: syscall:mmap:entry /comm == "cc" && pid != 4589/ { ... } I don't have the energy to

Re: libX11 patch for X*IfEvent() API issues, take #2

2022-11-11 Thread Matthieu Herrb
On Fri, Nov 11, 2022 at 03:17:21PM +0100, Walter Alejandro Iglesias wrote: > On Nov 11 2022, Matthieu Herrb wrote: > > Hi, > > > > So the patch provided by Adam Jackson upstreams is completely buggy. > > > > - the logic to setup the new locking function was busted > > - I've observed cases

Re: libX11 patch for X*IfEvent() API issues, take #2

2022-11-11 Thread Walter Alejandro Iglesias
On Nov 11 2022, Matthieu Herrb wrote: > Hi, > > So the patch provided by Adam Jackson upstreams is completely buggy. > > - the logic to setup the new locking function was busted > - I've observed cases where even the XGetIfEvent() function gets > re-rentered. So the flags does in fact need to

MAP_CONCEAL bypass due to stack overflow

2022-11-11 Thread Moritz Buhl
Dear tech, currently the MAP_CONCEAL flag for mmap(2) can be bypassed with a stack overflow. FreeBSD introduced a similar flag called MAP_NOCORE. They also save the auxinfo pointer in some struct that is attached to the proc struct, similar to the diff below. Here is an example CTF challenge:

Re: arm64 pwmbl(4): simplify ramp case

2022-11-11 Thread Patrick Wildt
On Fri, Nov 11, 2022 at 06:48:21AM +, Miod Vallat wrote: > > This actually breaks my machine. malloc() is saying allocation too > > large. OF_getproplen will return -1 on that. Is it possible that > > len is treated as uint64_t as it is an int and sizeof is effectively > > uint64_t? > >

libX11 patch for X*IfEvent() API issues, take #2

2022-11-11 Thread Matthieu Herrb
Hi, So the patch provided by Adam Jackson upstreams is completely buggy. - the logic to setup the new locking function was busted - I've observed cases where even the XGetIfEvent() function gets re-rentered. So the flags does in fact need to be a counter. New patch which works for me with

Re: m88k, luna88k: switch to clockintr(9)

2022-11-11 Thread Kenji Aoyama
Hello, On Mon, 07 Nov 2022 04:47:14 +0900, Scott Cheloha wrote: > > This patch switches luna88k to clockintr(9). > > We have no control over the interrupt clock on luna88k so the patch > is pretty simple. > > aoyama@ has built a release and upgraded from the resulting bsd.rd on > his

Re: relax KASSET() to if () in pfsync_grab_snapshot()

2022-11-11 Thread David Gwynne
ok > On 11 Nov 2022, at 7:31 pm, Alexandr Nedvedicky wrote: > > Hello, > > Diff below changes KASSERT() to if (). We have to prevent > packets to insert state to snapshot queue multiple times. > Hrvoje@ can trigger situation where state updates to pfsync > peer are more frequent than we are

relax KASSET() to if () in pfsync_grab_snapshot()

2022-11-11 Thread Alexandr Nedvedicky
Hello, Diff below changes KASSERT() to if (). We have to prevent packets to insert state to snapshot queue multiple times. Hrvoje@ can trigger situation where state updates to pfsync peer are more frequent than we are able to send out. OK to go for this simple fix/workaround ? thanks and