Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2127505rwo; Sun, 23 Jul 2023 08:07:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlGs65fmMR5IEi90PP6nZwytcfK0WGExgA8zniw4493QO+amxcdOjizRyz92M33P5pmthhqq X-Received: by 2002:a17:906:8a67:b0:992:7295:61d4 with SMTP id hy7-20020a1709068a6700b00992729561d4mr6754030ejc.3.1690124840821; Sun, 23 Jul 2023 08:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690124840; cv=none; d=google.com; s=arc-20160816; b=jSL27uVhSTN9xmb+Iu8YmJsYGvrJsamOGxiCvykWJVWLORYKPqlWLRFr57sx6lpVjR NQEnB9PLd1lY5cD1vHuvOSFnwcqc7SMAIO3HcL44HC6uSng/IrH4f+x3mQIj7hA9dcgj f9AffuuyjeFMK/mjYJqABARIyYIRFejF0cPuseO0YQvKzZF6VIui2SE8P34+DMYdAOmT 4BYwjPea8lU3ELMDb8QOtX+oShWdXCFawavkQb0Yd0jLwO+xJivg3xFknATSNQNJa8C/ G15g776OCsPFbRqRI9FQzar+qMlvfvIZ/apiMXvMwZolfZS2VHmREtYKJI+w5kzECgEJ lp3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=spX8cRGxTd8OMIhjs1HPYVet64KZbhLiw2tkZdrZfqM=; fh=QUalXvHutJ9N7uFkbTC/R1Q8D0EE7HNlEuwEPhY7pKU=; b=u/ukE90nLndnbqI5l350w0Sxo7Q7aBQLACFeFya0e5Krzdljil//G6cF+q2L8NB71H P9LUgrQfx+HFBXGBCSoM1jW9NZ0h0jKtMlg8goNKKJOBDis53iZfN3rFaujpH0ShKqAU wqVX5KvSTq6LWrMIsU5imXJltpZiRG64r5Dc6RGEA3tlgcLqY/EeCYeRaueJbtvg2xhd i2qyT5D80KyRf6sf6BXNP+4jcE1uIBHsIhxnl5nsJvckfl+x3uDolw+uVEveEMVavX0H ElEDtucdkvtb0FKrlRwD7DeNY1/oU28Y8cafFhRl7H3Z0zQo+ipZeg/eyqTCdspuWImM B7KA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i13-20020a170906250d00b0099396527229si4697498ejb.65.2023.07.23.08.06.57; Sun, 23 Jul 2023 08:07:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbjGWO1u (ORCPT + 99 others); Sun, 23 Jul 2023 10:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjGWO1t (ORCPT ); Sun, 23 Jul 2023 10:27:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A05E57 for ; Sun, 23 Jul 2023 07:27:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E5DA660DC0 for ; Sun, 23 Jul 2023 14:27:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 283B8C433C8; Sun, 23 Jul 2023 14:27:44 +0000 (UTC) Date: Sun, 23 Jul 2023 10:27:33 -0400 From: Steven Rostedt To: Cc: regressions@lists.linux.dev, bagasdotme@gmail.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, kkabe@vega.pgw.jp Subject: Re: radeon.ko/i586: BUG: kernel NULL pointer dereference,address:00000004 Message-ID: <20230723102733.70baeb1a@rorschach.local.home> In-Reply-To: <230722113014.M0204460@vega.pgw.jp> References: <230721083955.M0102626@vega.pgw.jp> <230722113014.M0204460@vega.pgw.jp> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sat, 22 Jul 2023 11:30:14 +0900 wrote: > >> diff --git a/arch/x86/include/asm/ftrace.h b/arch/x86/include/asm/ftrace.h > >> index 897cf02c20b1..801f4414da3e 100644 > >> --- a/arch/x86/include/asm/ftrace.h > >> +++ b/arch/x86/include/asm/ftrace.h > >> @@ -13,7 +13,7 @@ > >> #ifdef CONFIG_HAVE_FENTRY > >> # include > >> /* Add offset for endbr64 if IBT enabled */ > >> -# define FTRACE_MCOUNT_MAX_OFFSET ENDBR_INSN_SIZE > >> +# define FTRACE_MCOUNT_MAX_OFFSET (ENDBR_INSN_SIZE + MCOUNT_INSN_SIZE) > >> #endif > >> > >> #ifdef CONFIG_DYNAMIC_FTRACE > >> > > Above patch didn't work, but > Does it matter that I am compiling with "gcc -fcf-protection=none" > to not emit endbr32 instructions for i586? This patch is supposed to address the case when ENDBR_INSN_SIZE is zero. So I would think that that wouldn't matter. -- Steve