From patchwork Wed Jan 22 17:14:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dragan Mladjenovic X-Patchwork-Id: 37467 Received: (qmail 53278 invoked by alias); 22 Jan 2020 17:14:29 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 53259 invoked by uid 89); 22 Jan 2020 17:14:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.5 required=5.0 tests=AWL, BAYES_00, FORGED_SPF_HELO, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy= X-HELO: NAM11-BN8-obe.outbound.protection.outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WxVKvDztAQCDESyk/Eb2sbEkpdfQMJuhinz2+n3j/KKGwwwBUxBKFq6y4LUJXxPzAliMnt3afzG2B4AVpRm1owyjEzLRcLkJ3RltFCCzmqWqxl25gPKq1qakk3JV1xH+mmBFic3km8sMPtLPxDQhCUhRYPV5HixV8aP6dQMo8KPkjubEZnMrIu2CN6jfhteI6K0uYT3rvVskKOiV9/eo7yy1wnWHWD0DKPPkNl2HaP+f995jwpjCcRCmBzOqAnu4ink3zpBOlgZH5bUSSULVBD/HP57IGU5LK4EQ8s/V7/Kk1qr7ygwA1DEkijCA52nS/gVl+IDtakPdn2ddwHfczw== 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=fI5Deb7EdLfL87jTdoVOBkoKoYxAhIAUj1Dt7jvPT/4=; b=lRS0TuoW6GBESYwxl/WuRGY2qlgYJA6oyivmYQv+GtRx/gqJILJ1sG1qZF5eM6AVhOVwnvvhrbiySLlqqxSYwcWF8PBOk19509xT2uINHrzXKrWwHs0KmKVj8S80qFNtCuHVovRI0LXqAOJjHxRNJ1ti18qrHLnUFFk0hIiYzOaKo0I/aSnmWNicQGCTr2Ws5ACvKH+YXXxPBOdZ9Cu2zwlhZt5+ov3EbSAzkEyaBbyyilYKFnTcjk2HS/JnvbfY6/Ias7e6hZnu7hNwnu9uYiTDiHpiT7VXdA8xBHwIfnHUGCi6cM5q+kdO4wIcn/ZHpPD7ZURXvQlee4iv3uXnMA== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wavecomp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fI5Deb7EdLfL87jTdoVOBkoKoYxAhIAUj1Dt7jvPT/4=; b=uyiHdj9EBP27X1CwiNZn7aKrSJZpubT9LprNROqm6YepeSL55AwEbRltYKmMOsXdiuu3mhnQO6FMtWUkhsHuy6rZfMQhUx6j0m4apTnTT0adZadmoXlFerE2WRF/W5jeZRsuuAkLwJE94uJH/UIYaGanru3RordsCF2bJ3oV5DU= From: Dragan Mladjenovic To: "libc-alpha@sourceware.org" CC: Dragan Mladjenovic , Joseph Myers , Siddhesh Poyarekar Subject: [PATCH] Add NEWS entry about the change in handling of PT_GNU_STACK on MIPS Date: Wed, 22 Jan 2020 17:14:23 +0000 Message-ID: <1579713216-8450-1-git-send-email-dmladjenovic@wavecomp.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=dmladjenovic@wavecomp.com; x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:2803; received-spf: None (protection.outlook.com: wavecomp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XGHYAS7sw1xltu15tvRE+g2zleGDGKUXHJeJs9vvKqdR66IpT4DXQOqE/nhGS5MP3wVFsd0Kmhu9AujSTAks985ecLdDY+JZ15LYwV/Ke7w= From: "Dragan Mladjenovic" The change was introduced in: commit 33bc9efd91de1b14354291fc8ebd5bce96379f12 Author: Dragan Mladjenovic Date: Fri Aug 23 16:38:04 2019 +0000 mips: Force RWX stack for hard-float builds that can run on pre-4.8 kernels and probably requires a small explanation. --- NEWS | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/NEWS b/NEWS index 44065d9..1e5dcf3 100644 --- a/NEWS +++ b/NEWS @@ -112,6 +112,18 @@ Deprecated and removed features, and other changes affecting compatibility: captured in a dlerror message. In general, this is unsafe because resetting the stack in an arbitrary function call is not possible. +* For the MIPS hard-float ABIs, the glibc will no longer honor RW PT_GNU_STACK + and will run on executable stack unless explicitly configured at build time + to require minimum kernel version 4.8 or newer. On Linux kernels prior to + 4.8 executing floating-point branches on non-executable stack can + lead to application crashes for some MIPS configurations. While currently + the PT_GNU_STACK is not widely used on MIPS, the future releases of GCC are + expected to enable RW PT_GNU_STACK by default thus likely to trigger the + crash on older kernels. + + The glibc can be built with --enable-kernel=4.8.0 in order to honor + RW PT_GNU_STACK while dropping support for older kernels. + Changes to build and runtime requirements: * It is no longer necessary to have recent Linux kernel headers to build