From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17350 invoked by alias); 5 Sep 2013 14:24:41 -0000 Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org Received: (qmail 17341 invoked by uid 89); 5 Sep 2013 14:24:41 -0000 Received: from mms2.broadcom.com (HELO mms2.broadcom.com) (216.31.210.18) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Sep 2013 14:24:41 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_40,RDNS_NONE autolearn=no version=3.3.2 X-HELO: mms2.broadcom.com Received: from [10.9.208.57] by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Thu, 05 Sep 2013 07:18:13 -0700 X-Server-Uuid: 4500596E-606A-40F9-852D-14843D8201B2 Received: from IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) by IRVEXCHCAS08.corp.ad.broadcom.com (10.9.208.57) with Microsoft SMTP Server (TLS) id 14.1.438.0; Thu, 5 Sep 2013 07:24:32 -0700 Received: from mail-irva-13.broadcom.com (10.10.10.20) by IRVEXCHSMTP1.corp.ad.broadcom.com (10.9.207.51) with Microsoft SMTP Server id 14.1.438.0; Thu, 5 Sep 2013 07:24:32 -0700 Received: from [10.177.73.74] (unknown [10.177.73.74]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 7D6D11A46 for ; Thu, 5 Sep 2013 07:24:32 -0700 (PDT) Message-ID: <5228941F.8080601@broadcom.com> Date: Thu, 05 Sep 2013 14:24:00 -0000 From: "Andrew Burgess" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: insight@sourceware.org Subject: [PATCH 0/2] Memory corruption caused by failure to notice architecture change. Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-q3/txt/msg00034.txt.bz2 Turns out that in a particular use case insight does not spot a change of architecture, and then starts corrupting memory by accessing off the end of the register cache. I've got two patches, [1/2] - Adds an assert that would detect this bug. [2/2] - My attempt at a fix. I've only had a quick look over the tcl code, (and I'm no tcl expert), so I suspect some feedback on this one. Cheers, Andrew