Re: powerpc, macppc: retrigger deferred DEC interrupts from splx(9)

2022-06-29 Thread Scott Cheloha
On Wed, Jun 29, 2022 at 10:34:53PM -0400, George Koehler wrote: > Hi. I have a question about splx, below. > > On Thu, 23 Jun 2022 21:58:48 -0500 > Scott Cheloha wrote: > > > My machine uses openpic(4). I would appreciate tests on a > > non-openpic(4) Mac, though all tests are appreciated. >

Re: powerpc, macppc: retrigger deferred DEC interrupts from splx(9)

2022-06-29 Thread George Koehler
Hi. I have a question about splx, below. On Thu, 23 Jun 2022 21:58:48 -0500 Scott Cheloha wrote: > My machine uses openpic(4). I would appreciate tests on a > non-openpic(4) Mac, though all tests are appreciated. We only run on New World Macs, and the only ones without openpic(4) might be

Re: rewrite amd64 cache printing

2022-06-29 Thread Jonathan Gray
On Tue, Jun 28, 2022 at 10:37:31PM +1000, Jonathan Gray wrote: > On Sat, Jun 25, 2022 at 04:21:54AM -0700, Mike Larkin wrote: > > On Fri, Jun 24, 2022 at 07:19:47PM +1000, Jonathan Gray wrote: > > > +void > > > +amd_cpu_cacheinfo(struct cpu_info *ci) > > > +{ > > > + u_int eax, ebx, ecx, edx; > >

Re: ip6 hbhchcheck mbuf pointer

2022-06-29 Thread Alexandr Nedvedicky
Hello, On Wed, Jun 29, 2022 at 02:34:02PM +0200, Alexander Bluhm wrote: > On Wed, Jun 29, 2022 at 12:42:13AM +0200, Alexandr Nedvedicky wrote: > > for example here in current ip6_input_if() we may leak memory > > on error: > > Curently we do not leak memory. We free the mbuf in the callee, >

Re: arp llinfo mutex

2022-06-29 Thread Martin Pieuchot
On 29/06/22(Wed) 19:40, Alexander Bluhm wrote: > Hi, > > To fix the KASSERT(la != NULL) we have to protect the rt_llinfo > with a mutex. The idea is to keep rt_llinfo and RTF_LLINFO consistent. > Also do not put the mutex in the fast path. Losing the RTM_ADD/DELETE race is not a bug. I would

time pTS(1)d

2022-06-29 Thread Claudio Jeker
So ts(1) with -i or -s prints strange numbers when used with either %T or %s (the current timezone comes into play and you end up in pain). This diff cleans up the code, forces UTC for -i or -s and simplifies a lot of the code. I think with this things like TZ=Canada/Newfoundland ts -s %.T and

Re: Import ts(1) - a timestamp utility

2022-06-29 Thread Job Snijders
On Wed, Jun 29, 2022 at 07:34:08PM +0100, Jason McIntyre wrote: > On Wed, Jun 29, 2022 at 08:27:54PM +0200, Leon Fischer wrote: > > > The below changeset is a from scratch & pledged C implementation of the > > > 'ts' perl utility found in the moreutils collection by Joey Hess. > > > > Hi, a few

Re: Import ts(1) - a timestamp utility

2022-06-29 Thread Jason McIntyre
On Wed, Jun 29, 2022 at 08:27:54PM +0200, Leon Fischer wrote: > > Dear all, > > > > The below changeset is a from scratch & pledged C implementation of the > > 'ts' perl utility found in the moreutils collection by Joey Hess. > > Hi, a few minor nits in the man page: > > > +.Sh DESCRIPTION > >

arp llinfo mutex

2022-06-29 Thread Alexander Bluhm
Hi, To fix the KASSERT(la != NULL) we have to protect the rt_llinfo with a mutex. The idea is to keep rt_llinfo and RTF_LLINFO consistent. Also do not put the mutex in the fast path. ok? bluhm Index: netinet/if_ether.c === RCS

Re: Remove switch(4) remains from netisr.h

2022-06-29 Thread Alexander Bluhm
I spotted this myself, but was too lazy to write a diff. OK bluhm@ On Wed, Jun 29, 2022 at 03:24:35PM +0300, Vitaliy Makkoveev wrote: > Index: sys/net/netisr.h > === > RCS file: /cvs/src/sys/net/netisr.h,v > retrieving revision 1.58

slaacd(8): state machine rewrite, improved roaming support

2022-06-29 Thread Florian Obser
This rewrite was inspired by what we learned in dhcpleased. I find state_transition / timeout split easier to reason about. This also fixes a bunch of bugs, like remove stale IPs / routes / DNS servers when moving from one IPv6 enabled network to another. Tests, comments, OKs? diff --git

Re: Import ts(1) - a timestamp utility

2022-06-29 Thread Claudio Jeker
On Wed, Jun 29, 2022 at 09:50:39AM +, Job Snijders wrote: > On Wed, Jun 29, 2022 at 09:18:08AM +, Job Snijders wrote: > > Add a '-m' monotonic clock option > > I misunderstood what the moreutils ts -m option was doing, below is a > different version, which is 'resistant' against the

Simplify aiodone daemon

2022-06-29 Thread Martin Pieuchot
The aiodone daemon accounts for and frees/releases pages they were written to swap. It is only used for asynchronous write. The diff below uses this knowledge to: - Stop suggesting that uvm_swap_get() can be asynchronous. There's an assert for PGO_SYNCIO 3 lines above. - Remove unused

Re: em(4) multiqueue

2022-06-29 Thread Stuart Henderson
On 2022/06/29 13:19, Stuart Henderson wrote: > On 2022/06/28 23:11, Jonathan Matthew wrote: > > This adds the (not quite) final bits to em(4) to enable multiple rx/tx > > queues. > > Note that desktop/laptop models (I218, I219 etc.) do not support multiple > > queues, > > so this only really

Re: ip6 hbhchcheck mbuf pointer

2022-06-29 Thread Alexander Bluhm
On Wed, Jun 29, 2022 at 12:42:13AM +0200, Alexandr Nedvedicky wrote: > for example here in current ip6_input_if() we may leak memory > on error: Curently we do not leak memory. We free the mbuf in the callee, and check the return code in the caller. > another option would be to revisit all

Remove switch(4) remains from netisr.h

2022-06-29 Thread Vitaliy Makkoveev
Index: sys/net/netisr.h === RCS file: /cvs/src/sys/net/netisr.h,v retrieving revision 1.58 diff -u -p -r1.58 netisr.h --- sys/net/netisr.h29 Jun 2022 09:08:07 - 1.58 +++ sys/net/netisr.h29 Jun 2022 12:23:44 - @@

refcnt vm's/vcpu's in vmm (testers needed)

2022-06-29 Thread Dave Voutila
Looking for testers of the following diff that adds reference counting to vmm(4) to squash race conditions in vm/vcpu teardown and access. I've put the diff through a lot of stress tests this week (rapidly creating 30-50 vm's each booting bsd.rd and then rapidly force terminating them), but

Re: snmpd(8): clean up variable printing

2022-06-29 Thread Martijn van Duren
On Wed, 2022-01-19 at 16:23 +0100, Martijn van Duren wrote: > The new code uses smi_print_element when debugging is enabled to trace > calls. Unfortunately the current smi_print_element lacks in quite a few > departments. This diff rewrites smi_print_element to be more concise > than what we

Re: snmpd(8): Add blocklist feature

2022-06-29 Thread Martijn van Duren
On Tue, 2022-06-28 at 12:33 +0200, Martijn van Duren wrote: > On Tue, 2022-06-28 at 12:21 +0200, Martijn van Duren wrote: > > On Tue, 2022-06-28 at 10:21 +0200, Martijn van Duren wrote: > > > Back in 2020 florian@ added the filter-pf-addresses keyword. > > > Although useful, I always felt it was a

Re: Import ts(1) - a timestamp utility

2022-06-29 Thread Job Snijders
On Wed, Jun 29, 2022 at 09:18:08AM +, Job Snijders wrote: > Add a '-m' monotonic clock option I misunderstood what the moreutils ts -m option was doing, below is a different version, which is 'resistant' against the wallclock jump back and forth. Index: ts.1

Re: Import ts(1) - a timestamp utility

2022-06-29 Thread Job Snijders
Hi all, Add a '-m' monotonic clock option Index: ts.1 === RCS file: /cvs/src/usr.bin/ts/ts.1,v retrieving revision 1.1 diff -u -p -r1.1 ts.1 --- ts.129 Jun 2022 08:39:49 - 1.1 +++ ts.129 Jun 2022 09:15:29

Re: Unlocking pledge(2)

2022-06-29 Thread Theo de Raadt
Mark Kettenis wrote: > > * XXX > > * The current hack for YP support in "getpw" > > * is to enable some "inet" features until > > -* next pledge call. Setting a bit in ps_pledge >

Re: Unlocking pledge(2)

2022-06-29 Thread Mark Kettenis
Looks mostly good to me, except for one little nit and one question mark... > Op 28-06-2022 23:12 schreef Jeremie Courreges-Anglas : > > > On Tue, Jun 28 2022, Martin Pieuchot wrote: > > On 28/06/22(Tue) 18:17, Jeremie Courreges-Anglas wrote: > >> > >> Initially I just wandered in