Received: by 10.223.164.202 with SMTP id h10csp595288wrb; Wed, 15 Nov 2017 05:04:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMYTYm/OMSvZlW2/6SbZQ/zKU9pdAICt58arF2zjpZKsc398yV68izwh4s2u9lop58UI2EC7 X-Received: by 10.101.98.72 with SMTP id q8mr15199229pgv.71.1510751042293; Wed, 15 Nov 2017 05:04:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510751042; cv=none; d=google.com; s=arc-20160816; b=z4w3bTOfqI6tqT+plSWLoEexDOR0evlmrLEoHgOYIwGI3G7rXW+/uQRMkLa/XqK1LL 1qJ6LvrvTK38LpVZYP+X5E7Lyu8SxgT7B5wwDYZoGO0CW+tWIE7vNHrl3Fpb3XxXC/QF y8VTG2O/2cEyhKiW6kdagoXbcbXNNSRUxJOXFKiyFGlFxW4UBtSgy6MlCan/cWp0ACVW eSDHBS2hs848P7CIFOD988Xnf1B6OExB3BKwsbuWXzL2ewbjOjjy/1j69Rj3l6zlAMHB 5gtdm5glJEsnpkv9PxzWzCFqPiZ/R4Lga3kU6a8YhYNBEbeE0AKq+Lj2srSsdeuZZWHg lyCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :reply-to:subject:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=el+PgvChbpO7H3Yb+lvZ6LsF/k9+xTVJeDvrd5PXEhw=; b=okd0D620wLHCo6CK2USDbcGnJewp/S0xfgVcYEbLrXRlri2HMxAgAJc4NNRMW6p3d7 VG4QBOxuMkQy7U5K/2/bYxhre7X+tLmKakG8xmVc7cTOmeKauGIFVpGYiaGGuUYB6jke QRvBB3FirY5fpdgo2xhYi3zYTDqP2OAbie9tx7OATU+RNHAL54DQN6dLMAKA0N9xKmXf O0HpcYoYUQL1xYdtaWiuaL/oRlHoGi3b8i0LrcRO5NESFY9MZt+6nxy767pYcuPt3rM1 psSO0LkY+XWKUQ/EN5GSNZwJPDjvx7RJdm+/v2JY4ypQfYDZMPJQjQdr149HhPvvUJRK 8quw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=seIpicYI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s64si5338065pfj.279.2017.11.15.05.03.49; Wed, 15 Nov 2017 05:04:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=seIpicYI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756955AbdKOLXV (ORCPT + 88 others); Wed, 15 Nov 2017 06:23:21 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:35721 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752741AbdKOLXN (ORCPT ); Wed, 15 Nov 2017 06:23:13 -0500 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20171115112311epoutp0297d92c314584697c66e8a961febbed14~3PpDAaX9Q0876608766epoutp02g for ; Wed, 15 Nov 2017 11:23:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20171115112311epoutp0297d92c314584697c66e8a961febbed14~3PpDAaX9Q0876608766epoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1510744991; bh=el+PgvChbpO7H3Yb+lvZ6LsF/k9+xTVJeDvrd5PXEhw=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=seIpicYIsdYFUWNQokX8//of8/Ce19jpNNGWyMStd5Qx23kVFTVk+o/hckwKaC5d/ D5NiiuKQRQXCXHtWvgZCqwvce+yEDQQR2p1yX/VGNVr5h2vBxUcFfFycr67m0DmwFZ lVLi7uXPVtkrzqxs/q47bLuf0CQ5K/flidBebTDs= Received: from epsmges5p3new.samsung.com (unknown [182.195.40.76]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20171115112311epcas5p28923bdacc329a48f88a1e7f7df991a1c~3PpCoaQzk0949609496epcas5p2A; Wed, 15 Nov 2017 11:23:11 +0000 (GMT) X-AuditID: b6c32a4b-f03ff70000001126-ad-5a0c239e1117 Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id AF.63.04390.E932C0A5; Wed, 15 Nov 2017 20:23:10 +0900 (KST) Mime-Version: 1.0 Subject: Re: [PATCH 1/1] arm/stacktrace: stop unwinding after an invalid address. Reply-To: maninder1.s@samsung.com From: Maninder Singh To: Russell King - ARM Linux CC: "mingo@kernel.org" , "will.deacon@arm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , PANKAJ MISHRA , AMIT SAHRAWAT , Vaneet Narang X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20171024115338.GF20805@n2100.armlinux.org.uk> X-Drm-Type: Y,confirm X-EPLocale: en_US.EUC-KR X-EPWebmail-Msg-Type: personal X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20171115110922epcms5p28a7a3bdf40777fe5852c7d5bd08ec7a4@epcms5p2> Date: Wed, 15 Nov 2017 11:09:22 +0000 X-CMS-MailID: 20171115110922epcms5p28a7a3bdf40777fe5852c7d5bd08ec7a4 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE X-MTR: 20171115110922epcms5p28a7a3bdf40777fe5852c7d5bd08ec7a4 CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUhTURjGO7vXdbVWx2n4ZlZ6LcjCua3NXUsrKmJgwcCIMsJuelDJ3a17 N/sgSPugMrSCsiU6KypJ7WtlmSbkqpGFlST2h6J9WFH0YVlB3+1uk/rvOc/7nN97zsvLUOqj ylimUHAQUeCLWGUEfeVm0oxkd+LYbG3FkXSuq5Vwnuc9Ydyjlmol5z3chriG33cR1/+2ScF5 O2oQ9/rjHXoBY250NyLzo54uyuyp36s0Xzq5zVxxuR6Zhz1TLMpskl5A+DwixhMh15ZXKORn sJlZOYtyjKlaXbIujTOx8QJvJRns4qWW5CWFRf7nsPHFfJHTb1l4SWJT5qWLNqeDxBfYJEcG u1qn02t0WpNGr9drDMY1c/RGf2QtKegdKqft3RGbnn2fX4J6mTLEMIANMHCaLkMRjBq3IvDt GaZkX4Uj4VdzVBkKZ6JwFvScciFZq3ECPHQ1IjkShbXwvWmGbCuxBupbrtOyjvYTfe2fA0gK P1FA6fXu0XIBsApcu1/QQT0JrtY1BZjheC607LyPgv4E+FkykgFoOP5KGdRToPJLIzWS+eCr DeWjYVd/Z8iPhCffWpHcGHApAo/LHQLFQcOlcjpY2Ieg5+ZvKnioQ1D69F4IZYIHHbUBlAov g5+ddQpZ03g6vK18EyItht23doXJmsJT4eq76sC0KJwE51tSgpHJcPjuOUVQZ0DJ9kFlMD4O yn8MKkYm0eweVBxA06r+zbrqP2jVP+gxRNWjicQuWfOJZLTPFshGjcRbJaeQr8m1WT0osJYz M5uR5/5SL8IMYseqcMKYbHUYXyxttnoRMBQbrcrd77dUefzmLUS05YjOIiJ5kdH/vYNU7IRc m3/JBUeOzpCmNaSmmnRabZqBjVH5rjlXqXE+7yDrCbETceSeggmPLUHbRL5v6M5RK3TX9CcP uUyRlb2O8W2fViT1nlnnaf+z3Dcr9XPxuU8JH3ZseL/+wsWsROGU1vBg2QLvqKavaGHMwvfH v16T4nyzyvuG2003rJadh9gfo9tU9pcn+EV9Yta0P7+2nl25A4ZPD1QkDmyK6+xwx325HfNY Kj1haTtyMHYOS0sFvG4mJUr8XwSWEnusAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20171024114852epcas5p199ffd8d75fc57e46d46025e12180c156 X-RootMTR: 20171024114852epcas5p199ffd8d75fc57e46d46025e12180c156 References: <20171024115338.GF20805@n2100.armlinux.org.uk> <1508845602-33508-1-git-send-email-maninder1.s@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Russell, >On Tue, Oct 24, 2017 at 05:16:42PM +0530, Maninder Singh wrote: >> This patch stops unwinding backtrace in case of below 2 cases. >> >> (Issue observed while porting stackdepot on ARM, duplicate >> entries created in stackdepot >> reference patch for workaround in stackdepot:- >> https://lkml.org/lkml/2017/10/11/353 >> ). >> >> 1. If address belongs to irq/exception code, ignore it. >> save_stack+0x40/0xec >> __set_page_owner+0x2c/0x64 >> .... >> .... >> __handle_domain_irq+0x9c/0x130 >> gic_handle_irq+0x40/0x80 >> __irq_usr+0x4c/0x60 >> 0xb6507818 >> ^^^^^^^ > >However, we _do_ want to trace through an IRQ taken in SVC mode, but you >completely remove all that code. So, not taking this patch, sorry. OK. Thanks. But can we add some marker to distinguish before and after interrupt context frames. so that we can remove interrupt that frames from stackdepot, because due to interrupt allocations, we end up with so many stackdepot entries and which results in more memory consumption by stackdepot. Something like below: __set_page_owner+0x2c/0x64 ... ... __handle_domain_irq+0x9c/0x130 gic_handle_irq+0x40/0x80 __irq_usr+0x4c/0x60 0xFFFFFFFF (marker) 0xb6507818 .... Thus in stackdepot we can save before 0xFFFFFFF. or can you provide any suggestion for the same if we can try for? From 1584131423140250234@xxx Wed Nov 15 11:30:52 +0000 2017 X-GM-THRID: 1582139495737348556 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread