Re: Unnecessary connection overhead due copy-on-write (mainly openssl) - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: Unnecessary connection overhead due copy-on-write (mainly openssl)
Date
Msg-id CAOYmi+nki8O-tpD8tQUYw1YCxCXEmmt51QXj3e-bd3tr8ezKhg@mail.gmail.com
Whole thread Raw
In response to Re: Unnecessary connection overhead due copy-on-write (mainly openssl)  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Fri, Jun 6, 2025 at 9:37 AM Andres Freund <andres@anarazel.de> wrote:
> It's not just crashes, e.g. the startup packet timeout is also handled by
> _exit() - and it can be triggered remotely.

Fair point...

> ISTM that if crypto providers
> can't handle _exit(), we have a bigger problem.

...so I guess I need to figure out whether we have a bigger problem. I
hope we don't.

Note that OpenSSL seems to be interested in removing the atexit()
handling altogether, and requiring applications to manually call the
cleanup function, in 4.0. [1]

--Jacob

[1] https://github.com/openssl/openssl/issues/22508



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: Unnecessary connection overhead due copy-on-write (mainly openssl)
Next
From: Tom Lane
Date:
Subject: Re: Non-reproducible AIO failure