Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1584688rwb; Thu, 10 Nov 2022 19:26:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Zurr9SVq8+62VslmSwDi0Nm/pOpBII197AEnYMnTyFbQVg+p5w2wyc0U5GF9plCjm8LHH X-Received: by 2002:a05:6a00:1143:b0:56d:91d1:a903 with SMTP id b3-20020a056a00114300b0056d91d1a903mr620047pfm.61.1668137216898; Thu, 10 Nov 2022 19:26:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668137216; cv=none; d=google.com; s=arc-20160816; b=wNk7wKht4mf9CwDBHGRgiXVktyWqdczNel4pOxA27CXgfF/wj7CClZ1Y1llyS2MlEi +8//fI7F0XwKBMC8gwnvTMyfuVa4dIab3osYySCn1KI7c7z7jJiAMvkJpWq0/MJtoBYA UMHc+pvdkN2o2L64xhOHdWvXTAl1s74ehQaslEWAUpnU6LVHZ+MNL2ZTNf/q6JAG40h/ So4CfLDItWletkw0LfBxDRmAu0P22QFfJJc9PkHbkZc8Fffrxfp6jb9r1W0hCe7/HqBL m+VILLZ8oA7I4OhpE0Udvz4lbcBYNJu1yH1SoqU0lnx3Hl56Krzk8dLS0CSHy1k0g+KV wZlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tXjL2xuNTxaf0t25IHELw0JaF4AqnET6f5arztJ55Uo=; b=VGcdv0F2dKWQARjc3O4NO+hL2hSFqGBugHfQGJMFPmUPxZ+WD4PixcwF2KV+2SFXs4 KJzKMuL1IUMO+uHIN4vcgA5LiGDwyLqa5VteOm4RGHPdL0u3T9obP8sTT97pyzOzByOj WFLyo3y09hPmOUCKc2KwymSYiH4TSwL88kytIvcbhB6rZwDVE7fqW4Zulgs66W4RLpfj MzFOsLfettvstlHZAFAvaUOfNQrVYMTQCk4njH+gNZI7Rktp0vQKW7wEUIwfCL1dsDAY PMQJYfausysSYcvaKO/COXmyMQVM/Awc/V3aMM163NqwHF8GqbN5VIMYOUrRWDWXcdUh bq5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cs.cmu.edu header.s=google-2021 header.b=DsLeF3F0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a056a000a9500b0056ba98afe0dsi1342042pfl.75.2022.11.10.19.26.45; Thu, 10 Nov 2022 19:26:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cs.cmu.edu header.s=google-2021 header.b=DsLeF3F0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cmu.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232881AbiKKDON (ORCPT + 92 others); Thu, 10 Nov 2022 22:14:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232933AbiKKDNv (ORCPT ); Thu, 10 Nov 2022 22:13:51 -0500 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60CBD5986C for ; Thu, 10 Nov 2022 19:13:36 -0800 (PST) Received: by mail-qk1-x730.google.com with SMTP id x18so2396862qki.4 for ; Thu, 10 Nov 2022 19:13:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.cmu.edu; s=google-2021; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=tXjL2xuNTxaf0t25IHELw0JaF4AqnET6f5arztJ55Uo=; b=DsLeF3F08rYvUl/AA0cHfyK8lotasWlTVOH2CzWhqRnZvkDSqUTbfvKZM15qcBvva1 r7mfwqI2oTaMRqViItEbWMIZ5KzFz6E0MYYMHfj7mkxbLZINR2yTC0xgwUaIECaFRtQl vkGDwWAepOB/V7PbtfIIaSFJoDKs/AAf6cOW7iuL04N9TUGR0H2FBJP+SFl9+rH/HvcM c7na7AlLxQFSlb8N1nuIxgnq9sD1yAdOCk3SLsUFEq+mOeMqOEr8j51VsC6rZS80FBZd BeSoUxEPhJ501Xkw5KfOEEWT/2lctEe6LKsmE+qyZRnr5qhc8ZK0Vrzw8tAnNoinrXAR XRlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tXjL2xuNTxaf0t25IHELw0JaF4AqnET6f5arztJ55Uo=; b=e0cfHIuKDLX7rlfs/A35GB2B3Srjt9nlnM7PTPcV995Z3ywe1V2gfxTrRBZUWSCcVw W+18p7w59sJFFbhFi/6wUKO2vlEUmJcoFMtOo6kXgo3QTQrTeAeZlRWr5z3igtHIqfR8 /CKwrmlAV/VSLjlZLCsRENZte7VwCbVE+kxchuDLvafARuKEyfjRBgmkU3AAWv+nPp8C xf/FwwEhcFm1977b1iZF4O3V7c45n4REZZplmPkTenFM+kVSCdvTa0jz3nYZbEt/s2oF qxsfLOwAPSSroPOmMorRP63sTN4NVR3a8IsDE8Ueb7wi6kR1AH0UQJiD0yYKkL2Leubs tQ8w== X-Gm-Message-State: ACrzQf0J5Xir9tofejL/QsPV3Bb3n2OQRbNG2YC3MGKKtQMZ0vxeElml dG0FMsaH4ZgqbIR6+oNvzbuquvHAupZ4u179 X-Received: by 2002:a37:8081:0:b0:6fa:ac63:f836 with SMTP id b123-20020a378081000000b006faac63f836mr2409555qkd.43.1668136415435; Thu, 10 Nov 2022 19:13:35 -0800 (PST) Received: from cs.cmu.edu (tunnel29655-pt.tunnel.tserv13.ash1.ipv6.he.net. [2001:470:7:582::2]) by smtp.gmail.com with ESMTPSA id hj10-20020a05622a620a00b003a582090530sm581354qtb.83.2022.11.10.19.13.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 19:13:34 -0800 (PST) Date: Thu, 10 Nov 2022 22:13:32 -0500 From: Jan Harkes To: Ahelenia =?utf-8?Q?Ziemia=C5=84ska?= Cc: Jonathan Corbet , Federico Vaga , Alex Shi , Yanteng Si , Hu Haowen , Greg Kroah-Hartman , Jiri Slaby , Jakub Kicinski , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc-tw-discuss@lists.sourceforge.net Subject: Re: [PATCH v3 05/15] coda: remove CODA_MAGIC Message-ID: <20221111031332.qt2ggahuo6gcnwiz@cs.cmu.edu> References: <91a186d5a3ebebb10ca5f9dd460448ff42c5229d.1668128257.git.nabijaczleweli@nabijaczleweli.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <91a186d5a3ebebb10ca5f9dd460448ff42c5229d.1668128257.git.nabijaczleweli@nabijaczleweli.xyz> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 10, 2022 at 08:14:01PM -0500, Ahelenia ZiemiaƄska wrote: > We have largely moved away from this approach, and we have better > debugging tooling nowadays: kill it. I still haven't received a response to my earlier email asking what better debug tooling you are talking about. I gave an example of an older bug, which has been fixed, where a Coda inode accidentally ending up in ext4 through an mmap path. This ended up scribbling over a spinlock in the coda_inode_info data which resulted into pretty random system lockups. This was actually quite hard to track down because there is no check that `file_inode(vma->vm_file)` actually returns the inode of another file system. So I'd be interesting what this tooling is or how it can be used to better catch/identify such cases. So I actually like this type of magic because it can potentially catch some cases that should never happen. We could rename it to from MAGIC to ASSERT, we don't remove asserts from code because of better debug tooling. Those random 4 bytes in a Coda internal structure are not in a hot path. Jan