Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10206577rwp; Thu, 20 Jul 2023 16:50:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKKEalnlBx5kUWlyFpw+JZu2KfGfEq0qgAWR7YBaRoq4GTrYX0MioQUPlUG2vO3yU5FX8J X-Received: by 2002:a05:6871:202:b0:1ba:8224:2019 with SMTP id t2-20020a056871020200b001ba82242019mr302268oad.52.1689897039598; Thu, 20 Jul 2023 16:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689897039; cv=none; d=google.com; s=arc-20160816; b=RMNmR8+uxE2rYYzXkJ5wsf9o4AzgMxgQESFQ8ik/MkU7w7bS6ys6BLTfjyTtlCd9U7 c+AiwunAfhLY77uQI5SwDHw8jkyRtEyk3ozyevqJkBzqIxtPfQCuvtG3B3/R6zr/9BJO FxBhqjb402bsg2xVn8wnm9s8tSZOQ3/8m0NQs0lZHJ7fFqtmx7KIATx8NeCtX0Rs2lbg 5zz1OUT2PF1AC7E+tDLjEDtXOnvvYJAqPmqcgTPhdRTG7pCjsDwF5gqvZ5qX+aSDPeI4 nOhz+aCrKgZCPZdINBdYYwtG3/SNWHBNTxuK1SjNE709+HMWRXvrGm0d22xGoAbsIeMf xJAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=icC7qqcxEnMW3yXk8+JIZ8lmrrJx4xPvVXeXAz/l3rg=; fh=DL67pQgvwWGsn3GhbHAgX7g/ihR1y/Si1t7PM9Pn25Q=; b=ku7UTo7U1XmLh6h+8vX/EafElqkzUDT+XuTMoAC1LRAcmZN6vv2Nc7KIKLgneROD8t 1Ho9TOpkVqJZ6G7fwf69sH8Zj+htUf9coIwn0trHMvuz8K2AzaKeCr1eAumKFl93aful S/aKtsv4YYl7FAp8Uh+RXeh+GxfNFxH79kT6nkNTFkAsbD3AmVQ0AleLm/Dfu6nb2ckz b6J3cMAPePkUnkIeCtWjI9o20CSK3p7Y/kD+ivXPiU2iPjrMcfzcDLpuK+ynR+5XO+JX nFxtGwkmDkFitSMAPK2TZiFQbhfx4EBcv3Oxe8Qm+4PW34AMxbqbAQIc2fqpvxRzUors 2cNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=FUSNvCiY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a637051000000b00557447d5721si1721919pgn.768.2023.07.20.16.50.26; Thu, 20 Jul 2023 16:50:39 -0700 (PDT) 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=@linux-foundation.org header.s=google header.b=FUSNvCiY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229534AbjGTWyI (ORCPT + 99 others); Thu, 20 Jul 2023 18:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbjGTWyH (ORCPT ); Thu, 20 Jul 2023 18:54:07 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D1B21998 for ; Thu, 20 Jul 2023 15:54:05 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-51e526e0fe4so1837436a12.3 for ; Thu, 20 Jul 2023 15:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1689893644; x=1690498444; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=icC7qqcxEnMW3yXk8+JIZ8lmrrJx4xPvVXeXAz/l3rg=; b=FUSNvCiYltqWFzXvXJtpActo6xEueREa130OLp1dfviCcbWd/n4kf2fp+aw7l1ckCd M/J9Y6xPWUus8LzMRNC94+7SJmwyYq7sjO0QtPgWXC4mIzBUubdCdviMaTVaLCnpiAJd NsTBXFWpjtHFhdTbiZWn8Pi52gKvRrKluYO5E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689893644; x=1690498444; 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=icC7qqcxEnMW3yXk8+JIZ8lmrrJx4xPvVXeXAz/l3rg=; b=OauNgsZaX8Ew+U4FHFPx+3tVFMBUP/0kOI5zjXJlUakuToQQtznibUeSx2fun379nv FHx0pCdTZD4bngvrEXRne0bSlu8HVrKEZeJDWY8GxaDjdOr3LiUXbsbdaggKtORoAtKt IhO7vHcqWDqYHNTQAVfWeaGce/9z4WQsXv1HwH388mr/4XAgWn8hRzSHbSqcY3LQfz7D wm/GC1kA0KQO+77i0nJx3QQrqzga2OO6MYFiZBDilzDMuueqNXL/a43wHd26wKc17EOZ YWYZaqEYkEHy8UseIy1xlDfl/ZIGM4iY4UKA4X88zW7xmlar3u58p1zYLXlU689mr+FA IVMQ== X-Gm-Message-State: ABy/qLY6GRZMWIW//6IkKBOBmde8YK0m0P7j3O9CjUHxcoOGgOJ3uQrb vEqcY4D9SbMAp7tf+fUGGE3pF+hG8qc9m8XSYnaM7VlI X-Received: by 2002:a17:907:75d5:b0:982:1936:ad27 with SMTP id jl21-20020a17090775d500b009821936ad27mr135099ejc.11.1689893644055; Thu, 20 Jul 2023 15:54:04 -0700 (PDT) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com. [209.85.218.54]) by smtp.gmail.com with ESMTPSA id e1-20020a1709062c0100b009926928d486sm1280478ejh.35.2023.07.20.15.54.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Jul 2023 15:54:03 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-992af8b3b1bso215524066b.1 for ; Thu, 20 Jul 2023 15:54:03 -0700 (PDT) X-Received: by 2002:a17:906:778f:b0:978:acec:36b1 with SMTP id s15-20020a170906778f00b00978acec36b1mr193104ejm.17.1689893643313; Thu, 20 Jul 2023 15:54:03 -0700 (PDT) MIME-Version: 1.0 References: <2575F983-D170-4B79-A6BA-912D4ED2CC73@dubeyko.com> <46F233BB-E587-4F2B-AA62-898EB46C9DCE@dubeyko.com> <50D6A66B-D994-48F4-9EBA-360E57A37BBE@dubeyko.com> <2d0bd58fb757e7771d13f82050a546ec5f7be8de.camel@physik.fu-berlin.de> In-Reply-To: From: Linus Torvalds Date: Thu, 20 Jul 2023 15:53:46 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [syzbot] [hfs?] WARNING in hfs_write_inode To: Matthew Wilcox Cc: Jeffrey Walton , John Paul Adrian Glaubitz , Dmitry Vyukov , Viacheslav Dubeyko , Arnd Bergmann , syzbot , Andrew Morton , christian.brauner@ubuntu.com, Damien Le Moal , Jeff Layton , Linux FS Devel , LKML , syzkaller-bugs@googlegroups.com, ZhangPeng , linux-m68k@lists.linux-m68k.org, debian-ports Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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, 20 Jul 2023 at 15:37, Matthew Wilcox wrote: > > I think you're missing the context. There are bugs in how this filesystem > handles intentionally-corrupted filesystems. That's being reported as > a critical bug because apparently some distributions automount HFS/HFS+ > filesystems presented to them on a USB key. Nobody is being paid to fix > these bugs. Nobody is volunteering to fix these bugs out of the kindness > of their heart. What choice do we have but to remove the filesystem, > regardless of how many happy users it has? You're being silly. We have tons of sane options. The obvious one is "just don't mount untrusted media". Now, the kernel doesn't know which media is trusted or not, since the kernel doesn't actually see things like /etc/mtab and friends. So we in the kernel can't do that, but distros should have a very easy time just fixing their crazy models. Saying that the kernel should remove a completely fine filesystem just because some crazy use-cases that nobody cares about are broken, now *that* just crazy. Now, would it be good to have a maintainer for hgs? Obviously. But no, we don't remove filesystems just because they don't have maintainers. And no, we have not suddenly started saying "users don't matter". Linus