Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp590188rdb; Mon, 29 Jan 2024 11:24:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTbsOH33kc7OBIMfrSZPA+FbPi6KdSwIAHSeaBgzehwJqo1YA1K34rStZ43Y/Z5rL+dE5T X-Received: by 2002:a05:6512:281b:b0:50e:5c71:51f1 with SMTP id cf27-20020a056512281b00b0050e5c7151f1mr4785907lfb.62.1706556284084; Mon, 29 Jan 2024 11:24:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706556284; cv=pass; d=google.com; s=arc-20160816; b=AoIncRDtoylHJiVtXJ5QsVpa2NpYmH6+cvKqZFF2/to1NQZSft8779LBAal3uBQdho W+8MfVPV66wD9HyjayppcVJlRwJFELoazWp2DAjK8+mEjeMgfbwpid/LC02BunJu8Rpg /p1BiQUK5TLvarl68A91V0w/AzF86d2vDlqpZhmYZX1hmKzPcLMTN5/2cIH/QcR3x4HZ lGnHlwZJIMoc3ltWZxpbQR2AWqAnLPHPtLdwZMo1/tfvLF6Z9JDRQMkcHsZf3itFVHDe dk2+M8VDWnFPaW3FTewzWRzS12/6h5DeJR4iva5Cws4vJvbuT1tcobgin0XEFRbqam1D RGAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=rcYLqzXF8lziibesGlxqW2Lt27r28IgsPGcFjfsGXTQ=; fh=Md50wLehZoDD5Sx7nueCG/UN4tfSAivmPz4nrPW3cUY=; b=kquAdX83E9v7T5r27BtyFo4TLOEwQXZUkRG/VcUmMnedz+ozenOtD7b+5s+omZdaeG A0Y0iGuLYwSEDnIIXcrheyCBDRpmYqbUPpanCzQeFgDdKemHCtby4c95fTIA5XXDDGSf k87qnnNIyShZO0D5qf/XofYmv2GFnqkHBeQF018O34foAIZz2RHM7fFTDM5Ro4ULhgUM xucIxgguffsBSqXrUq6QVpbmrZOBfLRTBd973hF7YWo1RnH6voNLIrV8LZUk7uZkA3Nh mI1mjvqLdubXnyxwMkEQb5DszHNUNGmNgQ4/kUll5zNNvLXns8jDAsQoLTMqgfbRh06x x7pA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=CuB8nfmV; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-43397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43397-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u14-20020a1709063b8e00b00a35d99b68d5si792666ejf.38.2024.01.29.11.24.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 11:24:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=CuB8nfmV; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-43397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43397-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A59121F25DBE for ; Mon, 29 Jan 2024 19:24:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77AE66F068; Mon, 29 Jan 2024 19:24:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="CuB8nfmV" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 750144C63D for ; Mon, 29 Jan 2024 19:24:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706556275; cv=none; b=X+v4fHfyN41tvg+Ahvi0UkBthgmRNgXuLakmXAg36WVdko0xprDZkGIrbE8vt9P7Er2JGmJzKnRmzW4+vrcg8UQVlPVLhWcPcfsnUqzWvDknTZO6P34XUBU/dL9fxaD39Af4ppv6FpfBqzd3QtzbbGiRk/qS74S0soc0CCjNN78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706556275; c=relaxed/simple; bh=bBpiX78LXMRXA22N7d+TRCKij7xbGDSODZmb19qcTVE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uheDuM0qM9jtol9uYpBqlVTKqRpS1EIPe0C6+KnH/8lLsCvdiUPYLagEL5O3VoJH75QvxVGrt07DiOzn34hwf+DfydLEMOqmLFG00Z9QqqDfKwGqby1mgN9E7C4mGTMW7GC/Wt/3Is1SvOmL+p4HAFZ8Mx+3rmBb7CEEqDfd9IU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=CuB8nfmV; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2cf3a0b2355so37997981fa.0 for ; Mon, 29 Jan 2024 11:24:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706556271; x=1707161071; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rcYLqzXF8lziibesGlxqW2Lt27r28IgsPGcFjfsGXTQ=; b=CuB8nfmVh8NYFmpkkEekSRnII5+FDMbT1ga1WwXibSjTE1j8hdlyS6YmWKW3iChWMX kex8tGkCwU2XcUc91WI3FoRVNqWjWJTOYZxdoCSw7od6Q4DTN15ttXzqZ1cPErRWjVY6 lY38PAHFoNL5kZD1mmGwZ/MI1DxI7KjRasYRQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706556271; x=1707161071; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rcYLqzXF8lziibesGlxqW2Lt27r28IgsPGcFjfsGXTQ=; b=hlwMVds9I2k7XeEGDvJUB99Jo1CizvSYiY5PvTuUj48sryyANekbCXsj7TTTqupMqk XrKLCpm/VHxCf+w07GhH6HExbF82tmgqN03vlQtDr5pmHPO6kuZ+rewEmB1E6s1R+oPT EQ7FQT1qq0TxZOUMrUqk1OqY1Iz7YxP9Fd1W5Gp+z6Z1YRboso3Zoczf039+Yl4rVjMt Wij6yMJVHvFI0XxcCoOoUvg74FKjYoXC7g3nxaZG3qG+qWLoUn71ZT7WrORuEyyjy/K8 5XFNf08NaUH8cs9czMqxSghqiB5MfcMs+c/4eduH/jobb7LOwZycVXY7iYsFsW06Ze4P QhZQ== X-Gm-Message-State: AOJu0YyRBNjQjyTaMcxgpKBD6ErRXxQCDghfegSN+FsJj7Em4oN2SkTg C94OcrdepQPt4VFjJF56zEnox3+xlWXHFB0ThiRAo0Ih6jltTclzuB5YGSCjgVU/w5JN7AlPK00 7vro= X-Received: by 2002:a2e:9082:0:b0:2ce:d23:ec79 with SMTP id l2-20020a2e9082000000b002ce0d23ec79mr4475167ljg.40.1706556270803; Mon, 29 Jan 2024 11:24:30 -0800 (PST) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id p11-20020a2e740b000000b002cf351e6a94sm1266659ljc.80.2024.01.29.11.24.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jan 2024 11:24:29 -0800 (PST) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2cf3a0b2355so37997471fa.0 for ; Mon, 29 Jan 2024 11:24:29 -0800 (PST) X-Received: by 2002:a2e:8342:0:b0:2cf:433c:b3e with SMTP id l2-20020a2e8342000000b002cf433c0b3emr4156643ljh.8.1706556269035; Mon, 29 Jan 2024 11:24:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <202401291043.e62e89dc-oliver.sang@intel.com> <20240129120125.605e97af@gandalf.local.home> In-Reply-To: From: Linus Torvalds Date: Mon, 29 Jan 2024 11:24:12 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linus:master] [eventfs] 852e46e239: BUG:unable_to_handle_page_fault_for_address To: Steven Rostedt Cc: kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Christian Brauner , Al Viro , Ajay Kaher , linux-trace-kernel@vger.kernel.org Content-Type: multipart/mixed; boundary="00000000000035679f06101a980c" --00000000000035679f06101a980c Content-Type: text/plain; charset="UTF-8" On Mon, 29 Jan 2024 at 09:40, Linus Torvalds wrote: > > IOW, I think the right fix is really just this: Oh, for some reason I sent out the original patch I had which didn't fix the create_dir() case. So that patch was missing the important hunk that added the ti->flags = TRACEFS_EVENT_INODE; ti->private = ei; to create_dir() (to match the removal in eventfs_post_create_dir()). I had incorrectly put it in the create_file() case, that should just set ->private to NULL. afaik So the patch was completely broken. Here's the one that should actually compile (although still not actually *tested*). Linus --00000000000035679f06101a980c Content-Type: text/x-patch; charset="US-ASCII"; name="0001-eventfsfs-initialize-the-tracefs-inode-properly.patch" Content-Disposition: attachment; filename="0001-eventfsfs-initialize-the-tracefs-inode-properly.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lrzbg76z0 RnJvbSA2ZTVkYjEwZWJjOTZlYmU2Yjk3MDdjOTkzOGM0NTBmNTFlOWEzYWUwIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBMaW51cyBUb3J2YWxkcyA8dG9ydmFsZHNAbGludXgtZm91bmRh dGlvbi5vcmc+CkRhdGU6IE1vbiwgMjkgSmFuIDIwMjQgMTE6MDY6MzIgLTA4MDAKU3ViamVjdDog W1BBVENIXSBldmVudGZzZnM6IGluaXRpYWxpemUgdGhlIHRyYWNlZnMgaW5vZGUgcHJvcGVybHkK ClRoZSB0cmFjZWZzLXNwZWNpZmljIGZpZWxkcyBpbiB0aGUgaW5vZGUgd2VyZSBub3QgaW5pdGlh bGl6ZWQgYmVmb3JlIHRoZQppbm9kZSB3YXMgZXhwb3NlZCB0byBvdGhlcnMgdGhyb3VnaCB0aGUg ZGVudHJ5IHdpdGggJ2RfaW5zdGFudGlhdGUoKScuCgpBbmQgdGhlIC0+ZmxhZ3MgZmlsZSB3YXMg aW5pdGlhbGl6ZWQgaW5jb3JyZWN0bHkgd2l0aCBhICd8PScsIHdoZW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