Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3105524rdb; Tue, 29 Aug 2023 05:45:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdq3PkwxLImCX1q/VwnFPo4ufUPoO8aCtbacMz46QBgD4IhRTYPJgpnr7XgqIYtEqaft+y X-Received: by 2002:a17:903:22d0:b0:1c0:9bef:4bbd with SMTP id y16-20020a17090322d000b001c09bef4bbdmr20646920plg.14.1693313150334; Tue, 29 Aug 2023 05:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693313150; cv=none; d=google.com; s=arc-20160816; b=NQPRejd4gV8RY3ZMb1I+tAAHxFwXYIx1Vu515CYDDtngo0NCWcDtvwT9UO5Vx7aDuJ wfKG9GY/zkgmwKP+DGqX5sVDWpY+vlDhBdb/v0+H2TTvFJOCyiKACSSjvCZuMUI5GoDF 6HOAPIXIX2j66bAJe+44x1i848NQ996MLN/ujg2+8IkkH2Nv5Hnfziw+JylOFqULaYFL QRs2NfDD9QNX02UlAmAwZfxILCb4JDRWOJmtoKRzfPVM1Sj3ABM9P1lGLIno7OZ86SNL W+nnfYhNj5EB6HVw1Ji2+N3LziPxuaHvrAXyVP2udRwT6avAxivXcbLA2xSrKLRxly8A iyig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=RIvURTVekxzQNrrCEhfeJnShTx377CvUEbRjXZxgFW8=; fh=sA4zn6sOUoHiVzXWOSpTfNbsyYON5X4xBiOipJK0Tzs=; b=JnThEDBcs1ZCTKgBceOo+tNJQFDBtzMCO5gzXkiqrJrqiN5lWRMp6FOf420Mq/Ek7P 6H/zZnCZ88I0DkKai/tJabCdABlxoPWast0Zit1X4EjJGLhZGOrZgyjMa19hF9zbmfGU 8cAMsnLpQR9GaOMiFqIESHp8AWFsR+D99vE4HjzW+d78DgW1rotcQtARvaIg0oWnBjn8 W4AO53Zj7P+c3KBBBGiOUrhdswzB7EkfHxQ36igFvyC95GDXLrjWB3GEoHvMz0jB2zTT ZKLUVkaixcJ2KyCA7InR5cTTrq1cTjoGFpoeojnX4uq0hS/zOPN8Yar5w/VXgy3akQqa 9iFw== 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 n18-20020a170902d0d200b001bc434b9d95si8654705pln.156.2023.08.29.05.45.27; Tue, 29 Aug 2023 05:45:50 -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 S231768AbjH2MIc (ORCPT + 99 others); Tue, 29 Aug 2023 08:08:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231826AbjH2MIV (ORCPT ); Tue, 29 Aug 2023 08:08:21 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF65E98 for ; Tue, 29 Aug 2023 05:08:18 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qaxVt-0005Gc-4Q; Tue, 29 Aug 2023 14:08:05 +0200 Message-ID: <6a39c016-0f00-6cfa-834e-abe5acb79757@leemhuis.info> Date: Tue, 29 Aug 2023 14:08:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: radeon.ko/i586: BUG: kernel NULL pointer dereference,address:00000004 Content-Language: en-US, de-DE To: kkabe@vega.pgw.jp 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, Steven Rostedt References: <230722113014.M0204460@vega.pgw.jp> <230723205506.M0106064@vega.pgw.jp> <20230723103210.4b1b032e@rorschach.local.home> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <20230723103210.4b1b032e@rorschach.local.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1693310898;a442a083; X-HE-SMSGID: 1qaxVt-0005Gc-4Q X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Hi, Thorsten here, the Linux kernel's regression tracker. Top-posting for once, to make this easily accessible to everyone. I still have this issue on my list of tracked regressions. Was this fixed in between? Doesn't look like it from here, but I might be missing something. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke On 23.07.23 16:32, Steven Rostedt wrote: > On Sun, 23 Jul 2023 20:55:06 +0900 > wrote: > >> So I tried to trap NULL and return: >> >> ================ patch-drm_vblank_cancel_pending_works-printk-NULL-ret.patch >> diff -up ./drivers/gpu/drm/drm_vblank_work.c.pk2 ./drivers/gpu/drm/drm_vblank_work.c >> --- ./drivers/gpu/drm/drm_vblank_work.c.pk2 2023-06-06 20:50:40.000000000 +0900 >> +++ ./drivers/gpu/drm/drm_vblank_work.c 2023-07-23 14:29:56.383093673 +0900 >> @@ -71,6 +71,10 @@ void drm_vblank_cancel_pending_works(str >> { >> struct drm_vblank_work *work, *next; >> >> + if (!vblank->dev) { >> + printk(KERN_WARNING "%s: vblank->dev == NULL? returning\n", __func__); >> + return; >> + } >> assert_spin_locked(&vblank->dev->event_lock); >> >> list_for_each_entry_safe(work, next, &vblank->pending_work, node) { >> ================ >> >> This time, the printk trap does not happen!! and radeon.ko works. >> (NULL check for vblank->worker is still fireing though) >> >> Now this is puzzling. >> Is this a timing issue? > > It could very well be. And the ftrace patch could possibly not be the > cause at all. But the thread that is created to do the work is causing > the race window to be opened up, which is why you see it with the patch > and don't without it. It may not be the problem, it may just tickle the > timings enough to trigger the bug, and is causing you to go on a wild > goose chase in the wrong direction. > > -- Steve > > >> Is systemd-udevd doing something not favaorble to kernel? >> Is drm vblank code running without enough initialization? >> >> Puzzling is, that purely useland activity >> (logging in on tty1 before radeon.ko load) >> is affecting kernel panic/no-panic. > > >