Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1651114rwi; Thu, 20 Oct 2022 15:39:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4xDmTCLA3XAK8IJQA/kE6fbCDFt/RCHx5CG/UbmD2k05GHAaSjCMln/gXVXbaLQ2PCZmeA X-Received: by 2002:a17:907:96a0:b0:78d:dd45:a6d4 with SMTP id hd32-20020a17090796a000b0078ddd45a6d4mr13041208ejc.643.1666305584847; Thu, 20 Oct 2022 15:39:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666305584; cv=none; d=google.com; s=arc-20160816; b=He6HCuUlmj/T0ugZFj/wYQlatkVxkoBsIQFzSpKCtpuGsw8BQNDbjklydNdAnrx8j4 ufVxWQ3DyUBGLHG6/pKy1/hgipoPzbWtCTOTdug9P4q4sak/U27XHNJSRBg55z7KlR2J l7M7fXkVFJ6k2dNQvOgL9hQsdsKlCtjduSc0sv0VKMXHoTmNX2rDSG9Zb95OTy7ylQjU cRGBnGlc/vh7ew+/cQ88CbO6MRSaHP5q5WCRN5XQ93TaFzwgBM6rn/kuLx22+JAt/ZNE 6LAOYMlIOrWQ4If+3Nwa1Gm1JK1hlGImQoubjeqXTlMHv1/ydVVQiDJJtSHWQKw8WKx+ LIQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ynTqdZ/I14jl8vkxs3ZNy4d1MTFNfdGvmTSzCUyf9mA=; b=GOw5r14TJ5/S3IGi1bJX9YTRPSaR9Fl6G665C96DrDSJRZG9sM7PiBKZrn8j3GnQnC yXqAzW0jjBzLZRzWYj26yoKnPO1V1XwaUDEp6sIn1u74Qc7ITWqSE22gZRGUwP7Kc4az K8DsP++nn0kVJ0ZX4BuqtJ5L56mBwfIGCrT8VP0NpYpeiXVpTcTWOYI1YJc5T+xYmO65 K1Xr72lKjgso6HCKE1d/giGfjR2tdnlAmBS6COk6gFFYwqT+KAzCj02qDsQzfut86dSB m7yfFWfgdOKtlHXgcnc+SPK3goWTSk8ixzYInS+yN+WJ42w6va16Z9h4MBKXA5qCaa3L DEfA== ARC-Authentication-Results: i=1; mx.google.com; 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 o14-20020a170906974e00b007919388d2c6si10470906ejy.357.2022.10.20.15.39.20; Thu, 20 Oct 2022 15:39:44 -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; 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 S229583AbiJTWge (ORCPT + 99 others); Thu, 20 Oct 2022 18:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiJTWgd (ORCPT ); Thu, 20 Oct 2022 18:36:33 -0400 Received: from p3plwbeout15-04.prod.phx3.secureserver.net (p3plsmtp15-04-2.prod.phx3.secureserver.net [173.201.193.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25E261B65C0 for ; Thu, 20 Oct 2022 15:36:30 -0700 (PDT) Received: from mailex.mailcore.me ([94.136.40.145]) by :WBEOUT: with ESMTP id le9MojL9sA2xwle9NoEYOU; Thu, 20 Oct 2022 15:36:29 -0700 X-CMAE-Analysis: v=2.4 cv=Z5UpoFdA c=1 sm=1 tr=0 ts=6351cd6d a=7e6w4QD8YWtpVJ/7+iiidw==:117 a=84ok6UeoqCVsigPHarzEiQ==:17 a=ggZhUymU-5wA:10 a=Qawa6l4ZSaYA:10 a=yWIVPUuzvU3vGxsu7U8A:9 X-SECURESERVER-ACCT: phillip@squashfs.org.uk X-SID: le9MojL9sA2xw Received: from 82-69-79-175.dsl.in-addr.zen.co.uk ([82.69.79.175] helo=phoenix.fritz.box) by smtp12.mailcore.me with esmtpa (Exim 4.94.2) (envelope-from ) id 1ole9M-0006zQ-4P; Thu, 20 Oct 2022 23:36:28 +0100 From: Phillip Lougher To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: hsinyi@chromium.org, regressions@leemhuis.info, regressions@lists.linux.dev, dimitri.ledkov@canonical.com, michael.vogt@canonical.com, phillip.lougher@gmail.com, ogra@ubuntu.com, olivier.tilloy@canonical.com Subject: [0/3] squashfs: fix some regressions introduced in the readahead code Date: Thu, 20 Oct 2022 23:36:13 +0100 Message-Id: <20221020223616.7571-1-phillip@squashfs.org.uk> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailcore-Auth: 439999529 X-Mailcore-Domain: 1394945 X-123-reg-Authenticated: phillip@squashfs.org.uk X-Originating-IP: 82.69.79.175 X-CMAE-Envelope: MS4xfIFzlIKSW3XYzndlyK3M7JgxAcxICOuXXO8radpldVOTlbDE48hfp5jDgl6yt923e2ox6Nh+FQoyOjMM8f4Xgkf158Hv9r5L1EQRjwYZQ0h+CDdtUBHp /v2aOlUjHPMvSbqATUJCDv5y3L54DwRC5kPir9xrqCw0SV6mAmGiUw/fPL3aA5j0kT+PFYN0lm6GA5nQUMSz+FqhQhf2AocFgkE= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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, This patch-set fixes 3 regressions introduced by the recent readahead code. The first regression is causing "snaps" to randomly fail after a couple of hours or days, which how the regression came to light. ---------------------------------------------------------------- Phillip Lougher (3): squashfs: fix read regression introduced in readahead code squashfs: fix extending readahead beyond end of file squashfs: fix buffer release race condition in readahead code fs/squashfs/file.c | 23 ++++++++++++++--------- fs/squashfs/page_actor.c | 3 +++ fs/squashfs/page_actor.h | 6 +++++- 3 files changed, 22 insertions(+), 10 deletions(-)