From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CADDDC432BE for ; Thu, 26 Aug 2021 23:34:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 956FA60725 for ; Thu, 26 Aug 2021 23:34:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 956FA60725 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hPSuL/HRXSQ6DzaZ45/HdFxQZS2xDiNvlsQgFFc+lXQ=; b=AXz3sB4/sQY5Q6HO+LxjnOx251 68KdB/jZ1raYHyigDoOaNSHVV92pbRrS6NNKckJMDPi8J0hgjI6IR+tkUsZJ6trf2peXDjXWCeWBt 5Spr7WO03BL+2rMACNk3Sq2yK/+cGuVffsacIHxiBoRyS9AzNp1Z6rXYYTvGCu5MLewcgOSXfXH60 mGB4pIHbZvw7oj08EPdsOwrPXy2RTwWYyElZcKnN9lY++h55ttxpI07zAFZD8s2plWspYKmg71H7C o0ijcQmnFWmde0xAv3Cqp4jC94PTSMqjSLD3vdULMpnpebgrq1wW6et7w7d+OOFS4MFeudLpPu/n4 9vIi9r+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJOrA-00B3TW-9w; Thu, 26 Aug 2021 23:32:25 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mJOqH-00B38W-38 for linux-arm-kernel@lists.infradead.org; Thu, 26 Aug 2021 23:31:30 +0000 Received: from [192.168.254.32] (unknown [47.187.212.181]) by linux.microsoft.com (Postfix) with ESMTPSA id 5204320B8618; Thu, 26 Aug 2021 16:31:27 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5204320B8618 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1630020688; bh=8v9TbhpIJoMv6rGK5bzfoY2JnYeMp9qeCuyaeZeJfRQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=pKyaAZvn1TecJCW+X412OG7vHpPkFDuUavVwfNG1/94nsn1jNsQVxnN9fxu5HqLE5 Fr37WTsD4sXkCecqaNCnvPJqr2MKnwe/ip942OuyKk8zKblwgnCRGCUxCjaTdrYkpq cmJTLO4NJxbopAAvKZ6OhojUlYk01wHqY8buj3/8= Subject: Re: [RFC PATCH v8 3/4] arm64: Introduce stack trace reliability checks in the unwinder To: Mark Brown Cc: mark.rutland@arm.com, jpoimboe@redhat.com, ardb@kernel.org, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, catalin.marinas@arm.com, will@kernel.org, jmorris@namei.org, pasha.tatashin@soleen.com, jthierry@redhat.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210812190603.25326-1-madvenka@linux.microsoft.com> <20210812190603.25326-4-madvenka@linux.microsoft.com> From: "Madhavan T. Venkataraman" Message-ID: <77c43173-95c9-6ce5-ad11-219d38a66e34@linux.microsoft.com> Date: Thu, 26 Aug 2021 18:31:26 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210826_163129_242159_701387AA X-CRM114-Status: GOOD ( 20.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 8/26/21 10:57 AM, Mark Brown wrote: > On Thu, Aug 12, 2021 at 02:06:02PM -0500, madvenka@linux.microsoft.com wrote: > >> + if (frame->need_reliable && !unwind_is_reliable(frame)) { >> + /* Cannot unwind to the next frame reliably. */ >> + frame->failed = true; >> + return false; >> + } > > This means we only collect reliability information in the case > where we're specifically doing a reliable stacktrace. For > example when printing stack traces on the console it might be > useful to print a ? or something if the frame is unreliable as a > hint to the reader that the information might be misleading. > Could we therefore change the flag here to a reliability one and > our need_reliable check so that we always run > unwind_is_reliable()? > > I'm not sure if we need to abandon the trace on first error when > doing a reliable trace but I can see it's a bit safer so perhaps > better to do so. If we don't abandon then we don't require the > need_reliable check at all. > I think that the caller should be able to specify that the stack trace should be abandoned. Like Livepatch. So, we could always do the reliability check. But keep need_reliable. Thanks. Madhavan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel