Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp734485rdb; Thu, 30 Nov 2023 17:51:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4X0B8ef7jcS6lDpxXOnVtVkqrmfRXN/SJEGMHA3KHGP9as97Yr6DWWO8c+UVpTypJg8Q7 X-Received: by 2002:a17:903:1cb:b0:1cf:ad5f:20ab with SMTP id e11-20020a17090301cb00b001cfad5f20abmr27502409plh.19.1701395474334; Thu, 30 Nov 2023 17:51:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701395474; cv=none; d=google.com; s=arc-20160816; b=jZaMu8A6+LI34kR06Y7i3aBuy9n8bzcJYuqcqdUQK5tTUS9GltPdp00e2sQ8gdqdkO t6cuh5WrjJWZNLoDT4/qSYGRh96UdNOaaDMqs/ZuqQM0JpINh5kkThll7rXgP+Mpzyp9 d5vTlfuUs4JVjz/BO+vz/Mvs58S4mEKmfgCTUcsyqzZ/0yIBHLgURoquAiTPP9zIR2z6 Kkq4vjc/M+NBJIqrmWs4qJ78sznKH9K31TKwXCmTeYgdxoX2gsmW5KVENFW3pPI/paji 7XIwvY3UMKxaYAU+0gbPCxFBPT94ZxSSlu+hoSiqujnDCydx6gmBGPzwHTX5+/qKH/a6 +2Dg== 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:dkim-signature:date; bh=VHXedy8xbcqkzZT8Ih0cSVGgu9ZBkB3FcdSy3+7Tduc=; fh=u/tTS80f3gOJQw/A02dawJRYUplI+QlmBwtclso3hIU=; b=JHLPPnZ2s0NEMnMzzVZ/7fxiRnpu7nw2ZWcM6jFt0U/9dYPn/Ixn+PZVcrwRX1TBIK MbZZch/nnq+LSVwznYgrUQ0FxFbQDMWQBope3t5LwZDp7BS8KYnF5R+EBkbijaVBnOMP BLfWgHprUhheJK9BxKLpc4UOvc0kh+/7Mwh2jgUmB7L8yIiTh8y3AGRWYTJsxB0jWa16 VyQyfgwqAp6Q4dbI8hn4OoD52RlCnlz1v7evI5pt64OQ8KRQ1PMwN9/Pl7JJvL2L22Zh Y+4HvvYNHj5ZFkE/Dx1OLWSSevd2RuB+SlFoDNKlk55syW9yAwCHzhOh4MAPVMZmi73w oPpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=nzRNX2Om; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bc9-20020a170902930900b001cfc03c0e88si1516988plb.579.2023.11.30.17.51.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 17:51:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=nzRNX2Om; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1CE6782E6C31; Thu, 30 Nov 2023 17:51:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbjLABuz (ORCPT + 99 others); Thu, 30 Nov 2023 20:50:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjLABuy (ORCPT ); Thu, 30 Nov 2023 20:50:54 -0500 Received: from out-5.mta0.migadu.com (out-5.mta0.migadu.com [IPv6:2001:41d0:1004:224b::5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B86C993; Thu, 30 Nov 2023 17:51:00 -0800 (PST) Date: Thu, 30 Nov 2023 20:50:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1701395458; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VHXedy8xbcqkzZT8Ih0cSVGgu9ZBkB3FcdSy3+7Tduc=; b=nzRNX2OmMBP2QjrEX775fBmNbNRk4jTWa6HbTH+TzPX47fcwHcRKRpebPLIMRkX0as4X1S nR7CfE2ruL7L/qRuy/F47AQ6UCe98mFXPhFLFhDb9bhSpFxPr8VUkMueV276ssnCvsQElS 5YFyEyChRH0HZoEAfGEyTq0bDBRQrVs= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Daniel J Blueman Cc: Linux Kernel , linux-bcachefs@vger.kernel.org Subject: Re: bcachefs page fault oops after device evacuate/remove and unmount Message-ID: <20231201015055.pn5qqbsk42jlfsoc@moria.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 17:51:11 -0800 (PST) On Thu, Nov 30, 2023 at 08:47:33PM -0500, Daniel J Blueman wrote: > Hi Kent et al, > > On upstream bcachefs (master @ evilpiepirate.org/git/bcachefs.git) SHA > f8a1ba26, I was able to develop a minimal reproducer [1] for a page > not present oops I can provoke [2]. It appears we need further > synchronisation during unmount. > > Let me know when there is a patch I can test, or for debug. There was a device removal that was just fixed, I've already sent the pull request to Linus but in the meantime try this branch: https://evilpiepirate.org/git/bcachefs.git/log/?h=bcachefs-for-upstream If you still hit it, I'll turn your reproducer into a ktest test and hunt it down.