From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757206AbcBRV2O (ORCPT ); Thu, 18 Feb 2016 16:28:14 -0500 Received: from r00tworld.com ([212.85.137.150]:37869 "EHLO r00tworld.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757143AbcBRV2L (ORCPT ); Thu, 18 Feb 2016 16:28:11 -0500 From: "PaX Team" To: Ard Biesheuvel Date: Thu, 18 Feb 2016 22:27:35 +0100 MIME-Version: 1.0 Subject: Re: [PATCH] lkdtm: add test for executing .rodata Reply-to: pageexec@freemail.hu CC: Laura Abbott , Kees Cook , Greg Kroah-Hartman , Mark Rutland , Jeremy Linton , Arnd Bergmann , "kernel-hardening@lists.openwall.com" , LKML Message-ID: <56C63747.819.280B3F5@pageexec.freemail.hu> In-reply-to: References: <20160216214904.GA23723@www.outflux.net>, <56C59DC5.19217.28FA99@pageexec.freemail.hu>, X-mailer: Pegasus Mail for Windows (4.71.565) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.12 (r00tworld.com [212.85.137.150]); Thu, 18 Feb 2016 22:27:37 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18 Feb 2016 at 12:34, Ard Biesheuvel wrote: > However, that does not fix the issue Kees is trying to solve, where a > .rodata section is emitted with the "x" bit set, which causes the > linker to complain: > > /tmp/cc50ffWw.s: Assembler messages: > /tmp/cc50ffWw.s:2: Warning: setting incorrect section attributes for > .rodata.text in that case why not use a top-level asm statement to set the section and its attributes (and compile the file with fno-toplevel-reorder)?