Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5484220rwb; Tue, 22 Nov 2022 00:08:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf7tF31dF7JkCVm4V/W1+4k3MupBWZ59WiVFNNceWfNRkYfn7LkQP3/SAylD8ASbuBOEPeYj X-Received: by 2002:a63:ed4f:0:b0:438:a751:f8fa with SMTP id m15-20020a63ed4f000000b00438a751f8famr21022192pgk.601.1669104511300; Tue, 22 Nov 2022 00:08:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669104511; cv=none; d=google.com; s=arc-20160816; b=tcJdYhLvmXFt9kxYKALCX2aExEW6mRPiSvDnVg8lbw4QaM0JJV7I0Tt+3TjnY7PMhg tldNPkA228YoF7OqeIvZV9dlFMe7p5dKNHy7iAVkwtLK53pS/Cqt48zOB8gcGItooPuO a2qmScE2rMfIWC+TrjZVo4hcbr36h7x1W/3hjuY0IG0jp/uJ3HVq6PojFA+vISK9wMZ5 bLWb4svZ7+aM4mUd7Jpy4tbEdObPsPfkqg+LIQqCQMefQJDoe8MIKEg+GGtCZNWsFHRC Rpl3nk0iIk2KBdeLSNmPIWkhAGd0g4at1SbOSctraMg7Pa5nOvWZN6m/xWpafv9r8Lk2 LHMg== 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=h59ryiMCs2FQd65ugpgIMTexsvSUB1uVySh9oB0AU10=; b=KNb6wPLpBPI5GKkrFZtVUdOjCrT2YqW9XlzFiea/vifAcEOZd05cwqqhGIwimwghpk 7fcXf2z/utOQwrbRzpQHNk2VfYXXGf9BC1UqBRqXwE6s7yekEuYnikc+sHzivlkyfcLY 0Bd3aBdKZjw3WJBFdnAKy2aBDVU7sZATplp0iMhDJWskddipNikOsFz58Uw+wSBTPSSk Isz+maYbfdznkIckcMAcR89yQzfURSTSEf1g32/4ngB/ogM1RRuYzD2gxchMM75pjjhr HdAKQOF6lrvKzyX1yEXY/lKn2hDivDPqeft/dBYmB2XxkHHEhu0qKaB4OefS/77E6Ruw bfMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dneg.com header.s=google header.b=sGp57hkr; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dneg.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j7-20020a170903024700b00188630db249si1072565plh.177.2022.11.22.00.08.08; Tue, 22 Nov 2022 00:08:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@dneg.com header.s=google header.b=sGp57hkr; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dneg.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232291AbiKVIAm (ORCPT + 99 others); Tue, 22 Nov 2022 03:00:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbiKVIAk (ORCPT ); Tue, 22 Nov 2022 03:00:40 -0500 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD04D1EAFB for ; Tue, 22 Nov 2022 00:00:39 -0800 (PST) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-3abc71aafcaso4041927b3.3 for ; Tue, 22 Nov 2022 00:00:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dneg.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=h59ryiMCs2FQd65ugpgIMTexsvSUB1uVySh9oB0AU10=; b=sGp57hkr/+FpiiZ04zLsl0PA+1CdljLGbeo6ITcDfXEQJzdBa1wLCkwM7LeSRr79EE OVhmnOlEcdacYfyLjQ+OPyU9+qEms70bINesDX3r2eWdjRJmlGI5LGpAuzVBvBWopPbX 4J2p+HDFGL0njk3yrG+DHSG3Gh12lyb2f0vddS0Kip/RbeXyUGAZZ83F94sFyzgQMSZn 2/T77fq0hYl71jIhAlD/+Un8+6vq8NTuWwni0KP7aN1q9H82YDKdPLMBdAa8S1cqz4ak iA+2T8ppJDODwQ74ked2zJhSD6NEDLx9qjvJXlrOIFW5AP6r/m63BtDireeFi5+Ts/WD Wu5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=h59ryiMCs2FQd65ugpgIMTexsvSUB1uVySh9oB0AU10=; b=GTm6S259e2sGGiOTtXbBkNTAHZKJJ+V2eDe00e0MZ5KPvcx8nE/rXlMt+ussuwsGA+ h/9iazuN/Vb6tt4Qu7q5roWlGQvnYH7kVjHtG2y6GB+lhkmfdpFIiSSZ4cetM7KhWK3T JGf+0kLGyCcagliaHKPUxSys0jmVVi6A2Xl8ze4uHEqub4EPl3xSbhgUEjWqhMeG9y38 obh7t7zwyiXUWQQQ1kJ2lZhGWqyAmjFfeckKHBdUkwO55qQ/PVu1dE7GlmJVOqJVmEP/ BzgHLOoX+4jOOEGjbp9BnuwOoxX4BKAdcq9jnVFAZH9mpvcyfuaKae02yYdXyTrsQfwo oVWg== X-Gm-Message-State: ANoB5pkPId++BdrRKD+QgnpUNuyALcC8+Ss9Owqx4aAFPyJepl6KUVXg uaXe42y3wphesZ/FXOjEbQS+COEq4bWu4ziHbyASCgWl8OeVDw== X-Received: by 2002:a81:af27:0:b0:36b:efc9:fb13 with SMTP id n39-20020a81af27000000b0036befc9fb13mr4636144ywh.324.1669104038897; Tue, 22 Nov 2022 00:00:38 -0800 (PST) MIME-Version: 1.0 References: <20221117115023.1350181-1-dwysocha@redhat.com> In-Reply-To: <20221117115023.1350181-1-dwysocha@redhat.com> From: Daire Byrne Date: Tue, 22 Nov 2022 08:00:02 +0000 Message-ID: Subject: Re: [PATCH 0/1] Fix oops in cachefiles_prepare_write due to cookie_lru and use_cookie race To: Dave Wysochanski Cc: David Howells , Daire Byrne , Benjamin Maynard , linux-cachefs@redhat.com, linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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-nfs@vger.kernel.org On Thu, 17 Nov 2022 at 11:52, Dave Wysochanski wrote: > > This patch should fix the oops seen by Daire while testing the latest > NFS netfs fscache conversion patches [1][2]. What follows is a detailed > explanation of the analysis, mostly for reference and in case any of > the patch header is unclear. I can now confirm that this does indeed fix the issue I was hitting - it has been over 4 days and I have not seen the crash that I was reliably reproducing at least once a day. Many thanks for tracking this down Dave. I will try to switch over to the v2 patch sometime this week but I don't expect a change in functionality. The important thing is you found the place where it was going wrong and why. Tested-by: Daire Byrne Daire