From patchwork Tue Jan 23 03:08:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 19295 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp104655dyi; Mon, 22 Jan 2024 19:49:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHeK5GB3EG59JHXrrDI28Aq55n6t7RPp6FYAqEiYv0GL2Fvm/4mwrkBpEj25Tc8IyXwspzh X-Received: by 2002:a05:6830:100c:b0:6e0:cb4e:b634 with SMTP id a12-20020a056830100c00b006e0cb4eb634mr2469578otp.72.1705981751883; Mon, 22 Jan 2024 19:49:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705981751; cv=pass; d=google.com; s=arc-20160816; b=nHdjHrTRTJoyf9RJK8yw47wl8sk0oEoZOSCdsm9a9mfxb/WMfN1psu9dP1clCd+SO8 zITYvRsuHI7YzLVMS8tyison9uw1xWUu3F/lswPyuPrFYdT6VvviJ7VkdJc+Z+gHAyYL MzxLVXOd/J6DOMQlxsXcsaLrvO7XcdEsHKVF+zF3ZtjKciFVPoJgWYRmMn2rAGZR60hd OWjY68UX0tWANjJkt6aLu2UU79LLuy7Bya/FOpYmDo+m3U9KijTVI1xEm0Xye3266twm svxCK2sLuUM+nTR0rPPehHg0x/gqW169obkb9FziXksQUANbt6Lz+1g8mUG09FH4bUGq T3Dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :from:date:user-agent:message-id; bh=OsJDQt3vTrXHcpKwlDWuoi7YgiAc9vlvn0N9KT56TDs=; fh=mTYg3JJ8i2GBNLFt8qb4bgYwOyk0kmrOzICLbi6qJ1c=; b=X8TG+Q1P0BGy0/jOGTWa/Ks28fhDUBM32aHVuZOlP0L4TkRvgsvMHeMqyLtvaQC/Pi PbG1ar0drTrLA9PBrJ61pzvzP5e3UhmL+CPmt4wSN/tEWHjoUZoO2ou8+ak427P9JgNi gE7IXwCtT+BSn2cklcjrNKxK2bHv+euEJ6BZKtzeqHXglMS7Evtb7BjrRTwIqj3DGe+1 4BR10BP+RXqngHxybk39IEwIRojLOb6J3yGgaDE+ipG2pUCANJDE/LJys3XEETsZ4c9f 0n4qDiL3d2hGDmsCBKDfZb7Y5n7kZktptCOsD0858XWFU6ggfSYnGKdB4Y49MTb45IGx 93ng== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-34670-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34670-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bg22-20020a056a02011600b005cfd3333850si2179772pgb.106.2024.01.22.19.49.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 19:49:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34670-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-34670-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34670-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id ECC6DB23B88 for ; Tue, 23 Jan 2024 03:14:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A073623CA; Tue, 23 Jan 2024 03:13:24 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D81E810 for ; Tue, 23 Jan 2024 03:13:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705979603; cv=none; b=KFe2iula5Q9DdbyJK1/KkYQz5xQ3uaZEb9AFstgxFU+RRJDgx/0/J3oxdgIa5Cb8uUYTEsTbiZTTeCVfg6KjdVwONkO2qb+iK2jinIvFDjiSo1PJktqLVMDwurFVFNEhphCidGq9teuj3WV/uGFXH5n0aCjLg2Zfgs+eKNouD3Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705979603; c=relaxed/simple; bh=P9m3e0sqQC05bMtxDHPbp2+Kd/hzkQ3TRdYVPbYdiRM=; h=Message-ID:Date:From:To:Cc:Subject; b=BZFjUhDytw2XyIgaHKHZh59PvPwL+5VnyuIfwu0/mvlu1twgsCzhwAi4qKUwn0HzvXslXATLFKGvIagloMN7rMue21OjzoEJyZXDK5GtBDt5CqWZA9q9JAYGxBM7A8otRiSAihuxtzE6UmteM9JUjKnQHZkhrP32I5WrKEkALDQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B87E3C433F1; Tue, 23 Jan 2024 03:13:22 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rS7FU-00000002i8Q-2gGn; Mon, 22 Jan 2024 22:14:52 -0500 Message-ID: <20240123030826.619242906@goodmis.org> User-Agent: quilt/0.67 Date: Mon, 22 Jan 2024 22:08:26 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton Subject: [for-linus][PATCH 0/2] tracing/eventfs: Fixes for 6.8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788851521416469132 X-GMAIL-MSGID: 1788851521416469132 Tracing and eventfs fixes for 6.8: - Fix histogram tracing_map insertion. The tracing_map_insert copies the value into the elt variable and then assigns the elt to the entry value. But it is possible that the entry value becomes visible on other CPUs before the elt is fully initialized. This is fixed by adding a wmb() between the initialization of the elt variable and assigning it. - Have eventfs directory have unique inode numbers. Having them be all the same proved to be a failure as the find application will think that the directories are causing loops, as it checks for directory loops via their inodes. Have the evenfs dir entries get their inodes assigned when they are referenced and then save them in the eventfs_inode structure. Petr Pavlu (1): tracing: Ensure visibility when inserting an element into tracing_map Steven Rostedt (Google) (1): eventfs: Save directory inodes in the eventfs_inode structure ---- fs/tracefs/event_inode.c | 14 +++++++++++--- fs/tracefs/internal.h | 7 ++++--- kernel/trace/tracing_map.c | 7 ++++++- 3 files changed, 21 insertions(+), 7 deletions(-)