Received: by 10.223.164.202 with SMTP id h10csp503288wrb; Wed, 15 Nov 2017 03:30:52 -0800 (PST) X-Google-Smtp-Source: AGs4zMY2RTM2xEYOI26u+wTJQRXQa9rkKF5y+dvh0R9qUOHkAZYJcmRF+QEhyW+DxIQqGZmsMYXI X-Received: by 10.101.97.167 with SMTP id i7mr15280939pgv.449.1510745452273; Wed, 15 Nov 2017 03:30:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510745452; cv=none; d=google.com; s=arc-20160816; b=R8ycssuBVa/FMus0IMdzTe/PcsjniuavreSYjsdDSBE02Z6kTukGO2JCzvkYj7Vmka pERPvH+WAHRBb2xA5+8R9mC2giYp8033mDZ+FSh66S7HSBKdKvhfhaa15er/Zdbvx0v3 oDpFCISXye6J/Gr7l96BmOh8TRNZHC+jEL9ajqTWewbm/zESdZSX4psYBUZPPBkJ4ZWp aBM9DlV1UISIh5DS4+hdSpx9NpD/35p50F16vOn8Y4Z8Q+aQsGBPRZPM5sGnM+Bg60wR KnZiSW++WpsaxMcNrCS9RN7cezcEK2KI1Regvq3jMs7stE7Uls1YdMhbULoCd3IDLaO7 iSwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=UkUEXLAW+CLBc7QkZJSFg29BhFmHmLqFDeZ/svN649M=; b=iirmk2r7i0LuRCfOCQdZM/P435gY2zYYN8dlz0J7fpmGtU6z5vnCEe7QHuqdtgQkbT 3Lya9YY7bfdsKsxNUNrFJYZN2w66aGSPTC44SLPR2kx38KOjLbOFcXDOMugl+Y8p2R1i 02CRRk0XdVAegz4kSyoovKbgBiJaLlwBl9QYQojYTz4aC0kasaCmPtWJedYuv2ZU/zfV 9qGZPaz9Brxq6n1UbqmM/8gWFWooYW/808SdX7P539NHdeHlNXca5lvUoWsafUn0pUQR gWBcu62gw3pZqw5qkOF5+KKY79eJjpyZqpJ+hvMXLqUfWx6Z/C6CkQ+1QFXOBrlRSIcI FBNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=VB97iKZM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s10si6200683pfi.394.2017.11.15.03.30.40; Wed, 15 Nov 2017 03:30:52 -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=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=VB97iKZM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757649AbdKOL0x (ORCPT + 88 others); Wed, 15 Nov 2017 06:26:53 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:55902 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756957AbdKOL0q (ORCPT ); Wed, 15 Nov 2017 06:26:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=UkUEXLAW+CLBc7QkZJSFg29BhFmHmLqFDeZ/svN649M=; b=VB97iKZMBaenMgww+ksaUX8pJ8l12P8I6SZtPKuDOeda51a4H/fWNRoRJ3wJqBhWarKfQvllXiQ9Wmz5Kk3ByUt3hayQcFiWiI/RHX+X7JoaBteHeCzS1ZUvC4loQipCO8tGPpX+9ji7biDHnQtJLsTB4kif4qpu9EuNtzHQrw0=; Received: from n2100.armlinux.org.uk ([fd8f:7570:feb6:1:214:fdff:fe10:4f86]:39519) by pandora.armlinux.org.uk with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1eEvq2-0008Pn-Vf; Wed, 15 Nov 2017 11:26:39 +0000 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.76) (envelope-from ) id 1eEvpz-0003nc-72; Wed, 15 Nov 2017 11:26:35 +0000 Date: Wed, 15 Nov 2017 11:26:34 +0000 From: Russell King - ARM Linux To: Maninder Singh 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 Subject: Re: [PATCH 1/1] arm/stacktrace: stop unwinding after an invalid address. Message-ID: <20171115112634.GD31757@n2100.armlinux.org.uk> References: <20171024115338.GF20805@n2100.armlinux.org.uk> <1508845602-33508-1-git-send-email-maninder1.s@samsung.com> <20171115110922epcms5p28a7a3bdf40777fe5852c7d5bd08ec7a4@epcms5p2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171115110922epcms5p28a7a3bdf40777fe5852c7d5bd08ec7a4@epcms5p2> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 15, 2017 at 11:09:22AM +0000, Maninder Singh wrote: > 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. Notice that I said "taken in SVC mode" not "taken in user mode". Your example below is for a user mode interrupt. > 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? -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up From 1582139777917959687@xxx Tue Oct 24 11:54:31 +0000 2017 X-GM-THRID: 1582139495737348556 X-Gmail-Labels: Inbox,Category Forums