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=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 3486DC433B4 for ; Wed, 14 Apr 2021 12:24:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 114646117A for ; Wed, 14 Apr 2021 12:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350888AbhDNMY5 (ORCPT ); Wed, 14 Apr 2021 08:24:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:59526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350878AbhDNMYu (ORCPT ); Wed, 14 Apr 2021 08:24:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F17706105A; Wed, 14 Apr 2021 12:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618403068; bh=j9wxhOwuWa7eyWiZdHRpPOIyObN63pRYdbSKNnanZqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UKg3kofB3tFoKw8vYxOlvzZXWsnMbj5YRHpcbHvD6QZ2pgMwPoRWUhNdryU98YVFX qzQul+qj+u6It+YsW2xxYF2Q6iN9epOcYtOkVEBwba0pbfZCIoPdJzsb3ZDkRZCzJ+ DchJ0mXbb6U5QPXFsYDhRrvrJeoNkZn3Hhz00L9b6QY/jTjyOx/AJ0EDm7hPIpGjDQ wS4VG95syoTpaWAUUseKNBipFho0jbhP2Js4lfydHQs6njuqhNlYGziZoPHvrawU8B DTv5kwgumvc8R/NMGCW4MA3xvUYZJOl4XTu6GLpjxSfJoodz011tNRgmoKpleCc7Lw eIPAuVDrpvwBw== Date: Wed, 14 Apr 2021 13:24:05 +0100 From: Mark Brown To: Josh Poimboeuf Cc: "Madhavan T. Venkataraman" , Mark Rutland , jthierry@redhat.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: [RFC PATCH v2 0/4] arm64: Implement stack trace reliability checks Message-ID: <20210414122405.GB4535@sirena.org.uk> References: <705993ccb34a611c75cdae0a8cb1b40f9b218ebd> <20210405204313.21346-1-madvenka@linux.microsoft.com> <20210409120859.GA51636@C02TD0UTHF1T.local> <20210409213741.kqmwyajoppuqrkge@treble> <8c30ec5f-b51e-494f-5f6c-d2f012135f69@linux.microsoft.com> <20210409223227.rvf6tfhvgnpzmabn@treble> <20210412165933.GD5379@sirena.org.uk> <20210413225310.k64wqjnst7cia4ft@treble> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline In-Reply-To: <20210413225310.k64wqjnst7cia4ft@treble> X-Cookie: George Orwell was an optimist. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 13, 2021 at 05:53:10PM -0500, Josh Poimboeuf wrote: > On Mon, Apr 12, 2021 at 05:59:33PM +0100, Mark Brown wrote: > > Some more explict pointer to live patching as the only user would > > definitely be good but I think the more important thing would be writing > > down any assumptions in the API that aren't already written down and > Something like so? Yeah, looks reasonable - it'll need rebasing against current code as I moved the docs in the source out of the arch code into the header this cycle (they were copied verbatim in a couple of places). > #ifdef CONFIG_ARCH_STACKWALK > =20 > /** > - * stack_trace_consume_fn - Callback for arch_stack_walk() > + * stack_trace_consume_fn() - Callback for arch_stack_walk() > * @cookie: Caller supplied pointer handed back by arch_stack_walk() > * @addr: The stack entry address to consume > * > @@ -35,7 +35,7 @@ unsigned int stack_trace_save_user(unsigned long *store= , unsigned int size); > */ > typedef bool (*stack_trace_consume_fn)(void *cookie, unsigned long addr); > /** > - * arch_stack_walk - Architecture specific function to walk the stack > + * arch_stack_walk() - Architecture specific function to walk the stack > * @consume_entry: Callback which is invoked by the architecture code for > * each entry. > * @cookie: Caller supplied pointer which is handed back to These two should be separated. --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmB23uQACgkQJNaLcl1U h9DcIQf7BVTnQ3HyLZEooh8Z6mZHAE99J+dWe2aRydUFd3uPgEbKAXt1TAVF1c6f H9FtaFpd5if0z1Dz3WSsDqSoSqn7aX5znp8ZtYouehvObP5Xmce7mSXqGV1F7ulC B2nAG8yjFICW9UgdOf8koEFK/flWiueSQwV5Q0DlX+QewBk3e+ziCc/CeC7S5jnk 8mmGpaMVB1E6g3Mu95ShYWLir8Hl4cM+50IOvHq4Smqr9Mm/ma36NtLYI2ecYpS5 JjsXrRCrUnjBOF95vg16MuD6OLTUhR8A4/cIwDbLn1Rj1iM1gd29xRtZPdAF1l3p VqXJIEXWXBuV5rUljTfRYctLOm7qXg== =W+NU -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW-- 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=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 E2CCEC433B4 for ; Wed, 14 Apr 2021 12:27:00 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 6CC7561131 for ; Wed, 14 Apr 2021 12:27:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6CC7561131 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To: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-Owner; bh=ItYY8V3tZIZSmSr1LX2ngByMFTtw+xvhWEukVqgs5Fc=; b=KCS5EEPVTeLIylGq5XGjiFI2T VHEhkh7sWV/yVpFRCG9rAQq8Ko+ebGjYXL9xLQ0jSkTRvHghEb9QKUfe4704qwCXLm9B2y9gW23w1 Fe/i1zEJ+dKJuBO1vtodOcnoWhbZjxfoveK/zXslcXihibmc2KfqmJ1PezsxjP0BLJ4Twhl9ZlKwK /T9f98tRgbsfB3sDU9l96mhLAnyTJSca5mr52Mha7z+4ZZJliZlgpoZ7bWfks9MvYl6pdVG41+fxK BHTeYBYLON7uUM71rxbdc5dCpapKqycZzK9aLe7/otNIM+ZDhZsY8tt4gJi2J/uKIQFQtMyjh6ziq frGz7tv6Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWeZR-00CZUd-Fk; Wed, 14 Apr 2021 12:24:38 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWeZM-00CZTn-0b for linux-arm-kernel@desiato.infradead.org; Wed, 14 Apr 2021 12:24:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=twEu12T2NK2kZAQTGV3kZrikV1n4cK3JIwFFBoYApE4=; b=mWF0vndv8DzByJTPMq1NI93yYS FBsbL7y16CwaJ5qweVTKkhtOaKbkuO2U8RgR+iBijTS2HOsQkGEDBULRDWFP5krJf6EJ80axf+eoL s0DesogybI8vs7J3hHVxMy0f/h1aQDF853ZPIFF9nrhQ2KUXoFpMdPYDt6UBybSxroMVeppAvFx0e 1TboAKBp8AtRmcWT/4HiBEcHDPOLkjHaR72MRHcuPCrpboh/zfGuGO/Y4A1qkDQ/qFyraJzRiR3uC bYkTNNFled6Lu78s+rk4lzzV0C19nwH4cKIU/YxWPn9qctRvxh5MeGULgGocn0/O7aUDqvazKtzdB 8KlFHB8w==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWeZJ-007kbp-Fp for linux-arm-kernel@lists.infradead.org; Wed, 14 Apr 2021 12:24:30 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id F17706105A; Wed, 14 Apr 2021 12:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618403068; bh=j9wxhOwuWa7eyWiZdHRpPOIyObN63pRYdbSKNnanZqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UKg3kofB3tFoKw8vYxOlvzZXWsnMbj5YRHpcbHvD6QZ2pgMwPoRWUhNdryU98YVFX qzQul+qj+u6It+YsW2xxYF2Q6iN9epOcYtOkVEBwba0pbfZCIoPdJzsb3ZDkRZCzJ+ DchJ0mXbb6U5QPXFsYDhRrvrJeoNkZn3Hhz00L9b6QY/jTjyOx/AJ0EDm7hPIpGjDQ wS4VG95syoTpaWAUUseKNBipFho0jbhP2Js4lfydHQs6njuqhNlYGziZoPHvrawU8B DTv5kwgumvc8R/NMGCW4MA3xvUYZJOl4XTu6GLpjxSfJoodz011tNRgmoKpleCc7Lw eIPAuVDrpvwBw== Date: Wed, 14 Apr 2021 13:24:05 +0100 From: Mark Brown To: Josh Poimboeuf Cc: "Madhavan T. Venkataraman" , Mark Rutland , jthierry@redhat.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: [RFC PATCH v2 0/4] arm64: Implement stack trace reliability checks Message-ID: <20210414122405.GB4535@sirena.org.uk> References: <705993ccb34a611c75cdae0a8cb1b40f9b218ebd> <20210405204313.21346-1-madvenka@linux.microsoft.com> <20210409120859.GA51636@C02TD0UTHF1T.local> <20210409213741.kqmwyajoppuqrkge@treble> <8c30ec5f-b51e-494f-5f6c-d2f012135f69@linux.microsoft.com> <20210409223227.rvf6tfhvgnpzmabn@treble> <20210412165933.GD5379@sirena.org.uk> <20210413225310.k64wqjnst7cia4ft@treble> MIME-Version: 1.0 In-Reply-To: <20210413225310.k64wqjnst7cia4ft@treble> X-Cookie: George Orwell was an optimist. User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210414_052429_590581_CB40DABF X-CRM114-Status: GOOD ( 17.80 ) 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: multipart/mixed; boundary="===============4287820147468025027==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4287820147468025027== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 13, 2021 at 05:53:10PM -0500, Josh Poimboeuf wrote: > On Mon, Apr 12, 2021 at 05:59:33PM +0100, Mark Brown wrote: > > Some more explict pointer to live patching as the only user would > > definitely be good but I think the more important thing would be writing > > down any assumptions in the API that aren't already written down and > Something like so? Yeah, looks reasonable - it'll need rebasing against current code as I moved the docs in the source out of the arch code into the header this cycle (they were copied verbatim in a couple of places). > #ifdef CONFIG_ARCH_STACKWALK > =20 > /** > - * stack_trace_consume_fn - Callback for arch_stack_walk() > + * stack_trace_consume_fn() - Callback for arch_stack_walk() > * @cookie: Caller supplied pointer handed back by arch_stack_walk() > * @addr: The stack entry address to consume > * > @@ -35,7 +35,7 @@ unsigned int stack_trace_save_user(unsigned long *store= , unsigned int size); > */ > typedef bool (*stack_trace_consume_fn)(void *cookie, unsigned long addr); > /** > - * arch_stack_walk - Architecture specific function to walk the stack > + * arch_stack_walk() - Architecture specific function to walk the stack > * @consume_entry: Callback which is invoked by the architecture code for > * each entry. > * @cookie: Caller supplied pointer which is handed back to These two should be separated. --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmB23uQACgkQJNaLcl1U h9DcIQf7BVTnQ3HyLZEooh8Z6mZHAE99J+dWe2aRydUFd3uPgEbKAXt1TAVF1c6f H9FtaFpd5if0z1Dz3WSsDqSoSqn7aX5znp8ZtYouehvObP5Xmce7mSXqGV1F7ulC B2nAG8yjFICW9UgdOf8koEFK/flWiueSQwV5Q0DlX+QewBk3e+ziCc/CeC7S5jnk 8mmGpaMVB1E6g3Mu95ShYWLir8Hl4cM+50IOvHq4Smqr9Mm/ma36NtLYI2ecYpS5 JjsXrRCrUnjBOF95vg16MuD6OLTUhR8A4/cIwDbLn1Rj1iM1gd29xRtZPdAF1l3p VqXJIEXWXBuV5rUljTfRYctLOm7qXg== =W+NU -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW-- --===============4287820147468025027== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============4287820147468025027==--