This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Re: [PATCH v3] Mips support for PT_GNU_STACK
- From: Dragan Mladjenovic <dmladjenovic at wavecomp dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, Carlos O'Donell <carlos at redhat dot com>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, "Maciej W . Rozycki" <macro at linux-mips dot org>, Faraz Shahbazker <fshahbazker at wavecomp dot com>
- Date: Mon, 12 Aug 2019 17:49:50 +0000
- Subject: Re: Re: [PATCH v3] Mips support for PT_GNU_STACK
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wavecomp.com; dmarc=pass action=none header.from=wavecomp.com; dkim=pass header.d=wavecomp.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zzWoH0rw68Tj/fI5AegwFPIgHypXFl82gmMw/XlgwBk=; b=GO6lanJSObq37RT9QxAilE0SxWVKVbtOapooShlVUYJbHZIPerNgZIvRBh/oGbKZio3hTs3S8VY0rZPIlwslAJI3yN87NSvBHm/FSj50IDnusNMD+O1f0P04iCVnsyqVBv7ZRKyE+pmOQMKbZRuNfzJyTIChC7Jydv/CMMpJqAK7nuHBKHhWsq9OdrCuBbeXBF3kTuqyGthwJ0UAziZbyK/RquIp9pJCLpwTVST6sHWLFolFcAZMKJHU26grZNlv+/dp34AlWYM+dpObcBYVWlObAP0t3dZkPFrWdC5Vvoi2tpuL74d4NrlKDUHgdtVH8xVsvSuFNHM21yV+F9xj3Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DutmFANJ0Ydd73+diTX2NbldAsQyAXVoXJm8woOn2fMf9tnc1bjtdYFO24CZ5BWFqNYNE7P7uMeL60v3eWwhoAQGBhzuu6HBgNiKDAPJDEF3rCxPyAwSukLayycmXD+/bSn7U+PvmQzzeNgYHtpyRu3M5moPLDi8VN/s4wuCQMrPdH4YUwZ/WIOw/jj3eNcxku+DPyg3N6J9pfDndQGntZgkPh27tJMEEzAGQzA0E6tZj/a2+ZNpN5DnPD5NoVf7BBB4Bsx0sXRtqbvMwYf8cbuSM+2RxxKu/Xa96m09NRcdKWRN7xVcrobbJN27voPXztUAzKBVuYerEc5fRvKxkg==
- References: <1564936138-30899-1-git-send-email-dmladjenovic@wavecomp.com> <alpine.DEB.2.21.1908051920240.25360@digraph.polyomino.org.uk>
On 05.08.2019. 21:25, Joseph Myers wrote:
> On Sun, 4 Aug 2019, Dragan Mladjenovic wrote:
> If simply building new-enough GCC and glibc quietly results in a new
> kernel requirement without any special configure options being needed,
> that could be a problem - we'd need to consider carefully whether such an
> increase is desirable, or whether it's only appropriate given a suitable
> --enable-kernel option.
>
Well, inverted logic would also work for me. That we force executable
stack (-Wa,-execsatck) for a hard-float builds that don't specify
--enable-kernel or otherwise have an minimum kernel version of 4.8.
It doesn't change the status quo that much. Glibc would still have
executable stack, but now it would be explicit. If user increases
minimum kernel version up to 4.8 then he can have the usual behavior of
executable stack depending on gcc defaults.
That way we could have the gcc configured against glibc 2.31 + glibc
2.31 that has minimum kernel version of 4.8 with non-executable stack by
default.
Best regards,
Dragan