Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752298AbdHIWhk (ORCPT ); Wed, 9 Aug 2017 18:37:40 -0400 Received: from mail-qt0-f173.google.com ([209.85.216.173]:33054 "EHLO mail-qt0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752174AbdHIWhj (ORCPT ); Wed, 9 Aug 2017 18:37:39 -0400 Subject: Re: new ELF marking To: "H.J. Lu" , Kostya Serebryany Cc: Kees Cook , LKML , Binutils References: From: "Carlos O'Donell" Organization: Red Hat Message-ID: <5a612234-ae9a-e66b-9810-02331a569a2e@redhat.com> Date: Wed, 9 Aug 2017 18:37:35 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 651 Lines: 21 On 08/09/2017 05:24 PM, H.J. Lu wrote: > On Wed, Aug 9, 2017 at 1:32 PM, Kostya Serebryany wrote: >>>> >>>> I believe this would only be an output bit, but I'm not sure how it >>>> would be wired into binutils. Kostya, do you know any details about >>>> how AddressSanitizer might be able to create this ELF note? >> >> I don't, hopefully H.J's suggestion works. >> Will it be backward compatible? >> (i.e. will the binaries built in the new way work on the old kernels?) >> >> > > Yes, it is backward compatible by design. ... only as long as the semantics implied by the flags are hints that can be ignored. -- Cheers, Carlos.