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 2C9C8C433FE for ; Tue, 1 Nov 2022 22:36:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230426AbiKAWgf (ORCPT ); Tue, 1 Nov 2022 18:36:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbiKAWgP (ORCPT ); Tue, 1 Nov 2022 18:36:15 -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 4DDC420F63 for ; Tue, 1 Nov 2022 15:35:15 -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 dfw.source.kernel.org (Postfix) with ESMTPS id DA6CB61746 for ; Tue, 1 Nov 2022 22:35:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12C1DC433C1; Tue, 1 Nov 2022 22:35:14 +0000 (UTC) Date: Tue, 1 Nov 2022 18:35:12 -0400 From: Steven Rostedt To: Roland Ruckerbauer Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, Takashi Iwai , regressions@lists.linux.dev, Steven Noonan Subject: Re: [BUG] NULL pointer dereference probably caused by kernel/trace/ring_buffer.c Message-ID: <20221101183512.285cfd68@rorschach.local.home> In-Reply-To: References: <20221031145046.2a7f9d32@rorschach.local.home> <20221101153135.5345c748@rorschach.local.home> <20221101173802.7a476a04@rorschach.local.home> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 1 Nov 2022 23:01:38 +0100 Roland Ruckerbauer wrote: > Just figured out something, the poll() errors starting at fd 29 (which > is CPU 24). > But I only have 24 cores. Looked at > /sys/kernel/debug/tracing/instances/rasdaemon/per_cpu/, and voila, it > lists 32 cpus not 24. Ah, and this explains why I never triggered it. There's some machines that list nr_cpu_ids as more than what exists (I guess it is "possible CPUs" and not "actual CPUs"). OK, this is a great clue. I'll dig deeper. Thanks a lot for telling me this. Takashi, can you check if the problem machines have more CPUs listed in /sys/kernel/tracing/per_cpu/cpu* than is on the machine? -- Steve