Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1134636rdh; Fri, 27 Oct 2023 05:56:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGl6HxWVK2IopKG10wzNWXtCtS1h1gKpKyic0HWiPuGiZR7j4xz4O3g8eJ6Ce7MFJNsLlNL X-Received: by 2002:a05:6808:7c8:b0:3b2:ef9e:45af with SMTP id f8-20020a05680807c800b003b2ef9e45afmr2374966oij.13.1698411368334; Fri, 27 Oct 2023 05:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698411368; cv=none; d=google.com; s=arc-20160816; b=SY1ga7myrMd9zVYsEwI8rB685+cTbAakyDgGwaHSs2hfIo86HpR0DvI44IPDqg+rpo vMPTXi1eEXaiOtIB/4BDgrJ2TukcWC2Cze/s96wGYXvMJw5grEoXNYLGVNw94S27p+3K 5v1/AR3UjjFLhUfx4YRrsPuyL/3zrMS+6yNg7Haf92/CVBwqaAMD99u2sYO6JK5wBJXL Rt2zs19kpO6//4BBqCvRBA6FbstsN59sXbo6FD2wAO0E9rD1U9VAlrTsRI+Rxf0tlV36 GuNrQRnN3y3OVs3lf55ZYP0BwvpbjS3ivJ41X+MMvkjvJNJBNHnXtSEdXHG50IHi4yxq f0BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=gGRYM14aZY3Kp3uQ0eXzrYsoJmWuvlpwHRlsj1zrCsk=; fh=bwNtF1KiFLACcWE/ZQq5t2XQUWLv5kw0Sh1EcpRyG00=; b=zZ6OU/okeG6q17yO5WQGNxOhQkiAPSXJoKyquYgRZn5ZMvgYvk5UqYRNBwj3GE2vwC doT/5EpvQZL1VypZ3PWdb8vHEPtLKbnSsnC7KQZ5hQoqQvjZ2XpGLqHtRvm2Y4dDC+YH +KmICRVFNkLO3Yn8SmMaA106nxHgyiNX875AM9+lBtpUu/AOtkO+iJpaFfFm/8Iw85fG 0IEWByRw1URVnlNPIE0VvridYzK69fm1ihz10PLut+bpRcjOQX3dh62UmCPFZAbuh7Px E2s4judZftH5bOrv0W6wf2KnXKnfzSubXLhl0C5jd/p4+vkOlXJNLoPtYHp4GmFwkCXk Je5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=SrccGR4S; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=InrHBg1Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id p199-20020a2574d0000000b00da072679422si2354346ybc.477.2023.10.27.05.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 05:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=SrccGR4S; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=InrHBg1Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 700F08128029; Fri, 27 Oct 2023 05:55:57 -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 S1345542AbjJ0Mzo (ORCPT + 99 others); Fri, 27 Oct 2023 08:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231674AbjJ0Mzl (ORCPT ); Fri, 27 Oct 2023 08:55:41 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BDC91AC; Fri, 27 Oct 2023 05:55:38 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 5A673320091D; Fri, 27 Oct 2023 08:55:36 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 27 Oct 2023 08:55:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1698411335; x=1698497735; bh=gG RYM14aZY3Kp3uQ0eXzrYsoJmWuvlpwHRlsj1zrCsk=; b=SrccGR4SPWvnQmG04c 0ltmWMvgRqf15DwaKzu7jUg2TMf5W/aFR0HIZyppt/FJycxzTY6hMJ8kb6r4tXVI 75/VJAiFGYRCfZ5mPwh3z1KRCntVjXRevWJsUpb9Oi8osZ4BAsBb0a3kFxz+DIBs ssOu9IB2P8ZqKsP+LknrWjHqpor9i1ASZGw41x3MDQrohxjjABYVwW1u3uLexzmv GYFFKf7JyIQpvjYqfTe/tfjqk3TuSS7qCqRAPKrfWGPquRPOilDoCwTS3DJFlIQ2 EZW7qFCKZ+su5++FHtkq7xRuyvbSGEMLHvHDSDi/reGLYP8UbxxRhsNDjdq39FuC /yCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1698411335; x=1698497735; bh=gGRYM14aZY3Kp 3uQ0eXzrYsoJmWuvlpwHRlsj1zrCsk=; b=InrHBg1QRue2x60CWmu+3gJ8oG5Tb FId0kYouj1tmDdGZA7qlX8VuqTJxQ4d8zM5R7Roxs2ivFnX8i1Gq4kOzjBRVdbkz t8fYOIFc/EvAYD9MNyYAp23WRwLXdHLtJqkvmmD0WhUPlAANEIPhxvzyyezESjdT Nwfr3JEbYvHlB8K5FzttTUx6bxJSa8/iSxlgT1XvA1w0NgdtroWsSywGoKFdj0Am gf7JMVEvaH29N7EJUTN8VIaME+5pOe7KEKV4/MwWwZqVHmCRkMNN3UhVRpruqveh 31R8jslm11tKJGEre7OLLA9MYb8zSKdstRTIntTTSDAaZ55gVgVuM4Sfg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleeggdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9C1BFB60089; Fri, 27 Oct 2023 08:55:34 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <8f86f22a-e182-4ddf-b533-b4ae8b088dd4@app.fastmail.com> In-Reply-To: References: Date: Fri, 27 Oct 2023 14:55:14 +0200 From: "Arnd Bergmann" To: "Naresh Kamboju" , "open list:KERNEL SELFTEST FRAMEWORK" , linux-trace-kernel@vger.kernel.org, "open list" , linux-mm , lkft-triage@lists.linaro.org Cc: "Masami Hiramatsu" , "Mark Rutland" , "Andrew Morton" , "Steven Rostedt" , "Oleg Nesterov" , "Dave Jones" , "Greg Kroah-Hartman" , "Paul McKenney" , "Alan Stern" , "Sasha Levin" , "Peter Zijlstra" , "Ingo Molnar" , "Dan Carpenter" , "Ajay Kaher" Subject: Re: selftests: ftrace: RIP: 0010:__lock_acquire (kernel/locking/lockdep.c:5005) Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 05:55:57 -0700 (PDT) On Fri, Oct 27, 2023, at 13:47, Naresh Kamboju wrote: > Following kernel crash noticed on x86_64 while running selftests ftracetests > running 6.6.0-rc7-next-20231026. > > Reported-by: Linux Kernel Functional Testing My guess would be that this is caused by 5790b1fb3d67 ("eventfs: Remove eventfs_file and just use eventfs_inode"), in which Steven Rostedt recently added the create_dir_dentry() function through a rewrite: > log: > ----- > # ok 44 ftrace - test for function traceon/off triggers > # ok 45 ftrace - test tracing error log support > # ok 46 Test creation and deletion of trace instances while setting an event > [ 1402.419605] BUG: kernel NULL pointer dereference, address: 0000000000000097 > [ 1402.426574] #PF: supervisor read access in kernel mode ... > [ 1402.581170] ? exc_page_fault (arch/x86/include/asm/irqflags.h:26 > arch/x86/include/asm/irqflags.h:67 arch/x86/include/asm/irqflags.h:127 > arch/x86/mm/fault.c:1513 arch/x86/mm/fault.c:1561) > [ 1402.585094] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:570) > [ 1402.589283] ? __lock_acquire (kernel/locking/lockdep.c:5005) > [ 1402.593296] ? lock_acquire (kernel/locking/lockdep.c:467 > (discriminator 4) kernel/locking/lockdep.c:5755 (discriminator 4) > kernel/locking/lockdep.c:5718 (discriminator 4)) The lock passed to spin_lock() and lock_acquire() is a NULL pointer. > [ 1402.597045] ? create_dir_dentry.part.0 > (fs/tracefs/event_inode.c:357 (discriminator 1)) > [ 1402.601928] lock_acquire (kernel/locking/lockdep.c:467 > (discriminator 4) kernel/locking/lockdep.c:5755 (discriminator 4) > kernel/locking/lockdep.c:5718 (discriminator 4)) > [ 1402.605503] ? d_invalidate (fs/dcache.c:1725 (discriminator 1)) This lock is part of the dentry passed to d_invalidate() > [ 1402.609170] ? lock_release (kernel/locking/lockdep.c:5429 > kernel/locking/lockdep.c:5773) > [ 1402.612923] ? create_dir_dentry.part.0 (fs/tracefs/event_inode.c:387) > [ 1402.617803] _raw_spin_lock (include/linux/spinlock_api_smp.h:134 > kernel/locking/spinlock.c:154) > [ 1402.621467] ? d_invalidate (fs/dcache.c:1725 (discriminator 1)) > [ 1402.625126] d_invalidate (fs/dcache.c:1725 (discriminator 1)) > [ 1402.628619] create_dir_dentry.part.0 (fs/tracefs/event_inode.c:390) Which is called by create_dir_dentry(). I don't see a bug in that function, but maybe Steve has an idea. Arnd