Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3857842pxb; Tue, 19 Apr 2022 11:12:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6i5BfUVBYAD9yTzVp7xDnn4XXEcDtXcOloWRJlampPUBOJo/hSvDd7JfyGu9Aes0eeS5g X-Received: by 2002:a17:907:1b13:b0:6ef:6e01:bb28 with SMTP id mp19-20020a1709071b1300b006ef6e01bb28mr14581776ejc.606.1650391932071; Tue, 19 Apr 2022 11:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650391932; cv=none; d=google.com; s=arc-20160816; b=vWq8Q2jMwZtEkwpF6OxLgzv9DqPRwtqGgZSvx/1mYpntwm27tGQM0YpdXMD8tavnlM JbBpKgN2mul+q9eGibhyL2bMl0FgMkTMIJ1ZnahOKKdf1N6SkxNdCGJUUdILwz6fkL6J DNBQfSyKboVu7omXYyxWWKZmGcb6hG3GucGxZLued6zZTcDaKQw/UV1svVKFgny/J36h zo6bWyprp3W+0sCruxwsM3YH9rX1sdT+mcjdnkIFoWYT6v3hYW73yqrJRTQt3SignTUy TFiS2ik/YigAgjCyQuBbtatEV7MXy2BHlOYNwqzNFGKT0KfvhJ4Tv9Zdm8NQFtkYo77W tDbQ== 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; bh=0HTDrYZh1UkZJvKemsrbvUuWp1tEks06zaFUtnOf3bc=; b=gKepLIZBmQjt30fyHd0gNShPEArP54RVDBQMvRxZLu/clnXfDyOsoGev8vP039PXIo bpBZ21JXpMAS4iTYfRG740QSHKwbJ2+bdaegCqZL1yb8mkWIdxvDuTfkeS0ZWhaJRCbC cZ+pqVtSiNQ6kCToZ2Y+4UiAzmrvly2ZRhsqvOj2Ezu/5SCuAi1UObwuUY7gaSDMnIeV mli1xVBly7tZ7xOIt/Yu+1SQVd8ZFCrXz7LPUU0xgQq1+IP9rQlBbwf89zEKbtjKlQhE Wa6SH6nVTZrT1Fi/d4xyHgMpSpNadQFVqCfV38k/G/g4cTjdrdtkaplVuwDmD5lSaImR jNrg== 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 qw8-20020a170906fca800b006e886e43fa2si7873756ejb.664.2022.04.19.11.11.48; Tue, 19 Apr 2022 11:12:12 -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 S242583AbiDSQJX (ORCPT + 99 others); Tue, 19 Apr 2022 12:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354416AbiDSQJN (ORCPT ); Tue, 19 Apr 2022 12:09:13 -0400 Received: from nibbler.cm4all.net (nibbler.cm4all.net [82.165.145.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C91D3B018 for ; Tue, 19 Apr 2022 09:06:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by nibbler.cm4all.net (Postfix) with ESMTP id 207ECC00F4 for ; Tue, 19 Apr 2022 18:06:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at nibbler.cm4all.net Received: from nibbler.cm4all.net ([127.0.0.1]) by localhost (nibbler.cm4all.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UFLPtLPfCYuk for ; Tue, 19 Apr 2022 18:06:20 +0200 (CEST) Received: from zero.intern.cm-ag (zero.intern.cm-ag [172.30.16.10]) by nibbler.cm4all.net (Postfix) with SMTP id 01C7BC00DA for ; Tue, 19 Apr 2022 18:06:19 +0200 (CEST) Received: (qmail 26839 invoked from network); 19 Apr 2022 21:56:21 +0200 Received: from unknown (HELO rabbit.intern.cm-ag) (172.30.3.1) by zero.intern.cm-ag with SMTP; 19 Apr 2022 21:56:21 +0200 Received: by rabbit.intern.cm-ag (Postfix, from userid 1023) id C913A460F19; Tue, 19 Apr 2022 18:06:19 +0200 (CEST) Date: Tue, 19 Apr 2022 18:06:19 +0200 From: Max Kellermann To: David Howells Cc: Max Kellermann , linux-cachefs@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: fscache corruption in Linux 5.17? Message-ID: References: <507518.1650383808@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <507518.1650383808@warthog.procyon.org.uk> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 On 2022/04/19 17:56, David Howells wrote: > This is weird. It looks like content got slid down by 31 bytes and 31 zero > bytes got added at the end. I'm not sure how fscache would achieve that - > nfs's implementation should only be dealing with pages. Did you read this part of my email?: On 2022/04/12 17:10, Max Kellermann wrote: > The corruption can be explained by WordPress commit > https://github.com/WordPress/WordPress/commit/07855db0ee8d5cff2 which > makes the file 31 bytes longer (185055 -> 185086). The "broken" web > server sees the new contents until offset 184320 (= 45 * 4096), but > sees the old contents from there on; followed by 31 null bytes > (because the kernel reads past the end of the cache?). My theory was that fscache shows a mix of old and new pages after the file was modified. Does this make sense? Is there anything I can do to give you data from this server's cache?