Suspected mbuf leak with Nginx + sendfile + TLS in 12.2-STABLE

2021-02-04 Thread GomoR
Dear FreeBSD community, we are encountering a DoS condition on our production machines. Our use case is an Nginx reverse proxy serving large files via HTTPS. This problem arose when switching kernel and userland from 12.1-RELEASE to 12.2-RELEASE. Ports were not upgraded (at first). Each time a u

Re: Suspected mbuf leak with Nginx + sendfile + TLS in 12.2-STABLE

2021-02-04 Thread John Baldwin
On 2/4/21 8:08 AM, GomoR wrote: Dear FreeBSD community, we are encountering a DoS condition on our production machines. Our use case is an Nginx reverse proxy serving large files via HTTPS. This problem arose when switching kernel and userland from 12.1-RELEASE to 12.2-RELEASE. Ports were not up

Page fault in _mca_init during startup

2021-02-04 Thread Alan Somers
After upgrading a machine to FreeBSD, 12.2, it hit the following panic on its first reboot. I suspect that a few other servers have hit this too, but since it happens before swap is mounted there are no core dumps, and they usually reboot immediately. The code in question hasn't changed since 201

Re: Page fault in _mca_init during startup

2021-02-04 Thread Matthew Macy
On Thu, Feb 4, 2021 at 1:31 PM Alan Somers wrote: > > After upgrading a machine to FreeBSD, 12.2, it hit the following panic on > its first reboot. I suspect that a few other servers have hit this too, > but since it happens before swap is mounted there are no core dumps, and > they usually reboo

Re: Page fault in _mca_init during startup

2021-02-04 Thread Konstantin Belousov
On Thu, Feb 04, 2021 at 01:34:13PM -0800, Matthew Macy wrote: > On Thu, Feb 4, 2021 at 1:31 PM Alan Somers wrote: > > > > After upgrading a machine to FreeBSD, 12.2, it hit the following panic on > > its first reboot. I suspect that a few other servers have hit this too, > > but since it happens

Re: Page fault in _mca_init during startup

2021-02-04 Thread Alan Somers
On Thu, Feb 4, 2021 at 3:58 PM Konstantin Belousov wrote: > On Thu, Feb 04, 2021 at 01:34:13PM -0800, Matthew Macy wrote: > > On Thu, Feb 4, 2021 at 1:31 PM Alan Somers wrote: > > > > > > After upgrading a machine to FreeBSD, 12.2, it hit the following panic > on > > > its first reboot. I suspe

Re: Page fault in _mca_init during startup

2021-02-04 Thread Konstantin Belousov
On Thu, Feb 04, 2021 at 04:05:42PM -0700, Alan Somers wrote: > On Thu, Feb 4, 2021 at 3:58 PM Konstantin Belousov > wrote: > > > On Thu, Feb 04, 2021 at 01:34:13PM -0800, Matthew Macy wrote: > > > On Thu, Feb 4, 2021 at 1:31 PM Alan Somers wrote: > > > > > > > > After upgrading a machine to Free

Re: Page fault in _mca_init during startup

2021-02-04 Thread Mark Johnston
On Fri, Feb 05, 2021 at 12:58:34AM +0200, Konstantin Belousov wrote: > On Thu, Feb 04, 2021 at 01:34:13PM -0800, Matthew Macy wrote: > > On Thu, Feb 4, 2021 at 1:31 PM Alan Somers wrote: > > > > > > After upgrading a machine to FreeBSD, 12.2, it hit the following panic on > > > its first reboot.

Re: Page fault in _mca_init during startup

2021-02-04 Thread Alan Somers
On Thu, Feb 4, 2021 at 4:27 PM Mark Johnston wrote: > On Fri, Feb 05, 2021 at 12:58:34AM +0200, Konstantin Belousov wrote: > > On Thu, Feb 04, 2021 at 01:34:13PM -0800, Matthew Macy wrote: > > > On Thu, Feb 4, 2021 at 1:31 PM Alan Somers > wrote: > > > > > > > > After upgrading a machine to Free

Re: Page fault in _mca_init during startup

2021-02-04 Thread Konstantin Belousov
On Thu, Feb 04, 2021 at 05:19:43PM -0700, Alan Somers wrote: > On Thu, Feb 4, 2021 at 4:27 PM Mark Johnston wrote: > > > On Fri, Feb 05, 2021 at 12:58:34AM +0200, Konstantin Belousov wrote: > > > On Thu, Feb 04, 2021 at 01:34:13PM -0800, Matthew Macy wrote: > > > > On Thu, Feb 4, 2021 at 1:31 PM

Re: Page fault in _mca_init during startup

2021-02-04 Thread Alan Somers
On Thu, Feb 4, 2021 at 5:59 PM Konstantin Belousov wrote: > On Thu, Feb 04, 2021 at 05:19:43PM -0700, Alan Somers wrote: > > On Thu, Feb 4, 2021 at 4:27 PM Mark Johnston wrote: > > > > > On Fri, Feb 05, 2021 at 12:58:34AM +0200, Konstantin Belousov wrote: > > > > On Thu, Feb 04, 2021 at 01:34:13

Re: Page fault in _mca_init during startup

2021-02-04 Thread Konstantin Belousov
On Thu, Feb 04, 2021 at 07:01:30PM -0700, Alan Somers wrote: > On Thu, Feb 4, 2021 at 5:59 PM Konstantin Belousov > wrote: > > Do you have INVARIANTS enabled? If not, I am curious if enabling them > > would convert that rare page fault into rare "CPU %d has more MC banks" > > assert. > > > > Also

Re: Page fault in _mca_init during startup

2021-02-04 Thread Alan Somers
On Thu, Feb 4, 2021 at 7:40 PM Konstantin Belousov wrote: > On Thu, Feb 04, 2021 at 07:01:30PM -0700, Alan Somers wrote: > > On Thu, Feb 4, 2021 at 5:59 PM Konstantin Belousov > > wrote: > > > Do you have INVARIANTS enabled? If not, I am curious if enabling them > > > would convert that rare pa