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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B1AD1C433EF for ; Tue, 10 May 2022 11:30:35 +0000 (UTC) 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:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XtELW+uTQsVp2CT7iPxJ4K0MYEV/qwamk8IqVBvEIEU=; b=2ZyeMqfppuCHIW piTGVEij4+M1i7j6y5EIPMM2Ow5jhFTPItizctMo1Bnuyn5TGrSzy0jIfomyeBCJrgDluHvlnXoCZ LfJnJe+S0aieM1Yx2rHvvbo7oSy2W89dmnRJJ6uTBSdUmO/HE52XdjW0zwblrgcA+chZ/gky3n/Bk XB1f0Dkw5pX2+X27ZXQff56zHPnSBeYmvIxWw15mUHsbOC7QoN8zuuUawzzMnUP7PcdOrRggXoPuR OhTjDfU4+std2R3q2nE8vhyIK8bxh4cTZV/Vts7XD1oefxabn4JAgiBQfZY/KkBpoiipC5XenmP/+ +KxCn5qscpEwFpddooOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noO4N-001ZV6-GH; Tue, 10 May 2022 11:30:23 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noO2O-001YRL-Jz; Tue, 10 May 2022 11:28:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=gFshjzGdEIwMcrQcNFouQo/5FXkPewxT5zR5lvvvUfw=; b=as12JgrYuvnlzI0BEnFgYLZq95 WXQrhpOMJbTJJ4/tfWNkK39SmIu0A2I5NdU/AJQwzSRWBNBszTqNK69Y8UxAJf2d4QkcqEIK+Xn8i /EJdkhiCFdzuJFgWy+B8Zn0xyluLlV6MXG2boxnuw1+Xnw4dd37NgbrCn96cr8NnXrVOPcwHzGE1C nPLhAZ1CJutlX8+YAm+VgKL3lbZ/1A0Wv79sw9v0LTyoR1aqIaSH6RJUCTXoO3YRZbEThKNJo7XB+ 7MiTT6D9ZeS3M0wnwqh6lNWJAo8jAfx3Ka9c0xzUTel9cA+XwAVLi4T7zJRuOp5cYo1zey3/sE//D BYGoxWTg==; Received: from dfw.source.kernel.org ([139.178.84.217]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noNG8-00Col6-34; Tue, 10 May 2022 10:38:30 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4FD5617A1; Tue, 10 May 2022 10:38:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEE5C385C6; Tue, 10 May 2022 10:38:17 +0000 (UTC) Date: Tue, 10 May 2022 11:38:13 +0100 From: Catalin Marinas To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Will Deacon , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: Re: [PATCH] bug: Use normal relative pointers in 'struct bug_entry' Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_113828_438700_7EC28AD2 X-CRM114-Status: GOOD ( 11.84 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Thu, May 05, 2022 at 06:09:45PM -0700, Josh Poimboeuf wrote: > With CONFIG_GENERIC_BUG_RELATIVE_POINTERS, the addr/file relative > pointers are calculated weirdly: based on the beginning of the bug_entry > struct address, rather than their respective pointer addresses. > > Make the relative pointers less surprising to both humans and tools by > calculating them the normal way. > > Signed-off-by: Josh Poimboeuf > --- > arch/arm64/include/asm/asm-bug.h | 4 ++-- Acked-by: Catalin Marinas _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15656C433FE for ; Tue, 10 May 2022 10:38:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238488AbiEJKmV (ORCPT ); Tue, 10 May 2022 06:42:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239830AbiEJKmV (ORCPT ); Tue, 10 May 2022 06:42:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 402EB26820C; Tue, 10 May 2022 03:38:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E7725B81CB7; Tue, 10 May 2022 10:38:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEE5C385C6; Tue, 10 May 2022 10:38:17 +0000 (UTC) Date: Tue, 10 May 2022 11:38:13 +0100 From: Catalin Marinas To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Will Deacon , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: Re: [PATCH] bug: Use normal relative pointers in 'struct bug_entry' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On Thu, May 05, 2022 at 06:09:45PM -0700, Josh Poimboeuf wrote: > With CONFIG_GENERIC_BUG_RELATIVE_POINTERS, the addr/file relative > pointers are calculated weirdly: based on the beginning of the bug_entry > struct address, rather than their respective pointer addresses. > > Make the relative pointers less surprising to both humans and tools by > calculating them the normal way. > > Signed-off-by: Josh Poimboeuf > --- > arch/arm64/include/asm/asm-bug.h | 4 ++-- Acked-by: Catalin Marinas 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 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AE78FC433F5 for ; Tue, 10 May 2022 10:38:51 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4KyDzZ1XX9z3cCN for ; Tue, 10 May 2022 20:38:50 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=cmarinas@kernel.org; receiver=) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4KyDz70jCPz2yjS for ; Tue, 10 May 2022 20:38:26 +1000 (AEST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4FD5617A1; Tue, 10 May 2022 10:38:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEE5C385C6; Tue, 10 May 2022 10:38:17 +0000 (UTC) Date: Tue, 10 May 2022 11:38:13 +0100 From: Catalin Marinas To: Josh Poimboeuf Subject: Re: [PATCH] bug: Use normal relative pointers in 'struct bug_entry' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Zijlstra , Dave Hansen , Paul Mackerras , "H. Peter Anvin" , Alexander Gordeev , Will Deacon , linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, x86@kernel.org, Ingo Molnar , Christian Borntraeger , Albert Ou , Vasily Gorbik , Heiko Carstens , Borislav Petkov , Paul Walmsley , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Sven Schnelle , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, May 05, 2022 at 06:09:45PM -0700, Josh Poimboeuf wrote: > With CONFIG_GENERIC_BUG_RELATIVE_POINTERS, the addr/file relative > pointers are calculated weirdly: based on the beginning of the bug_entry > struct address, rather than their respective pointer addresses. > > Make the relative pointers less surprising to both humans and tools by > calculating them the normal way. > > Signed-off-by: Josh Poimboeuf > --- > arch/arm64/include/asm/asm-bug.h | 4 ++-- Acked-by: Catalin Marinas 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 8EFB7C433EF for ; Tue, 10 May 2022 11:31:01 +0000 (UTC) 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:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tcQvqfy9djNSYUrjKces7HQ5APMnlfSRcUYcI7tkff4=; b=mSPMWqpSEPVKqW S8cfCAdzgpNJ0QQQyx7c1wtuT1a+hRyxawuAi4CVPft+me21I07BoMVtpRV5Jn26b8/uDY9hZwy92 axjO5HbiTpBp5U0bzGgC6U5noqPfT6fZZ5JjYSUakZIgyZ+kpNOzc+HZ3ArwGSUkuWYnHACvPgfJ0 MPV9wH4r2NBaoKKCx6PO/W7xSEsFnmiuhTcvcLuRDDgwq5f1ccla3UhYrTUu8S6WfLzGTi55F3t6N Hkh/nfiIYRv7XCgOhAv39ovtpXopAM6A/IZCdqD/lrTAdNzJ8tXCHhJH3tfoNe6rNGuUvHc/+LhyL bc9OQbaMoVzneEXx3NYw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noO3l-001Z9F-IY; Tue, 10 May 2022 11:29:45 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noO2O-001YRL-Jz; Tue, 10 May 2022 11:28:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=gFshjzGdEIwMcrQcNFouQo/5FXkPewxT5zR5lvvvUfw=; b=as12JgrYuvnlzI0BEnFgYLZq95 WXQrhpOMJbTJJ4/tfWNkK39SmIu0A2I5NdU/AJQwzSRWBNBszTqNK69Y8UxAJf2d4QkcqEIK+Xn8i /EJdkhiCFdzuJFgWy+B8Zn0xyluLlV6MXG2boxnuw1+Xnw4dd37NgbrCn96cr8NnXrVOPcwHzGE1C nPLhAZ1CJutlX8+YAm+VgKL3lbZ/1A0Wv79sw9v0LTyoR1aqIaSH6RJUCTXoO3YRZbEThKNJo7XB+ 7MiTT6D9ZeS3M0wnwqh6lNWJAo8jAfx3Ka9c0xzUTel9cA+XwAVLi4T7zJRuOp5cYo1zey3/sE//D BYGoxWTg==; Received: from dfw.source.kernel.org ([139.178.84.217]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noNG8-00Col6-34; Tue, 10 May 2022 10:38:30 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4FD5617A1; Tue, 10 May 2022 10:38:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DEE5C385C6; Tue, 10 May 2022 10:38:17 +0000 (UTC) Date: Tue, 10 May 2022 11:38:13 +0100 From: Catalin Marinas To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Will Deacon , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org Subject: Re: [PATCH] bug: Use normal relative pointers in 'struct bug_entry' Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_113828_438700_7EC28AD2 X-CRM114-Status: GOOD ( 11.84 ) 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 Thu, May 05, 2022 at 06:09:45PM -0700, Josh Poimboeuf wrote: > With CONFIG_GENERIC_BUG_RELATIVE_POINTERS, the addr/file relative > pointers are calculated weirdly: based on the beginning of the bug_entry > struct address, rather than their respective pointer addresses. > > Make the relative pointers less surprising to both humans and tools by > calculating them the normal way. > > Signed-off-by: Josh Poimboeuf > --- > arch/arm64/include/asm/asm-bug.h | 4 ++-- Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel