Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1465330rdh; Fri, 27 Oct 2023 15:37:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXbtHoEKLz7oegdUb1eHPNzy/cEJHdMmuNMs4FyCaj4yT0BAdLBTMJMTidCebUrVCFk0z+ X-Received: by 2002:a17:903:22d2:b0:1c4:5e9e:7865 with SMTP id y18-20020a17090322d200b001c45e9e7865mr4905511plg.0.1698446225523; Fri, 27 Oct 2023 15:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698446225; cv=none; d=google.com; s=arc-20160816; b=VdyTLAU3hQk9E8ySvA66//tHDJpShZAdLprD5D7mFSRNQm2wDhk11o1gfEOOC9gjnx vioktV2d5dRQomb1zBc2jGE9sNhkT6lyBtesm1oz9RCsDalOCmksudtwb6az8uzRr9Er a3iDZeedzowYLijv0s6UQ/D/HCQq1Ia5269jTZtMDauMI2w//Ib8qfx774qPGjcnEj7p n1KFwqritFgNg+4Pv18JvIkdijI+1JYPyc/mxsWOmk2M6eVT1tRdIW374TYeS4dRxxaZ hILoJYebgILDw73UJ595T8PTfIp/7Iiq/XNrZS5gLhNzzQGyeFJUfbX4eaosIPNHCVLS s+Lg== 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=Cftv4LUCxE0+oKX0DlBMBjBviKUy8HRXVTEqTeipKp0=; fh=1F5e0p/O/cBIv7Cl55LcqTrnJ+zx6m4Bcm+KfjDzKtM=; b=kWwIUv+tmpx7rn2aalsPKd93APtUoW3mnPO3DqXwaEjnqrJdZJoIDhlRxIR+teA52+ IEAfzojoME/kBAl0KtT78vx+1A4N7uax/X+TpKzIm2c0Q4fgIncVVxnQaIqvnDlZp8aF YXxYsywYHrt0q0dtlx4cV1m5/M9Hnb91yifroGtwZrk5hvR7pfneO4zaq1oLiriuX2MV aGWZsn1ctVwppeS2neaxjLt7BDaO4vXLuo6ZgR8I5ivCD5abWpvuH7z296M2/7VUi+q6 T7K3XX418sESdGlfXSLcH4JgEanGd6TnrjoWQmphxQ8bxc39+M98aFx6Erv+RKBLICx4 mCTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id c12-20020a170902724c00b001bb9e2c38ecsi1662140pll.264.2023.10.27.15.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 15:37:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 652C983D6F17; Fri, 27 Oct 2023 15:37:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235085AbjJ0Wgs (ORCPT + 99 others); Fri, 27 Oct 2023 18:36:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjJ0Wgr (ORCPT ); Fri, 27 Oct 2023 18:36:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DA30D44; Fri, 27 Oct 2023 15:36:45 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 739ADC433C8; Fri, 27 Oct 2023 22:36:43 +0000 (UTC) Date: Fri, 27 Oct 2023 18:36:40 -0400 From: Steven Rostedt To: Beau Belgrave Cc: Naresh Kamboju , "open list:KERNEL SELFTEST FRAMEWORK" , open list , linux-trace-kernel@vger.kernel.org, lkft-triage@lists.linaro.org, Mark Brown , Zheng Yejian , Dan Carpenter , Arnd Bergmann , Zheng Yejian Subject: Re: selftests: user_events: ftrace_test - RIP: 0010:tracing_update_buffers (kernel/trace/trace.c:6470) Message-ID: <20231027183640.2529ab68@gandalf.local.home> In-Reply-To: <20231027192011.GA436-beaub@linux.microsoft.com> References: <20231027192011.GA436-beaub@linux.microsoft.com> X-Mailer: Claws Mail 3.19.1 (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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 15:37:02 -0700 (PDT) On Fri, 27 Oct 2023 12:20:11 -0700 Beau Belgrave wrote: > On Fri, Oct 27, 2023 at 05:38:41PM +0530, Naresh Kamboju wrote: > > Following kernel crash noticed on x86_64 while running selftests: user_events: > > ftrace_test running 6.6.0-rc7-next-20231026. > > > > Reported-by: Linux Kernel Functional Testing > > > > kselftest: Running tests in user_events > > TAP version 13 > > 1..4 > > # timeout set to 90 > > # selftests: user_events: ftrace_test > > [ 2391.606817] general protection fault, probably for non-canonical > > address 0x6b6b6b6b6b6b8a83: 0000 [#1] PREEMPT SMP PTI > > [ 2391.617519] CPU: 1 PID: 34662 Comm: ftrace_test Not tainted > > 6.6.0-rc7-next-20231026 #1 > > [ 2391.625428] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS > > 2.7 12/07/2021 > > [ 2391.632811] RIP: 0010:tracing_update_buffers (kernel/trace/trace.c:6470) > > [ 2391.637952] Code: 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 > > 55 31 f6 48 89 e5 41 55 41 54 53 48 89 fb 48 c7 c7 40 8c 61 94 e8 92 > > d3 5a 01 <44> 0f b6 a3 18 1f 00 00 41 80 fc 01 0f 87 c8 dc 4e 01 45 31 > Warning is from this code: > static void __trace_array_put(struct trace_array *this_tr) > { > WARN_ON(!this_tr->ref); > this_tr->ref--; > } > > It seems like there might be a timing window or an incorrect call to > trace_array_put() somewhere. Do you think this is related to the eventfs > work? No, I think this is was probably introduced by: a1f157c7a3bb ("tracing: Expand all ring buffers individually") Or possibly a mixture of the two changes? But anyway I think I need to look at this one first. -- Steve