Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9704143rwp; Thu, 20 Jul 2023 08:34:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1gUrJboCkIlevynNmKuhIjz0j3AKdmUj2ic6cNylTveoGJI0f7QiJj8OpkyMN8GemoAdx X-Received: by 2002:a17:906:3ed0:b0:96a:2acf:61e1 with SMTP id d16-20020a1709063ed000b0096a2acf61e1mr4985309ejj.64.1689867250455; Thu, 20 Jul 2023 08:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689867250; cv=none; d=google.com; s=arc-20160816; b=YNMmEYsy487I8N9cuGjHaDcndDEk2QYIfeNZulFYBWsl/D8YiwnWhg4CxWYZkUmXvn 0OKcTBcuSirB4t2mR0pLpBCeuU7I4om+bOLjsuWtXt+amrH0S1uwS6S0uJyhri/l+JOc hpn2R3S6Vlx+kQV7d8wJRyjjODw8+h44iB6x4pbg02cfWHE0FGzm/UOyjjdPAGNw+kp7 sGHU7dPWlMbp8gWhZjmNaxs2wwFX82bKwPS0FgDTt5ONJbWaGcrFwrrxj870WZV4lrc6 dZy9z4keLQwgBdJiIvOoTf9sjZukJrRrRC9Lf7cqHBXAisG9Et4AqzfoGCK42yctZiCz NN2Q== 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=ueWLYJ0Zpp28j5V5QPthaLz88fH+2254dOYDnHgAd5M=; fh=LeI55mjboCHf9rsWQ+CkzqtiwPQUAoOGKan2z+oNvx4=; b=uLQabG99E25PvLJ45ckT/7BwpI9Ne/XvXfTcO6qvADojPE6D8V9uWG9s15OJbxubxY vHK3UJKKkAlKE9s85THmy6iU/fm6x2dlDJylKY2s40zQ5smu/hXyhecBl73xvtJMN4N/ YIg0HplKIO+BpSbfwGIN1iCH5MwEgPyuDlWT+3gfIsJLL8ViL+PjyD03J+s3FHfdxGdv H0KfDkfRQ1UgEyhejC2ZXuQ7UeXP2WjRo1hDNq9Z7hPlhK7R5wGDifdsXt0mQlGve8y4 Rbyt3yurPumCIFv/oHwCrw7JApHPG56JDfJUHf8jpS/MXUg7l+PzviUxtf6TbjF2YIsW gRWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=NMSbGUMp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rh6-20020a17090720e600b00992169858f2si872072ejb.3.2023.07.20.08.33.45; Thu, 20 Jul 2023 08:34:10 -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=@google.com header.s=20221208 header.b=NMSbGUMp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbjGTP2T (ORCPT + 99 others); Thu, 20 Jul 2023 11:28:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231234AbjGTP2R (ORCPT ); Thu, 20 Jul 2023 11:28:17 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAB94189 for ; Thu, 20 Jul 2023 08:28:11 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-51e24210395so13759a12.0 for ; Thu, 20 Jul 2023 08:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1689866890; x=1690471690; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ueWLYJ0Zpp28j5V5QPthaLz88fH+2254dOYDnHgAd5M=; b=NMSbGUMpK4C+K0lUFpR4U4mRLU2BGKqgVgy3KIZICDV9XOFW3qVvqLCVSIRLoocCJ3 zx5HwTBJWP8G5Ukq8j3RLc3ZxO0nz8qfTO6pkgHoVa0NAJZnrNOzWYmTAZc3g5k8jc9c iqVtzrXFOKBFRiiZT8EJUMrIHV0PD2TU4a8YTQv8tFlSjwl7ytGHQbD0ou6BXQKME+TL BtoGu9apQZyLEmd78jSKxhl3jqft/NQXl7t+QYT3CmxUz/rAm4ZrIyar2PlCBE1Ql/gR /H7BUkFDgWCQRjPb9iC8bL7hDMohAHQYqjusxGEDOGW8dfxV9185lWbkRIFLsOLvtJiz D8ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689866890; x=1690471690; 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=ueWLYJ0Zpp28j5V5QPthaLz88fH+2254dOYDnHgAd5M=; b=PqdOwAkz/Ni8aTqsX+1VCVRFwqdc6vxpmcGcmbypz9LnxRn6kOB1yap/1UlWms383/ WVEiQAKlRaV61Fsk9j3T7RYcJh6GBZORjq8mRYbxhuxg+tcVEs7hiRP39XfPQpgvWZbR isv+9hPgj/zsDnoMO620uPR9D6td5Btc3si2rbbK5GQEhuUwSl/3xmLeYguUspIGpiqX dVVpjBclZ1K/ksUEMTQLu5zhBfoHwNLyytayRmkZ4SqKorohK4LIpsED/m8/5+Jn8oZ7 FvJrcB/pAVYZE2Z5eScgiPJn5g1Azz5ZCtWOuG+ppL2DgBvoiNfAUsqstbTT7AQRsuMm v7cQ== X-Gm-Message-State: ABy/qLayxqpTzau70vWcqslQOO5I1Yfjs+UOiCJlIouDeHbSFEfencsy 6XV7n/zLxGsLCH3GLMbH27qkVAnFFCc+8PxvAgbV+Q== X-Received: by 2002:a50:ab5c:0:b0:51e:54d5:50c0 with SMTP id t28-20020a50ab5c000000b0051e54d550c0mr113732edc.1.1689866890072; Thu, 20 Jul 2023 08:28:10 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <50D6A66B-D994-48F4-9EBA-360E57A37BBE@dubeyko.com> From: Dmitry Vyukov Date: Thu, 20 Jul 2023 17:27:57 +0200 Message-ID: Subject: Re: [syzbot] [hfs?] WARNING in hfs_write_inode To: Viacheslav Dubeyko Cc: Matthew Wilcox , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, 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.