Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1882989rdg; Sat, 12 Aug 2023 23:29:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH33ST863oLU0xxlLyryWJAOZlv/lqY6MmtX6ShaSeLJ5ByiRgzWuLBFpj0p7BvzGg0iAKf X-Received: by 2002:a05:6a21:7807:b0:126:43f7:e271 with SMTP id be7-20020a056a21780700b0012643f7e271mr5477419pzc.39.1691908142074; Sat, 12 Aug 2023 23:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691908142; cv=none; d=google.com; s=arc-20160816; b=RJKs4AWQY82HjV45uRMaZQf48VwAfNKDRh2g9ed4rixuULhxx2GYwQ91KlnzAkmLxJ hplQOOzX6GQJvhrj8yCqOG9E9sdcKS/LM3Sv+e8KfQiJAYaOMO5hYS+nZ/iKtBG4TYyw cO0P5aRfNnUs6ZqN4zMcJLzptG9mIpPqRwdTit/T2OFowcPg1L5o5YGYRS9ig+4vakfd kx7tpVXhP1XCYWQUZA7/m7G8/MQGHn+ebvk62LeZzokz01MbeJBfLVINd5skIeXFUYpp 85AoznZZbevGmG1haEn1MXTig0RMJf1obIBFOgRhzFgApYOXStRxE53rr+x84UC9gaNL OkHg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=w+/Rmv9xJJ2diwOcU1QE0+QvCVLrd4a9U2hMT0JIc4g=; fh=Yhr8MUzcPI1aoYtmOe1H2bP+dVxVdUeNVT372KdI7Y0=; b=xVS0BgqC4FsMIS+XqfTtSHH5mnO6AJEw/X4eOJhqdZq3PEelwgSBjEFsO8ojYa278U uaaTosYifB9skZWCpOilgO+orlDcgLQRLAc83IkRX5Qau/Mqf5+QNsY1+GMwo7559lmr 9jpIOeBWHnWyn1CGo/vC7ehuUjHMQpKObWm4sz0wLMyXtE2TDagUKx/PDNOkZJB7jQeD KVZQuv4awF3GEGx584Xq+XedLMQQ8wyalUOVjvPcwwqIq4ZuSzsr0DpN/ahU43E2RcNB ecJiChvgGJs16aEpqxnSCFsDEpPSlB7BiTdldNJqfyYPeCOXCs0kQcpYQF/hmeU1ul68 j/Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h1+iWqUx; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x63-20020a636342000000b005634fdd0979si6349808pgb.496.2023.08.12.23.28.40; Sat, 12 Aug 2023 23:29:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@kernel.org header.s=k20201202 header.b=h1+iWqUx; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbjHMEaX (ORCPT + 99 others); Sun, 13 Aug 2023 00:30:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjHMEaX (ORCPT ); Sun, 13 Aug 2023 00:30:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9CF21701; Sat, 12 Aug 2023 21:30:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3387160A6D; Sun, 13 Aug 2023 04:30:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54070C433C7; Sun, 13 Aug 2023 04:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691901024; bh=C9pWXxBilxJdH8Y7mBGisX4v0+MjqIvuoPcip0f+Zu0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h1+iWqUxRkDve5Ugw1GmTMdyIORsu+T3tGZxclefsBMszOaJNk358YyigYEFw7m+3 vjQNl9X950SqC48q7G9q4jG8hrL3D7Sg2HCG6RaT+yZKRSt7B0W/ingZWrdkWFHQLw zVNqmwMNrLIJv7UHT6b6TpTs7FuxN9bixOrEN+OT1yUi1nWzPm7c1OQR3rckCo0247 W9icUGUqaMmRPVQX4/QxSjlb/CUzBiwSXb/9jAAq5boL5KUo+Us1N3facjhouxQrbo 5NpTiV5pXmbfHmGauDtKW0Y6vfqdvs9xxOu1reMg/GmgLuUIh2Ild8w/t/2Mkw7xXv 3xwkolkyKcnrw== Date: Sat, 12 Aug 2023 21:30:22 -0700 From: Eric Biggers To: Matthew Wilcox Cc: Theodore Ts'o , Gabriel Krisman Bertazi , viro@zeniv.linux.org.uk, brauner@kernel.org, jaegeuk@kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Subject: Re: [PATCH v5 01/10] fs: Expose helper to check if a directory needs casefolding Message-ID: <20230813043022.GA3545@sol.localdomain> References: <20230812004146.30980-1-krisman@suse.de> <20230812004146.30980-2-krisman@suse.de> <20230812015915.GA971@sol.localdomain> <20230812230647.GB2247938@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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-ext4@vger.kernel.org On Sun, Aug 13, 2023 at 04:08:58AM +0100, Matthew Wilcox wrote: > On Sat, Aug 12, 2023 at 07:06:47PM -0400, Theodore Ts'o wrote: > > One could say that this is an insane threat model, but the syzbot team > > thinks that this can be used to break out of a kernel lockdown after a > > UEFI secure boot. Which is fine, except I don't think I've been able > > to get any company (including Google) to pay for headcount to fix > > problems like this, and the unremitting stream of these sorts of > > syzbot reports have already caused one major file system developer to > > burn out and step down. > > > > So problems like this get fixed on my own time, and when I have some > > free time. And if we "simplify" the code, it will inevitably cause > > more syzbot reports, which I will then have to ignore, and the syzbot > > team will write more "kernel security disaster" slide deck > > presentations to senior VP's, although I'll note this has never > > resulted in my getting any additional SWE's to help me fix the > > problem... > > > > > So just __ext4_iget() needs to be fixed. I think we should consider doing that > > > before further entrenching all the extra ->s_encoding checks. > > > > If we can get an upstream kernel consensus that syzbot reports caused > > by writing to a mounted file system aren't important, and we can > > publish this somewhere where hopefully the syzbot team will pay > > attention to it, sure... > > What the syzbot team don't seem to understand is that more bug reports > aren't better. I used to investigate one most days, but the onslaught is > relentless and I just ignore syzbot reports now. I appreciate maintainers > don't necessarily get that privilege. > > They seem motivated to find new and exciting ways to break the kernel > without realising that they're sapping the will to work on the bugs that > we already have. > Well, one thing that the kernel community can do to make things better is identify when a large number of bug reports are caused by a single issue ("userspace can write to mounted block devices"), and do something about that underlying issue (https://lore.kernel.org/r/20230704122727.17096-1-jack@suse.cz) instead of trying to "fix" large numbers of individual "bugs". We can have 1000 bugs or 1 bug, it is actually our choice in this case. - Eric