Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp576348rdb; Mon, 29 Jan 2024 10:59:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpPQ/PzH942+Z80ucdHpsGIFXPFw/yHPabcYfwuoNy/vxk5dHCzMN6ezuf+hqp5Qp0sy+F X-Received: by 2002:a05:6830:114a:b0:6e1:f4f:fe52 with SMTP id x10-20020a056830114a00b006e10f4ffe52mr6690385otq.18.1706554757459; Mon, 29 Jan 2024 10:59:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706554757; cv=pass; d=google.com; s=arc-20160816; b=i9+PS/gV2rqqmrLKNuVQ0o8h/BsoDuVuZaH97sf24Xx8BtsBvwo4Ifh2HodnO2i5aO 9m54yVj+Q5Yqyj2xVj8xLLb9Hm2LWvoe/dPeHV04v8nYIS+lkfc8MEXlRnRoOqNP2xgi H4j5XFtwT049D6XpaKhtbya/Lh8FoRoW1uuKGIeoSmSl+ZCnxaEBVsiRE8K3ETR88vyB Qzt8kh6DoZjzZo/aXavbfvcJH12IopHwGQw7Nq8f305g3UW1J1D/IPX+iJF0jIKNpEPo i/D8FcT4RgqBp8NrR8pVZ686wgBLv59cpTOt4vARusiOjqI2jFlwwVk0Lu4oeyaxqxA8 olEA== 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=lAIeftpjE3O3z+PB+PSTo+RPyGVLY9cTuEJCruuNk/w=; fh=AIwx5liLVjuwrnHdrC8EF1OBqHVopXffu7CkMb4RsDw=; b=jGyzIhWYArs/1fwvsTIgyBZOECwGzXpaRA0vHNovva4m8nUNONnUYqfhYPo4KTLAVV /UzH0ac4LW3phwQV4yetyI7N6puFdUfQdPBJN6IBb4mAvxtnHPry9NgIPDTNh0ecw3Dt BtJ2V2U+N7Uej61+WvkyAX4ZwpmDa7SvDdvqT9FS0cvJ5zcWP5EmNYlxtJ9c9A2bT/Gl Q7tW7AeeRuggdrW8SFGAp/E3yy/PwwZWn8PwaJryPDzFx0XomKuiTZSmOyzPTblSumTc Da82SVb2G0eG2oa0rvD9/JuUSFDoxWllbP8WYlM3yzpSlJ5E3bW9ujwVYIrs6fWdkopW Sv5g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OsOLphgX; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-43377-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43377-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w30-20020a63af1e000000b005d8bc1d9b5esi3829789pge.313.2024.01.29.10.59.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 10:59:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43377-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=OsOLphgX; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-43377-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43377-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B066A2882BB for ; Mon, 29 Jan 2024 18:59:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC2DA2E84D; Mon, 29 Jan 2024 18:58:54 +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="OsOLphgX" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 2D4252D044 for ; Mon, 29 Jan 2024 18:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706554734; cv=none; b=LovO8QEvszeM/6FuOngChDj/qABOdkV3Upip0sBhrrnwlXrmqvZk0YO4XLiOsmj9g2BG8hLthbJCSt/Ln4rqQMgvI0JcfGpHl8Y30iJEvho9pWw4ZUrog30lGZxdzghSceu2daqVKEr7uDqVpcZtGFSizxpKonELsOC10zqD+Ks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706554734; c=relaxed/simple; bh=eKMFg7i7+7j+e8Iv0NW7ko6n3ZkbnwSwN9MN8KR3iQg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aWFtSLCikHejkHrmc7CUhkAq9+bRgvrbsISxzTxJoUzBpn21zzJiQpLNkznd16oR3IGMnXWyw7vRuctB7fKNL34+GPww25NZkdqOS6w4E0IDgRxnuad67yRu1gySWT0giF5Kl28utjtAtlEtOYDvdczOBAa3Kq2+T1JMrIay94E= 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=OsOLphgX; arc=none smtp.client-ip=209.85.167.48 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-f48.google.com with SMTP id 2adb3069b0e04-51114557c77so1230891e87.0 for ; Mon, 29 Jan 2024 10:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1706554729; x=1707159529; 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=lAIeftpjE3O3z+PB+PSTo+RPyGVLY9cTuEJCruuNk/w=; b=OsOLphgXcvY9l4lR1zql4yODBK9CiHilNprHE23ita63pWGQxXOny/0C4QEPHkJL4w 7nHUPf1MNloA2saNS/w1AKU5vBU6rqBmubOBGGuKZeypMJSUr/HtqU08a+kxfahD/FFS xA7TZouk9GaxShnH83jZhmiIqb7JOItvxa1KM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706554729; x=1707159529; 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=lAIeftpjE3O3z+PB+PSTo+RPyGVLY9cTuEJCruuNk/w=; b=fwJyQMNabozmKcNTlOulsi8ea+GmS8/Kb5YOYAm+QTRwnSVjAD6R3tIv1uXhZmrXRL 5XYR46buW+r9DlgRVz4sYGLOL3e+tBM5tLC05MizVNqK+nDfhUdCTaHGNQu8XqhFo9E8 bpUrQnlisxw/FvmWPlGWlIXokAUUnrIVE3oTW5cBjHb99fdyygDmYmVzZ0tqWJ1B+fLs lASJTOHFRGdhHYucmtKBa9xPZ1+pr6fKPejirATrnb1p+p/H0I4TB6Ek3f9lO3ROhwOr tSbV8Na/fwX95Vr7zLm53APiG4rkBZAyeDfvtgiE4qrCDKAdi6UCE8sXA4OsD4cvaB3D IKKA== X-Gm-Message-State: AOJu0YyzshNi39imNyA2QwfheVT+k5MKUg5mIbl5a/QDbWoKR1AUs+wl c/8cLEGWlgadgJXAlhxxAWqUIUTSWCbIsVm4UCHWIxBtdWnLZk6GU4lerG2yjSjdUiSCdSlgdll EJTodnA== X-Received: by 2002:ac2:4a65:0:b0:50f:1ac5:758c with SMTP id q5-20020ac24a65000000b0050f1ac5758cmr4159662lfp.17.1706554729393; Mon, 29 Jan 2024 10:58:49 -0800 (PST) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id b21-20020a196455000000b005101f0166b6sm1187676lfj.14.2024.01.29.10.58.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jan 2024 10:58:48 -0800 (PST) Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2cf3a095ba6so36254361fa.2 for ; Mon, 29 Jan 2024 10:58:48 -0800 (PST) X-Received: by 2002:a05:651c:150b:b0:2cc:9ec8:fc5a with SMTP id e11-20020a05651c150b00b002cc9ec8fc5amr5318335ljf.39.1706554727677; Mon, 29 Jan 2024 10:58:47 -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> <8547159a-0b28-4d75-af02-47fc450785fa@efficios.com> <29be300d-00c4-4759-b614-2523864c074b@efficios.com> <3120f1f0-eaf8-4058-9a65-bdbee28c68c9@efficios.com> In-Reply-To: <3120f1f0-eaf8-4058-9a65-bdbee28c68c9@efficios.com> From: Linus Torvalds Date: Mon, 29 Jan 2024 10:58:30 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] eventfs: Have inodes have unique inode numbers To: Mathieu Desnoyers Cc: Steven Rostedt , LKML , Linux Trace Devel , Masami Hiramatsu , Christian Brauner , Ajay Kaher , Geert Uytterhoeven , linux-fsdevel Content-Type: text/plain; charset="UTF-8" On Mon, 29 Jan 2024 at 08:00, Mathieu Desnoyers wrote: > > This breaks "cp -aH" and "cp -aL". Do we care? Do we have a user that cares? Has anybody ever hit it? Why would you ever do anything like that to tracefs filesystem? In other words: my point is that tracefs just isn't a regular filesystem. Never was, never will be. And people should be *aware* of that. We should not say "hey, if it doesn't work like a normal filesystem, it's a bug". Try "cp -aL" on /proc, and guess what? It won't work all that well either. For entirely *different* reasons. You'll get some variation of "Input/output error"s, and insanely big files and quite possibly you'll end up with recursive copying as you try to copy the file that is /proc/self/fd/. It's just a nonsensical operation to do, and if somebody says "I can't copy /proc on my system" it's a PEBKAC, not a kernel problem. The "no regressions" rule is not about made-up "if I do this, behavior changes". The "no regressions" rule is about *users*. If you have an actual user that has been doing insane things, and we change something, and now the insane thing no longer works, at that point it's a regression, and we'll sigh, and go "Users are insane" and have to fix it. But if you have some random test that now behaves differently, it's not a regression. It's a *warning* sign, sure: tests are useful. So tests can show when something user-visible changed, and as such they are a "there be monsters here" sign that maybe some user experience will hit it too. So I agree that "just use the same inode number" changes behavior. I agree that it can be a bit of a danger. But these "look, I can see a difference" isn't an argument. And honestly, I have now spent *days* looking at tracefs, and I'm finding core fundamental bugs that would cause actual oopses and/or wild pointer accesses. All of which makes me go "this code needs to be simpler and *cleaner* and stop making problems". In other words: tracefs is such a complete mess that I do not care one *whit* about "cp -aL". I care about "this is actual kernel instability". Linus