Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5801444iob; Tue, 10 May 2022 04:08:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTHgaS+XZsiMSIlsb7nbEYB8iqqwNi3LJiZyrHvvPqaxMGPXcMTK3E/cVsBEt3G1API4Vg X-Received: by 2002:a02:c884:0:b0:32a:f2b9:f7e7 with SMTP id m4-20020a02c884000000b0032af2b9f7e7mr9052461jao.12.1652180902625; Tue, 10 May 2022 04:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652180902; cv=none; d=google.com; s=arc-20160816; b=mgg902iKB9zhLnXYYynMcobhexA0UJP7AQZcENVanguK68ukeqNpJ2y37MSiDq42UT 4amNMC7xJD5t06zSmTQvfxagBq3N7fwj9MDT1liRvNaGMkwR71vps6Y/u6f4jq7TzOPU T9wbdLz88Go206XxGSWyoLdz8gkgfjMHDYFs9pfOyoYkjOxTJoTWTOCLy04rulH2NKF7 aDJhHsJAv2s9kaegKqMxYd6G8XRTJUQOKhBpEgxLwN70R++lZaT0K03xweBOYe0CB5EB JgRMIg7SsT8ecZQoawb+6H/en1oGj/2GlnvacWGb0fzeUT56N05OSrqzBGgEY9SRYptf AY2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=gFshjzGdEIwMcrQcNFouQo/5FXkPewxT5zR5lvvvUfw=; b=SjoN+sConARwgsvWGTyXF9UELdWexbDeZVo/8cZi7/h5brauFmg07PdNMB02vVaWgw qFWzbCRpYsc8xjfMRUS2H18vca8wdx0DG1D+yUEh4/N85bylQ1wyQc7l+yHJy5oCftfY T61AlKia+uk03NIhQwHK4bRppwjdFz01gkAKdbAAalqXMo9sfMJossvJTG9iNmSZgIvj Q8NvtcPGYGJW5nrW/r1xYKucorqlO4qPZ95d1CPu/2Aw3oLFF8z93etX9CyxBki0IyX9 GEXnFCTenLAGOcseA5gnH9jwwAOkLxIAW+9j98npSZ2DIJhLrYerjH5dHRTDFZPCJaxf uEuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a023304000000b00323e54d075asi9911737jae.97.2022.05.10.04.08.09; Tue, 10 May 2022 04:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239947AbiEJKmW (ORCPT + 99 others); Tue, 10 May 2022 06:42:22 -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: X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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