From patchwork Fri Jun 30 13:14:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniy Paltsev X-Patchwork-Id: 782851 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wzcTF60gjz9s81 for ; Fri, 30 Jun 2017 23:15:13 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FTFKVDUZ"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=dtH7TVbTlUoh9lRi73OrjmajEPgPxv0DdF99paa/vFA=; b=FTF KVDUZ5Z6MooEpUi6gVyMDbRisRZzs4ApEPJz082r9v7b5obhromR+GOeozxCyPRJCcwiDeLYf0aMP vqQsKdCt2adFdxSYXsrCPol7yhprDXwoXriFgeDHMGfFm2vu6QJeuuXwtuhTA22FkBR0nRByL5oVw r3/rj6BzT+lWYQEPpl4BZJFgCj08rnNgAi2WcC0C57py+LdLO+hWJvxQkc2BfE3e6DlSZtRhFqWk3 yRtwxlFCRYTKltTqTcj5jhmfZ34hI6aiXXTwqPaZ+gLkvGpdHdUfKi7ktuyQttiaZNXgMktrp+nI2 cyrVrVtRylvj6QYx73P3V6v+q9Vnhqg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQvlQ-0005g8-HB; Fri, 30 Jun 2017 13:15:12 +0000 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQvlN-0004QU-UQ for linux-snps-arc@lists.infradead.org; Fri, 30 Jun 2017 13:15:11 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 02F2A10C0EA2; Fri, 30 Jun 2017 06:14:49 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id E893265E; Fri, 30 Jun 2017 06:14:48 -0700 (PDT) Received: from localhost.internal.synopsys.com (unknown [10.121.8.106]) by mailhost.synopsys.com (Postfix) with ESMTP id 0F4E8646; Fri, 30 Jun 2017 06:14:47 -0700 (PDT) From: Eugeniy Paltsev To: strace-devel@lists.sourceforge.net Subject: [PATCH] ARC: Fix wrong access to "sp" member in user_regs_struct Date: Fri, 30 Jun 2017 16:14:14 +0300 Message-Id: <20170630131414.32627-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170630_061509_985934_EDF2F259 X-CRM114-Status: UNSURE ( 5.07 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-snps-arc@lists.infradead.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org "sp" register is member of "scratch" structure (which is nested in user_regs_struct) Signed-off-by: Eugeniy Paltsev --- linux/arc/arch_regs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/arc/arch_regs.c b/linux/arc/arch_regs.c index 9a5c2df..88bb799 100644 --- a/linux/arc/arch_regs.c +++ b/linux/arc/arch_regs.c @@ -1,4 +1,4 @@ static struct user_regs_struct arc_regs; -unsigned long *const arc_sp_ptr = &arc_regs.sp; +unsigned long *const arc_sp_ptr = &arc_regs.scratch.sp; #define ARCH_REGS_FOR_GETREGSET arc_regs #define ARCH_PC_REG arc_regs.efa