Re: ACPI aml_rwgsb() fix

2021-05-20 Thread Theo Buehler
On Thu, May 20, 2021 at 12:19:37AM +0200, Mark Kettenis wrote: > My last change to dsdt.c broke one or two of my cheap little Intel > "Atom" laptops. Seems my interpretation of the ACPI standard wasn't > quite right. I went back to the original bug report and I think I > understand a bit better w

Re: macppc bsd.mp pmap's hash lock

2021-05-20 Thread George Koehler
On Wed, 19 May 2021 00:27:51 -0400 George Koehler wrote: > Here's my new diff. It is a copy of what I sent to ppc@ a moment ago. > I would ask, "Is it ok to commit?", but while writing this mail, I > found a 2nd potential problem with memory barriers, so I will need to > edit this diff yet again

Re: httpd(8): fastcgi & Content-Length: 0

2021-05-20 Thread mpfr
Ah, good. I was just about to provide a diff bringing Steve's 6.9 httpd to HEAD but I guess that's obsolete then. Happy to see everything's fine. On 2021-05-20 17:17, Florian Obser wrote: > I suspect there was one diff too many in Steve's procedure. I provided a > clean diff for 6.9 in private (d

Re: vmm(4): Mask TSC_ADJUST cpu feature

2021-05-20 Thread Mike Larkin
On Thu, May 20, 2021 at 07:36:23AM -0400, Dave Voutila wrote: > We don't currently emulate all TSC related features yet. While hacking > on other issues, I've found some more obnoxious guests (*cough* debian > *cough*) constantly try to read the IA32_TSC_ADJUST msr every second, > not getting the h

Re: httpd(8): fastcgi & Content-Length: 0

2021-05-20 Thread Florian Obser
On 2021-05-20 16:31 +02, Matthias Pressfreund wrote: > I just tried WordPress again on Firefox and Chrome. No problems. > Is there an obj folder? If so, maybe try to do 'make clean' > after step 5. > I suspect there was one diff too many in Steve's procedure. I provided a clean diff for 6.9 in pr

Re: httpd(8): fastcgi & Content-Length: 0

2021-05-20 Thread Matthias Pressfreund
I just tried WordPress again on Firefox and Chrome. No problems. Is there an obj folder? If so, maybe try to do 'make clean' after step 5. On 2021-05-20 16:02, Steve Williams wrote: > Hi, > > > I still get a connection error from my Andriod Nextcloud client and Wordpress > does not work correct

Re: Add f_modify and f_process callbacks to socket filterops

2021-05-20 Thread Visa Hankala
On Thu, May 20, 2021 at 11:35:32AM +0200, Martin Pieuchot wrote: > On 18/05/21(Tue) 14:22, Visa Hankala wrote: > > This diff adds f_modify and f_process callbacks to socket event filters. > > As a result, socket events are handled using the non-legacy paths in > > filter_modify() and filter_process

Re: httpd(8): fastcgi & Content-Length: 0

2021-05-20 Thread Steve Williams
Hi, I still get a connection error from my Andriod Nextcloud client and Wordpress does not work correctly on Firefox. Please see my steps below to ensure I have tested the correct thing.  (patches are attached as well). Nextcloud and roundcubemail on Firefox work fine. On Chrome, everythi

Re: smtp(1): protocols and ciphers

2021-05-20 Thread Eric Faurot
Here is an updated diff integrating different suggestions I received. - use -T (for TLS) instead of -O - use getsubopt(3) which I didn't know - manpage tweaks Eric. Index: smtp.1 === RCS file: /cvs/src/usr.sbin/smtpd/smtp.1,v retrie

Serialize kqueue's internals with a mutex

2021-05-20 Thread Visa Hankala
This patch adds a mutex that serializes access to a kqueue. As a result, most of kqueue's internals should become safe to run without the kernel lock. In principle, the patch should allow unlocking kevent(2). Some notes: * The existing uses of splhigh() outline where the mutex should be held. *

Re: bgpd adjust graceful restart capability negotiation

2021-05-20 Thread Claudio Jeker
On Tue, May 18, 2021 at 02:06:15PM +0200, Claudio Jeker wrote: > When I adjusted the capability negotiation to check both sides for > presence I made the graceful restart capability lose all AFI/SAFI > elements for the peer capabilities. > > This can be viewed with bgpctl show nei: e.g > > Descr

vmm(4): Mask TSC_ADJUST cpu feature

2021-05-20 Thread Dave Voutila
We don't currently emulate all TSC related features yet. While hacking on other issues, I've found some more obnoxious guests (*cough* debian *cough*) constantly try to read the IA32_TSC_ADJUST msr every second, not getting the hint when we inject #GP. This floods the kernel message buffer with thi

Re: [External] : Re: move copyout() in DIOCGETSTATES outside of NET_LOCK() and state_lcok

2021-05-20 Thread Alexandr Nedvedicky
Hello, On Thu, May 20, 2021 at 11:28:19AM +0200, Claudio Jeker wrote: > > One way to reduce the problems with copyout(9) is to use uvm_vslock() to > lock the pages. This is what sysctl does but it comes with its own set of > issues. > using uvm_vslock() did not come to my mind, when I was

Re: ssh(1) -v gives debug1: pledge: filesystem full

2021-05-20 Thread Hiltjo Posthuma
On Thu, May 20, 2021 at 12:15:54PM +0200, Marcus MERIGHI wrote: > Hello Hiltjo, > > thanks for looking further than I did... > > Moving to tech@... > > hil...@codemadness.org (Hiltjo Posthuma), 2021.05.19 (Wed) 16:59 (CEST): > > On Wed, May 19, 2021 at 01:20:34PM +0200, Marcus MERIGHI wrote: >

Re: move copyout() in DIOCGETSTATES outside of NET_LOCK() and state_lcok

2021-05-20 Thread Patrick Wildt
Am Thu, May 20, 2021 at 11:28:19AM +0200 schrieb Claudio Jeker: > On Thu, May 20, 2021 at 09:37:38AM +0200, Martin Pieuchot wrote: > > On 20/05/21(Thu) 03:23, Alexandr Nedvedicky wrote: > > > Hrvoje gave a try to experimental diff, which trades rw-locks in pf(4) > > > for mutexes [1]. Hrvoje soon d

Re: ssh(1) -v gives debug1: pledge: filesystem full

2021-05-20 Thread Marcus MERIGHI
Hello Hiltjo, thanks for looking further than I did... Moving to tech@... hil...@codemadness.org (Hiltjo Posthuma), 2021.05.19 (Wed) 16:59 (CEST): > On Wed, May 19, 2021 at 01:20:34PM +0200, Marcus MERIGHI wrote: > > By accident I noticed that > > > > $ ssh -v $host > > > > gives me,

Re: Add f_modify and f_process callbacks to socket filterops

2021-05-20 Thread Martin Pieuchot
On 18/05/21(Tue) 14:22, Visa Hankala wrote: > This diff adds f_modify and f_process callbacks to socket event filters. > As a result, socket events are handled using the non-legacy paths in > filter_modify() and filter_process() of kern_event.c This a step toward > MP-safety. However, everything st

Re: move copyout() in DIOCGETSTATES outside of NET_LOCK() and state_lcok

2021-05-20 Thread Claudio Jeker
On Thu, May 20, 2021 at 09:37:38AM +0200, Martin Pieuchot wrote: > On 20/05/21(Thu) 03:23, Alexandr Nedvedicky wrote: > > Hrvoje gave a try to experimental diff, which trades rw-locks in pf(4) > > for mutexes [1]. Hrvoje soon discovered machine panics, when doing 'pfctl > > -ss' > > The callstack

Re: Use atomic op for UVM map refcount

2021-05-20 Thread Mark Kettenis
> Date: Thu, 20 May 2021 10:28:29 +0200 > From: Martin Pieuchot > > On 19/05/21(Wed) 16:17, Mark Kettenis wrote: > > > Date: Tue, 18 May 2021 13:24:42 +0200 > > > From: Martin Pieuchot > > > > > > On 18/05/21(Tue) 12:07, Mark Kettenis wrote: > > > > > Date: Tue, 18 May 2021 12:02:19 +0200 > > >

Re: Use atomic op for UVM map refcount

2021-05-20 Thread Martin Pieuchot
On 19/05/21(Wed) 16:17, Mark Kettenis wrote: > > Date: Tue, 18 May 2021 13:24:42 +0200 > > From: Martin Pieuchot > > > > On 18/05/21(Tue) 12:07, Mark Kettenis wrote: > > > > Date: Tue, 18 May 2021 12:02:19 +0200 > > > > From: Martin Pieuchot > > > > > > > > This allows us to not rely on the KER

Re: [External] : Re: move copyout() in DIOCGETSTATES outside of NET_LOCK() and state_lcok

2021-05-20 Thread Alexandr Nedvedicky
Hello, > > > with this diff i can't reproduce panic as before. i tried pf with > routing, veb, tpmr and bridge. > > Do you want me to test this diff with parallel diff? > I think it makes no sense to test the change around copyout() with parallel diff as mpi@ points out rwlocks don't

Re: move copyout() in DIOCGETSTATES outside of NET_LOCK() and state_lcok

2021-05-20 Thread Hrvoje Popovski
On 20.5.2021. 3:23, Alexandr Nedvedicky wrote: > Hello, > > Hrvoje gave a try to experimental diff, which trades rw-locks in pf(4) > for mutexes [1]. Hrvoje soon discovered machine panics, when doing 'pfctl -ss' > The callstack looks as follows: > > panic: acquiring blockable sleep lock with spin

Re: move copyout() in DIOCGETSTATES outside of NET_LOCK() and state_lcok

2021-05-20 Thread Martin Pieuchot
On 20/05/21(Thu) 03:23, Alexandr Nedvedicky wrote: > Hrvoje gave a try to experimental diff, which trades rw-locks in pf(4) > for mutexes [1]. Hrvoje soon discovered machine panics, when doing 'pfctl -ss' > The callstack looks as follows: > > [...] > specific to experimental diff [1]. However this

How to debug kernel core with lldb

2021-05-20 Thread Masato Asou
Hi tech, Does anybudy know how to debug kernel core with lldb? I am useing OpenBSD current. I know how to debug kernel core with target kvm command of gdb by man crash. However, lldb does not have taeget kvm command. Has target kvm command implemented yet? -- ASOU Masato