From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4173 invoked by alias); 22 Jan 2015 11:38:18 -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 4148 invoked by uid 89); 22 Jan 2015 11:38:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp16.uk.ibm.com Received: from e06smtp16.uk.ibm.com (HELO e06smtp16.uk.ibm.com) (195.75.94.112) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 22 Jan 2015 11:38:14 +0000 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 22 Jan 2015 11:38:11 -0000 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp16.uk.ibm.com (192.168.101.146) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 22 Jan 2015 11:38:09 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id D1D9917D8042 for ; Thu, 22 Jan 2015 11:38:11 +0000 (GMT) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t0MBc9HS61079560 for ; Thu, 22 Jan 2015 11:38:09 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t0MBc80Y029795 for ; Thu, 22 Jan 2015 04:38:08 -0700 Received: from br87z6lw.de.ibm.com (dyn-9-152-212-115.boeblingen.de.ibm.com [9.152.212.115]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t0MBc7UZ029777; Thu, 22 Jan 2015 04:38:07 -0700 From: Andreas Arnez To: gdb-patches@sourceware.org Cc: Pedro Alves , Jan Kratochvil , Mark Kettenis Subject: [PING] [PATCH 0/3] Fix for PR 17808 and some related changes References: <1421335311-4239-1-git-send-email-arnez@linux.vnet.ibm.com> Date: Thu, 22 Jan 2015 11:38:00 -0000 In-Reply-To: <1421335311-4239-1-git-send-email-arnez@linux.vnet.ibm.com> (Andreas Arnez's message of "Thu, 15 Jan 2015 16:21:08 +0100") Message-ID: <87h9vj6o68.fsf@br87z6lw.de.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15012211-0025-0000-0000-00000384CAE0 X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00584.txt.bz2 Ping: https://sourceware.org/ml/gdb-patches/2015-01/msg00424.html Also, here is Jan's test case that showed the problem: https://sourceware.org/ml/gdb-patches/2015-01/msg00199.html On Thu, Jan 15 2015, Andreas Arnez wrote: > As seen in PR 17808, a test case with a forged (invalid) core file can > crash GDB with an assertion failure when a register section has the > wrong size. This patch series is about improving GDB's behavior in > such cases: Patch 1 fixes the reported problem for i386 as well as for > other targets; patch 2 avoids out-of-bounds accesses when an x86 > ".reg-xstate" section is too short, and patch 3 adds a warning when a > core file register section is larger than expected. > > This is based on the "lazy approach" suggested here: > > https://sourceware.org/ml/gdb-patches/2015-01/msg00229.html > > OK to apply? > > > Andreas Arnez (3): > [PR corefiles/17808] Fix internal error when core file section is too > big > x86: Use correct .reg-xstate section size > Warn if core file register section is larger than expected > > gdb/alphanbsd-tdep.c | 4 +++- > gdb/amd64-linux-tdep.c | 2 +- > gdb/amd64-tdep.c | 4 ++-- > gdb/armbsd-tdep.c | 4 +++- > gdb/corelow.c | 5 +++++ > gdb/gdbarch.h | 6 ++++++ > gdb/gdbarch.sh | 6 ++++++ > gdb/hppa-hpux-tdep.c | 4 +++- > gdb/hppaobsd-tdep.c | 4 +++- > gdb/i386-linux-tdep.c | 3 +-- > gdb/i386-tdep.c | 8 ++++---- > gdb/m68kbsd-tdep.c | 4 +++- > gdb/mips-linux-tdep.c | 16 ++++++++-------- > gdb/mipsnbsd-tdep.c | 4 +++- > gdb/mn10300-linux-tdep.c | 8 ++++---- > gdb/regset.h | 7 +++++++ > 16 files changed, 62 insertions(+), 27 deletions(-)