Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4640214rwb; Tue, 6 Sep 2022 10:15:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7lY7hXKQGJgenxJOwSjoRTid3CbmxBbYaxfHv0DLudoyXTL0La5qL/xRjYlG28FohTgQgd X-Received: by 2002:a17:907:2bf9:b0:73d:dd00:9ce8 with SMTP id gv57-20020a1709072bf900b0073ddd009ce8mr38002097ejc.151.1662484507372; Tue, 06 Sep 2022 10:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662484507; cv=none; d=google.com; s=arc-20160816; b=Rn0bHJrgXmvv9FuzUzICFjXVThmdu2bWsTPzPot+8+TtZ82W0NqhfiDby4ZfjS4K1+ B+RftXeOFeS5+gkdCh6s88OOnEnZOSw2Vl4bHmOC+3VUJ16a4hvxee522icKulMQfYNn AUKV4baJVUCUqc32wO6xLId5v4BfpzfJnsf68lqSPIFill9xsSDYtAz405jeUxLhinT/ owlwKmaeoJcSO9CmoN1w66NQWxFGjCyccZ1My/8VxRSeWrm1EzumXjPmA8uRRXWQE0gR qW2n9hm09mMZl0uLCzowaLMVfAjwkAKDQEEPmTjiGMOg6lCc/JQdpmJSovYPeqiTyyVm yKXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature; bh=DLEfylAdo48uimtiFoPpZyZD3hmI1oBkd0nI4lifo5I=; b=ZA2zYeU6CXrAOXB1YB5jbL2Msj7g6IyGAwa9p9CN4R6+n6okkhJGefxH+AoDRrBcdr 9UJIzG0haovbHJuVnJghyc6uaKOvbHgBpzVB0D/rcpssFHzFEbePm4CcwIjLbbKifPFV Cz2D38a/OceM6eKUO1uPLmTZTB118M8AjmjfZeIpErAlIhkAXL2Lz9MDDHNy8oreLdml BWtew7THudugT+xulMQE0cz+K0XZprYXrDcFYcoc0i84re+OR4zSxwWGlPjMgiYk1G5P i47Nvrzrv8U6D5ninC7rONnlXS2pGKp3Nc+rUUdpd+9Cg6vJceL2dAyv3mg71zFGX+TP wFjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GckO6Dab; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u11-20020a17090617cb00b0072f6a9d159dsi9319932eje.173.2022.09.06.10.14.41; Tue, 06 Sep 2022 10:15:07 -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=@kernel.org header.s=k20201202 header.b=GckO6Dab; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231941AbiIFQjd (ORCPT + 99 others); Tue, 6 Sep 2022 12:39:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233581AbiIFQi2 (ORCPT ); Tue, 6 Sep 2022 12:38:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 989EBBCD for ; Tue, 6 Sep 2022 09:16:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A4170615A7 for ; Tue, 6 Sep 2022 16:16:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB517C433B5; Tue, 6 Sep 2022 16:16:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662480985; bh=8WcaE0tiCNvuuwz8DZZ6kQiMgY1Udyvw/3H0BR4qL04=; h=Date:From:To:Cc:Subject:From; b=GckO6DabkKG7qGxm3/LoYg2wK75NSR1IFK7DOkEqi1HMfbsyqZ4V6eqpZ4GNJvAsr kEf5Zy9c1l9SQ68aZTh0wJ3qfVlDjj2dTKgNwD2MchkefmzXGBDnQMooi7/CNvRZMM Psovo/bRSch79Zwo4gp9hjMmKAAdCuhjkRf9XqZUV9ohyP5EZBjgUnJpcAKdF4j6Ah KYPQ4A7paV5wfTmVi4jIqidlmmYlh7C5H6iEvUpoYGe2sOeST9tEiYpzjGYNj0vkWh jLfLmIa3SVFan2IzJp67qli/+26nFYrNsxjwaz7bznl3xVCLleQ+E3kdgiErYgupi5 YGqODi5M50ijg== Date: Wed, 7 Sep 2022 00:16:19 +0800 From: Gao Xiang To: Linus Torvalds Cc: linux-erofs@lists.ozlabs.org, LKML , Chao Yu , Yue Hu , Sun Ke , Jingbo Xu Subject: [GIT PULL] erofs fixes for 6.0-rc5 Message-ID: Mail-Followup-To: Linus Torvalds , linux-erofs@lists.ozlabs.org, LKML , Chao Yu , Yue Hu , Sun Ke , Jingbo Xu MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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,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 Hi Linus, Could you consider these three fixes for 6.0-rc5? One patch fixes error paths in fscache backend. Another fixes a use-after-free on UP platforms whose path is now dropped directly. The rest addresses potential wrong pcluster sizes for later non-4K lclusters. It should have no effect on the existing fs images but the fix is small and straight-forward so that it'd be better to be fixed from now on. All commits have been in linux-next and no merge conflicts. Thanks, Gao Xiang The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868: Linux 6.0-rc1 (2022-08-14 15:50:18 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-6.0-rc5-fixes for you to fetch changes up to 2f44013e39984c127c6efedf70e6b5f4e9dcf315: erofs: fix pcluster use-after-free on UP platforms (2022-09-05 23:23:30 +0800) ---------------------------------------------------------------- Changes since last update: - Fix return codes in erofs_fscache_{meta_,}read_folio error paths; - Fix potential wrong pcluster sizes for later non-4K lclusters; - Fix in-memory pcluster use-after-free on UP platforms. ---------------------------------------------------------------- Gao Xiang (1): erofs: fix pcluster use-after-free on UP platforms Sun Ke (1): erofs: fix error return code in erofs_fscache_{meta_,}read_folio Yue Hu (1): erofs: avoid the potentially wrong m_plen for big pcluster fs/erofs/fscache.c | 8 ++++++-- fs/erofs/internal.h | 29 ----------------------------- fs/erofs/zmap.c | 16 ++++++++-------- 3 files changed, 14 insertions(+), 39 deletions(-)