Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1402796pxj; Fri, 21 May 2021 13:23:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTYON91ko9eQef1SiI/G7FC6usYDTNqT10CUobfGkmYt1n/m4vpwrkxLQom570GdjRc6o+ X-Received: by 2002:a17:906:ecf9:: with SMTP id qt25mr11994696ejb.55.1621628616962; Fri, 21 May 2021 13:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628616; cv=none; d=google.com; s=arc-20160816; b=OagSldozS0dHKTGt42wwXlY2psuZndK3V9aEUoxxge5M0dWJR8vD75d59q42Kg6Lyc w02cmxJCn+5/lnXZek4zE0DGh1Xa5i//1uT6Gl1v7ciCLmcQUiPt9/+Ir9fbGsFaPH7k JuCxSLWvMOc2M0D9KshUMppqspVPrpnJU7axZ0mvnyaHYtOj8iOwAMWU289EMGu3PsTL OMmpJ063HmgZT43q4IJ49fwqINBPHSXTeWyB+qi5aZZtOii/UgCG0gUcVGx9bcfBxiJ2 ddw/FsYN30dO74LI0NizUVrNaBHsS8AkbFaXKULt6KZX7tCWIo+3WYGCKVB/CoqcjRwB myXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ycqm3j0wX7C/S/ptvTlgoHJH/8ZDovU44aQpexyvdnU=; b=fSBBVFGm/cgV8kjubWei421K8uijcdYuiXaaeFP70eM3pqOm7AaegfnJKN8vOBrxAI /DXB1p1vCXiiUjdCBEtYJ8NKI3I6fiZBVSBoaJTMBk3lV82BS271YvgWfoiUg9oj3EtJ 3EVwwzEO8SJ8gXwzeD+D+1jnv69iuBzc7t+tlN5JwxzF1cD0+S1Z9b//8eF/QlbEzijX JMaWVo+xzpu98IMEoepYSTySUxCb04G/EfMWJL6YGRw7cE6mQxLHC8rNQyavJos4+G5O i1DiSFoCjfGhhyK41AMZ/YA2WSomgdTiHj3QPT4fl3cdsQgUAi6Xt4/U6erygiifImc4 opfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pzjPEFKS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si6440390eje.327.2021.05.21.13.23.13; Fri, 21 May 2021 13:23:36 -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=pass header.i=@kernel.org header.s=k20201202 header.b=pzjPEFKS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236719AbhEUQMo (ORCPT + 99 others); Fri, 21 May 2021 12:12:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:33266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbhEUQMn (ORCPT ); Fri, 21 May 2021 12:12:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6BC12613DB; Fri, 21 May 2021 16:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621613480; bh=FNm3jXDRWoCbHZUTEZ8FokhLVtkukv3XsTG0pBzmCNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pzjPEFKSOYGIVYk5X+06MjnSj+zbF9uPA3+xtNQf31RQJJqJ8JVI5nwbY4d+SYK9u nv/8OayJ21Sztmy0ci0rAku1MnBOHXrgzRHFn1v0yhUjLNSL5AU679ECBfG8VaqwlG l4/zpYHHvBW+CpXy/02qwPlf9EGtdftKNAaAEzxkPU8vQDpFW/m/i57FU3aXo2v2I5 79ErOLvQQD7beWhlcZkMGbINB7Lx7W7B2NhG/iUXGJzZz6tOD0K/ZK+28PXppHqhls fNONnG/6uDG61qsBMapKZjVYjmrKh1jwavLZZ4Iim8rRPda8fyx8vVyyRLArwAmtuW aP7sf32GFf+cA== Date: Fri, 21 May 2021 17:11:17 +0100 From: Mark Brown To: madvenka@linux.microsoft.com Cc: mark.rutland@arm.com, jpoimboe@redhat.com, ardb@kernel.org, jthierry@redhat.com, catalin.marinas@arm.com, will@kernel.org, jmorris@namei.org, pasha.tatashin@soleen.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v4 1/2] arm64: Introduce stack trace reliability checks in the unwinder Message-ID: <20210521161117.GB5825@sirena.org.uk> References: <68eeda61b3e9579d65698a884b26c8632025e503> <20210516040018.128105-1-madvenka@linux.microsoft.com> <20210516040018.128105-2-madvenka@linux.microsoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rJwd6BRFiFCcLxzm" Content-Disposition: inline In-Reply-To: <20210516040018.128105-2-madvenka@linux.microsoft.com> X-Cookie: Do not write below this line. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --rJwd6BRFiFCcLxzm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 15, 2021 at 11:00:17PM -0500, madvenka@linux.microsoft.com wrote: > Other reliability checks will be added in the future. ... > + frame->reliable = true; > + All these checks are good checks but as you say there's more stuff that we need to add (like your patch 2 here) so I'm slightly nervous about actually setting the reliable flag here without even a comment. Equally well there's no actual use of this until arch_stack_walk_reliable() gets implemented so it's not like it's causing any problems and it gives us the structure to start building up the rest of the checks. The other thing I guess is the question of if we want to bother flagging frames as unrelaible when we return an error; I don't see an issue with it and it may turn out to make it easier to do something in the future so I'm fine with that. --rJwd6BRFiFCcLxzm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmCn26QACgkQJNaLcl1U h9BRjwf+NUkllMR4DUBzihQYZz8gFCBdrphJycb1capE54XA922TiNiSHdNs6Un2 og9xrHSmjkris4pNB4/EoZ8drNtDgp3x8Rwgg7RbRhA0xujYmOoWGJuhdEuUEjID jlkGNpt3oRJgBtEl3evUCSmXW0GK5a3emGmYA1yzUtuCFNIU4IfwO6r0d9R4Vc0U koUUak44PssXvqETo+iCX8BFh1dCVB8hTrPQJRpTjxHUcljYUxRK5/7aT1pj2L/R viAnHaZVX5h7RHy4oc/kKUG5jEY4WWdZembkRUhVjbYy+tNc5SLGNi9Gd3G8BxJw YGsb0HGPBSkXuoM3WVDdcHpNRe3/Hw== =FYp0 -----END PGP SIGNATURE----- --rJwd6BRFiFCcLxzm--