Re: Postmaster self-deadlock due to PLT linkage resolution
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2022-08-30T17:41:16Z
Lists: pgsql-hackers
Hi, On 2022-08-30 13:24:39 -0400, Tom Lane wrote: > Andres Freund <andres@anarazel.de> writes: > > Perhaps it'd be saner to default to building with -Wl,-z,now? That should fix > > the problem too, right (and if we combine it with relro, it'd be a security > > improvement to boot). > > Hm. Not sure if that works on NetBSD, but I'll check it out. FWIW, it's a decently (well over 10 years) old thing I think. And it's documented in the netbsd ld manpage and their packaging guide (albeit indirectly, with their tooling doing the work of specifying the flags): https://www.netbsd.org/docs/pkgsrc/hardening.html#hardening.audit.relrofull Greetings, Andres Freund
Commits
-
Use WaitEventSet API for postmaster's event loop.
- 7389aad63666 16.0 cited
-
On NetBSD, force dynamic symbol resolution at postmaster start.
- 5bed28e699ec 10.23 landed
- 6fd58ca7703a 11.18 landed
- 68bfe36c5173 12.13 landed
- a94b019d44e5 13.9 landed
- 464db46760d2 14.6 landed
- 529d8f3736a1 15.0 landed
- 8acd8f8690ed 16.0 landed