Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9859673rwp; Thu, 20 Jul 2023 10:42:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFKEth0g2L7oxjwTEo0tt/DMxzYtCxz2Bw55e4KfSmQUVOKkTCMTlDvhnDAyfnQpC0Mt34v X-Received: by 2002:aa7:df18:0:b0:521:7417:1131 with SMTP id c24-20020aa7df18000000b0052174171131mr2357583edy.15.1689874951150; Thu, 20 Jul 2023 10:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689874951; cv=none; d=google.com; s=arc-20160816; b=Hq4794FlOmn995BVIyzOGZ75GR/yMJD2R+uNrHWbKT8y+msf/OkdwQqvsq1jbF9+Fv SmOG1Poin8EwS7mdN6QbH4o5OpUHoMYv7yMriVZB49/PVdO/JNBcQ3gfycGyr3wUAtMx IQHRvphxQmhRBgLiCpkJdPUeeXpM9jlG48Smm2Ek2EfTXFQ+pIT1U7W3tQbp92+Hs5lM AkG9EQdhaa78Wz5h1s3OX9ZAEIEkywV7z+I9Fln0q7RcW1pmX6w2AJCrvP+bJ40aHwOe TIJwlvU4FQSuOU+GAqTlzmEry0hQJC36rYOuf3qb2XdIl1VyXvHnWaaIpMdF6MIMat1f sgIQ== 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=kZsL+fRMiTUhIF6cbkchAwMMymJQNGnAWsHwN+ewJ0E=; fh=RDySAOR7M9kuPghC6z2/bYLv75CLdJkYrfqfA85uY1E=; b=zXR2t9+RonCBwPLaOZK8YikslMskaPWE+gZs7a5ikem6GLkx6DFEpJIeszGsdqFRG0 3w7SmO/9FztCXN09PdGKJ5ihIOqPSyVs4GvikRix53JDKT2GpFJ+aht0cDWwJjfmT4VO 9CnsBCV3QJOFHWTFeqkZ6JJvycjutb3kMeGjtcRAbjZnAAoFMOVcuQoA4eVxRyHvgXBH dSZ9VFjNYBQh1SjNvmlGmpiEkhHsJ1eEQ8beY7J6HkqFIyez1PRcLHFqV81Mes2kbrS/ SL09O12pMxgW31YOsalBxO/x4pP01qAAPznGB2Tx41ebs8+7h2C66xnu7HfBoOD50hs7 DSTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=njeSPSpg; 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 k12-20020aa7d8cc000000b0051df10548a0si1015082eds.600.2023.07.20.10.42.06; Thu, 20 Jul 2023 10:42:31 -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=@infradead.org header.s=casper.20170209 header.b=njeSPSpg; 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 S229863AbjGTRaf (ORCPT + 99 others); Thu, 20 Jul 2023 13:30:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231204AbjGTRae (ORCPT ); Thu, 20 Jul 2023 13:30:34 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38E132722; Thu, 20 Jul 2023 10:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=kZsL+fRMiTUhIF6cbkchAwMMymJQNGnAWsHwN+ewJ0E=; b=njeSPSpguzsHoVcLskuzq3zqvP fh6yPSsenkfbn+nzasVka6Xcr/4vmVhShCMCWCwccY/VDY/4+EqZ6a08xnubBsxwKl52NFXncUna4 neUTaeTjchLENIA5+N7KASwQHi+8BunPa3WVG3+qM2zJZS/VsHgKNdC3WNzT8Z0ZdCyCAAa63J5HO odj5alfVy+NbSyQkfnrweVtwROQS+w3gW7W6y/yPIhdJMID2yZo2if0EGxr+MMkGK/ewsl7+0JUUO Lic2g6Q5iNJbymXPLx0wql6EaA2fSSUuHxU3BlG3N8SbfsK71rrv+19uHkhsEycQKptguXZYHDf72 A53SA8Eg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qMXTc-000IDQ-47; Thu, 20 Jul 2023 17:30:08 +0000 Date: Thu, 20 Jul 2023 18:30:08 +0100 From: Matthew Wilcox To: Dmitry Vyukov Cc: Viacheslav Dubeyko , Arnd Bergmann , Linus Torvalds , 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 Subject: Re: [syzbot] [hfs?] WARNING in hfs_write_inode Message-ID: References: <000000000000dbce4e05f170f289@google.com> <5f45bb9a-5e00-48dd-82b0-46b19b1b98a3@app.fastmail.com> <2575F983-D170-4B79-A6BA-912D4ED2CC73@dubeyko.com> <46F233BB-E587-4F2B-AA62-898EB46C9DCE@dubeyko.com> <50D6A66B-D994-48F4-9EBA-360E57A37BBE@dubeyko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On Thu, Jul 20, 2023 at 05:27:57PM +0200, Dmitry Vyukov wrote: > On Thu, 5 Jan 2023 at 17:45, Viacheslav Dubeyko wrote: > > > On Wed, Jan 04, 2023 at 08:37:16PM -0800, Viacheslav Dubeyko wrote: > > >> Also, as far as I can see, available volume in report (mount_0.gz) somehow corrupted already: > > > > > > Syzbot generates deliberately-corrupted (aka fuzzed) filesystem images. > > > So basically, you can't trust anything you read from the disc. > > > > > > > If the volume has been deliberately corrupted, then no guarantee that file system > > driver will behave nicely. Technically speaking, inode write operation should never > > happened for corrupted volume because the corruption should be detected during > > b-tree node initialization time. If we would like to achieve such nice state of HFS/HFS+ > > drivers, then it requires a lot of refactoring/implementation efforts. I am not sure that > > it is worth to do because not so many guys really use HFS/HFS+ as the main file > > system under Linux. > > > Most popular distros will happily auto-mount HFS/HFS+ from anything > inserted into USB (e.g. what one may think is a charger). This creates > interesting security consequences for most Linux users. > An image may also be corrupted non-deliberately, which will lead to > random memory corruptions if the kernel trusts it blindly. Then we should delete the HFS/HFS+ filesystems. They're orphaned in MAINTAINERS and if distros are going to do such a damnfool thing, then we must stop them.