Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp169588rdb; Sun, 28 Jan 2024 20:01:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IH436ANu3B0B71Mxm64wBW9VGhwPrebRMDLRMW2fAegQJeZf2NO/AaOoW/p2+oK28ySRcpx X-Received: by 2002:a17:906:d292:b0:a34:ac2a:5be3 with SMTP id ay18-20020a170906d29200b00a34ac2a5be3mr2701477ejb.77.1706500915377; Sun, 28 Jan 2024 20:01:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706500915; cv=pass; d=google.com; s=arc-20160816; b=yRrjmqqLdsgZ9VCn+F9E7xIkqNOmnKuUb8MngE5cCJgci+TrhFrkNk2xLksCeVqZYO a99DFfC+aGfcawQSpAHlkXZEtsKPXlYe8qxZj0aBUOk1i9iXeVhhqUCoIP3ZdokP50xg 9ssmh+9pSBL9HeadBFto2UIovzQK6D9e2dslnfZKANwWyeQp22ob+xZTivVfv+WBFNq8 m5X+d1qBIPPEcGy7LP/3nNvlLKFBRFx3pQVMLhE1IKBRAC2LJbv2K2SCSG8IyjxJfuAm FAKXqAGBXmaYpdgcIFaEZxlC2gGatp1ovm1VxRvIiIxoolru7ADK4KpVdfDYI46bCmLQ hQnw== 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=n3rcnUVyGJZKxOB2+kTh5T1A/eFH+JMPmm6YXhef9ps=; fh=25A28idcD68zldJo3uiBhZCATh1rJJJ6nSU/srkbZ6s=; b=lKt8ULVKpaZ45HVbt8BAl44lGZFbWRaeYvcdN/BdGae0Ab1/63hF7PaxZHYKySaGrQ rtpP45Ox6sgykq6qneiPF5y/18+ErrdRNqjIaa06RpyVNxZLoL2WVekrsAM+WN6sXAkY zKSE6DkB6XlByaR/nS/SsA4xetO6iG4WJVWHrufoXSpBAHsuZly2BPRqoDUS3hqO2LE7 rG2RgDrvg09CBBc+pkF1CTL+OXGchLPb2rb9kBYNRxShZok79wVUx8PWJO+OvbPXtAT8 QpTMDXvlUsXokTpuVKWEoajyk3+P5W/kQohHZx5fONLp1Vfo2MUI1ODGhoMEdC4813JA diGw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=VqkPGPVk; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-42151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42151-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 gs10-20020a170906f18a00b00a35a018042csi885138ejb.338.2024.01.28.20.01.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 20:01:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42151-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=VqkPGPVk; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-42151-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42151-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 212E31F21E1E for ; Mon, 29 Jan 2024 04:01:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D65A12B86; Mon, 29 Jan 2024 04:01:43 +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="VqkPGPVk" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 6D6C014F90 for ; Mon, 29 Jan 2024 04:01:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706500902; cv=none; b=T91euSz/sg/4uxRU4uET4wmLmrPqqXOz9XrtKcQU2Qqx9HKFfsShWtt8nPV2SO7CUzxcqKyDcmtx+mDX8tHphJPDSGbqApXqN4X5F9WkNsdQU264DFmkJsOY6dU5lXLn0O9pbGWoV0P4oL3rDKUcjle5wBwTbZDi2dwKV/oj5B8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706500902; c=relaxed/simple; bh=xkL43O7OU7ppcLkBh7OlkPsjLq6ZFYIqsGEUJU4E5HM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RNAZsjUWMUIu9Al57/U6YHi8cLXya5CaEU9taIMS9/WdB0vDigasQjbsu909ChMyb9Pp/epJaK29tdQ5JmRYy4kjuUVGFhaF77AHNk7tLWBUe+r/qJ75mT0r9wZvJBDBOrGYNO5PxfeEi1C09HSSkTWzjMhoD9/b2q/2CdfOPH8= 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=VqkPGPVk; arc=none smtp.client-ip=209.85.167.49 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-lf1-f49.google.com with SMTP id 2adb3069b0e04-510e0d700c6so882973e87.2 for ; Sun, 28 Jan 2024 20:01:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706500898; x=1707105698; 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=n3rcnUVyGJZKxOB2+kTh5T1A/eFH+JMPmm6YXhef9ps=; b=VqkPGPVkhy8EqpLeBANqz3+Rc7n0CByyEgJsKoo8153BBLEAGDwL606nmXm+QM7f1q zWOt8Q3VKDgCxiRKmubYLiBxf4viwUfHNJMnZKyyECCDSTgImpqxBxT1uNAaokReumTn QYW9IxrSLXDVLo3tDb7+/N+6uNimjKA7YOngA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706500898; x=1707105698; 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=n3rcnUVyGJZKxOB2+kTh5T1A/eFH+JMPmm6YXhef9ps=; b=DTN2v4v6KxXM+rE6vyhmrIybN/aTCaceel434jvwFm/LLo7CBXh/brYeo0UM+RrDQd y9LZG7EFKykV+XdOjj6DTN895NTpGvtsAsHmR3R/JIT7WO79zvBAyAZxFTYfB11MBL8g lt/rdG19F8Hp1JcYPdEtzqq29gwAYHaR+SucTM7QRd0VVt/6NV07A1i0aQciSQaTKqc+ a8y1tLcd6u2HYNkbGPqAkeVv/eIPrff0OFkX5NALX2NF1j4hu4qIQ4S7eXaBsIFdTDgJ wUs+xZGVqXItQVYxnm3g80bLGY4yZKN5H+P2mp6tNGHB5zW8Yg7Rbckz+Pr4b3HojuvL b7Qg== X-Gm-Message-State: AOJu0Yxpjz7lGzkUYXq05l5ZlQK7HCcOpToMVEeBlYVatLcBWhEK2Zwv Y/qmXBDKZMkc5lXgwAU9hq1p6cU2bPUBHipl8qHYgxCbOix3kdWOHp5JkZXn2vT51B8j9Pkurg1 rIS8Mzg== X-Received: by 2002:a19:2d43:0:b0:510:2367:1bca with SMTP id t3-20020a192d43000000b0051023671bcamr2744208lft.4.1706500898230; Sun, 28 Jan 2024 20:01:38 -0800 (PST) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id x5-20020a056512046500b00510217b6db5sm974757lfd.216.2024.01.28.20.01.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Jan 2024 20:01:37 -0800 (PST) Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-5110c166d70so1076476e87.1 for ; Sun, 28 Jan 2024 20:01:37 -0800 (PST) X-Received: by 2002:a05:6512:12d1:b0:50e:6317:54ab with SMTP id p17-20020a05651212d100b0050e631754abmr2806079lfg.42.1706500896681; Sun, 28 Jan 2024 20:01:36 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240126150209.367ff402@gandalf.local.home> <20240126162626.31d90da9@gandalf.local.home> <20240128175111.69f8b973@rorschach.local.home> <20240128185943.6920388b@rorschach.local.home> <20240128192108.6875ecf4@rorschach.local.home> <20240128213249.605a7ade@rorschach.local.home> <20240128224054.0df489b8@rorschach.local.home> In-Reply-To: <20240128224054.0df489b8@rorschach.local.home> From: Linus Torvalds Date: Sun, 28 Jan 2024 20:01:19 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] eventfs: Have inodes have unique inode numbers To: Steven Rostedt Cc: Masami Hiramatsu , Mathieu Desnoyers , LKML , Linux Trace Devel , Christian Brauner , Ajay Kaher , Geert Uytterhoeven , linux-fsdevel Content-Type: text/plain; charset="UTF-8" On Sun, 28 Jan 2024 at 19:40, Steven Rostedt wrote: > > [ 106.258400] BUG: KASAN: slab-use-after-free in tracing_open_file_tr+0x3a/0x120 > [ 106.261228] Read of size 8 at addr ffff8881136f27b8 by task cat/868 Are you refcounting the pointers that you have in the dentries (and inodes)? Like we talked about you needing to do? Every time you assign a pointer to d_fsdata, you need to kref_get() it. You try to work around the tracefs weaknesses by trying to clean up the dentry data, but it's WRONG. You should refcount the data properly, so that you don't NEED to clean it out. Linus