Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1720836ybt; Thu, 18 Jun 2020 15:51:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm++TJSDexizS3ZPNfCyXwMV7/XTSIUPb0n8WARP6YH/ooA8kskG/5iIy79Nuawuo8U7OG X-Received: by 2002:a17:906:f10a:: with SMTP id gv10mr858546ejb.309.1592520670625; Thu, 18 Jun 2020 15:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592520670; cv=none; d=google.com; s=arc-20160816; b=AAA1bK8qCCWRA9DLtv0dQaFizrqmeUPVSxlm3u8c/OsJa/vCQ4AVsai5HcBEA41A0D Qh5dgmEBbVAT06dR4NIphrKEQvEBJqJL9V9YJv/l2Kk20vy8DMZxS+WlufQDSzy6R4Wo Pz3IMAg6HCY/qIEZlOo3lRavL16wQ/34SYS5ZGGmb4SYVv5uC6fO+bMJPxWeuocboKOV 6ai1SgV6hNAiVGRANjcwOBMiB5m7RDbo1T9QyHG5Mg7BtBqPDxBEvn/iz5+Fz9Bx0PPX AeEnqRQ5smTzCG4Axmtf8+K3YssN0dR3N1cDkF7B7uHTlb68XOVWsiz7ITLvcibPFTjz w9Mg== 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; bh=UYTpKINys5q7UogH0MrXFzt2ML29Bof5pSVpOvGOBQ8=; b=gc+pjkjB900F6kFnhJWVEhQdxWKjW+HroIkVhlaPJ66W/7m28jTuQP1VeCr5ey9B7U gfQX8NAHLgt0K4idTaAMAc7xEBshTsrBLZCQ0LFRP4XFe6b4XqZ54zXVzuFflBJNocA+ qCc4cbsaGygpf6Qolp2nUc9dDj1brfmhu78d5yLJjwO4UVfMdNtbfon3TNLAh4ITFf9d VrfvwmnqbW3CXdFs2xJuu1vG86hFUurahEptHBfWB548UHKGaB9XlQOQTkZsaBTo/dfp CYml94jkyeyuwD6amBDTwH+q+Qh/rReCypHohaLP0I8zX665lkq3QGTxFNuZIMItHjla mwNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ncAx5x+1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q8si2826110edn.403.2020.06.18.15.50.48; Thu, 18 Jun 2020 15:51:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=ncAx5x+1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731515AbgFRWDT (ORCPT + 99 others); Thu, 18 Jun 2020 18:03:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727826AbgFRWDT (ORCPT ); Thu, 18 Jun 2020 18:03:19 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51A7EC06174E for ; Thu, 18 Jun 2020 15:03:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=UYTpKINys5q7UogH0MrXFzt2ML29Bof5pSVpOvGOBQ8=; b=ncAx5x+1YGICOfIWpHwKkomK9 bND/1aWxxt+dgshqhYPBXFpArncVqbfSpKhYYKFMqXYTUq0weEfJoNO5xoajbmF4Xw+JwLx2Lsndl lkxwRGIwqOX+S0+HY62LFPEY4JqWQSBBmMpTlntAoPkg98Uqv8GlRl/NtR+gU2yTmffokTIGloIL/ mAOXdyc6hA1UGOlLD82lVTlMf0GMRaskW9nh19t9yPzq5DZwQfNKKSKMwyZ5FlCy4QOm+kq/mLHkY emSGuEZAh2W/Vt4zzQxh2kQqcLaryFyoBGCBHXVV6oquxU8/SBSVCTuoyIdz6Uwhb94XgFmkpy/Vb auvbi4H8A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:58806) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jm2cs-0005cS-G5; Thu, 18 Jun 2020 23:03:14 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jm2cq-00052r-7D; Thu, 18 Jun 2020 23:03:12 +0100 Date: Thu, 18 Jun 2020 23:03:12 +0100 From: Russell King - ARM Linux admin To: Sedat Dilek Cc: Nathan Huckleberry , vincent.whitchurch@axis.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Clang-Built-Linux ML Subject: Re: [PATCH] Fix unwind_frame for clang-built kernels Message-ID: <20200618220312.GK1551@shell.armlinux.org.uk> References: <20200616223633.73971-1-nhuck@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 06:23:48AM +0200, Sedat Dilek wrote: > On Wed, Jun 17, 2020 at 12:36 AM 'Nathan Huckleberry' via Clang Built > Linux wrote: > > > > Since clang does not push pc and sp in function prologues, the current > > implementation of unwind_frame does not work. By using the previous > > frame's lr/fp instead of saved pc/sp we get valid unwinds on clang-built > > kernels. > > > > The bounds check on next frame pointer must be changed as well since > > there are 8 less bytes between frames. > > > > This fixes /proc//stack. > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/912 > > Signed-off-by: Nathan Huckleberry > > Just a small nit. > > Please label your patch with: "arm/stacktrace: ..." or "arm: stacktrace: ..." Convention is to use "ARM: ..." for arch/arm. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!