From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30804 invoked by alias); 9 Apr 2013 15:36:51 -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 30781 invoked by uid 89); 9 Apr 2013 15:36:51 -0000 X-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 09 Apr 2013 15:36:51 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r39Falok000395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 9 Apr 2013 11:36:47 -0400 Received: from host2.jankratochvil.net (ovpn-116-44.ams2.redhat.com [10.36.116.44]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r39Fai6w014751 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 9 Apr 2013 11:36:46 -0400 Date: Tue, 09 Apr 2013 17:53:00 -0000 From: Jan Kratochvil To: Aleksandar Ristovski Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 0/8] v2 - validate binary before use Message-ID: <20130409153643.GA25825@host2.jankratochvil.net> References: <1365521265-28870-1-git-send-email-ARistovski@qnx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1365521265-28870-1-git-send-email-ARistovski@qnx.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-04/txt/msg00238.txt.bz2 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 Regards, Jan