From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8463 invoked by alias); 9 Apr 2013 15:44:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8454 invoked by uid 89); 9 Apr 2013 15:44:21 -0000 X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from na3sys009aog135.obsmtp.com (HELO na3sys009aog135.obsmtp.com) (74.125.149.84) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 09 Apr 2013 15:44:20 +0000 Received: from mx10.qnx.com ([209.226.137.110]) (using TLSv1) by na3sys009aob135.postini.com ([74.125.148.12]) with SMTP ID DSNKUWQ3UiyGEz65h9GltAVRgl/phJUu7rs+@postini.com; Tue, 09 Apr 2013 08:44:20 PDT Received: by mx10.qnx.com (Postfix, from userid 500) id 8DFD420E5F; Tue, 9 Apr 2013 11:44:17 -0400 (EDT) Received: from exhts.ott.qnx.com (exch2 [10.222.2.136]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx10.qnx.com (Postfix) with ESMTPS id 415E020A49; Tue, 9 Apr 2013 11:44:17 -0400 (EDT) Received: from [10.222.96.215] (10.222.2.5) by EXCH2.ott.qnx.com (10.222.2.136) with Microsoft SMTP Server (TLS) id 14.2.318.4; Tue, 9 Apr 2013 11:44:16 -0400 Message-ID: <51643750.7080608@qnx.com> Date: Tue, 09 Apr 2013 18:09:00 -0000 From: Aleksandar Ristovski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Jan Kratochvil CC: Subject: Re: [PATCH 0/8] v2 - validate binary before use References: <1365521265-28870-1-git-send-email-ARistovski@qnx.com> <20130409153643.GA25825@host2.jankratochvil.net> In-Reply-To: <20130409153643.GA25825@host2.jankratochvil.net> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-04/txt/msg00239.txt.bz2 On 13-04-09 11:36 AM, Jan Kratochvil wrote: > On Tue, 09 Apr 2013 17:27:37 +0200, Aleksandar Ristovski wrote: >> Core support: >> - core will use second method. Note, however, that due to (at least >> on ubuntu) not dumping page containing buid-id in the core, the >> validation can not be performed (it will always default to valid). >> This is misfortunate but outside the scope of this patch. > > FYI it is bit 4 in /proc/self/coredump_filter, Fedora has the default 0x33. > > It is configured for Linux kernel by: > linux-2.6/fs/Kconfig.binfmt CORE_DUMP_DEFAULT_ELF_HEADERS > > One can simulate it if not pre-configured: > echo 0x33 >/proc/self/coredump_filter > Good to know. Thanks. In that case, it will be picked up by normal target_read_memory (second method). --- Aleksandar