Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1483533rdb; Tue, 30 Jan 2024 23:00:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNgwtu1wnexyzPH8lP2Y5cY6FiQ2U6T8JQh80SEHhuLfUrfrpfELQp9QxJev93aBmEBdfi X-Received: by 2002:a17:903:2109:b0:1d7:2851:e21e with SMTP id o9-20020a170903210900b001d72851e21emr722281ple.25.1706684405260; Tue, 30 Jan 2024 23:00:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706684405; cv=pass; d=google.com; s=arc-20160816; b=xbRGx0BBjkAmt8VmwJORYSpanntvAMRwplhE2FHhd1FnlWUwSJJ4YX/3VsMxsXBU/p OyFh8K2RuhPLM2w3h+c5uijEVmY6gGrOnlTAGjtFJFjLMRw2DrZsgQLo2R7rXNvZIreg zX3aOamfCvZf9NYnIPsVSsjU9eucc9omejHRh86e2DBn9cKpO6gYzhyr+OdU7Uhijs+X 9HWC/RQyPLACpYgKu469lXzjL3LfHVUMV+knZBtbe1TnxurGLdOHrToP7RcCeLIljbOp IrGygk9RDqHuj0zEgM28a14fFvhM1TgjAaRYJPtsOaGPfTNiZav4abtn/QnETB3bso0t H7pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NIDqFzAxt4YZhctftXJOdlnjyHvxqbwYfAJo9MG22ew=; fh=loO+WshdelY8t7o98JLvMBuuJ0S3kR6ZdDuvslX8wRY=; b=BEweAkKoNDbo+sWCH2kohyCm4yr9v5AkMPZfhcmO8PiV3Ig39MybY03dUFsoJNrdjf bq8w9eXVhez4XZzCEZQdXytlbsLTggGNbxMOLYztqoJ8ZHPM0rZ9kkqAnMjQm1BOKyXR JCVRE2MhEisnMm8irGTkzXgRrhWVyeRR3bm/nX67cjbNP4R6X3AUxmoavRqWJpU6wWyU k90Ohi2msDB7Xtw4KETo+ofJGsFkDxdUkjVUIsbhr+FYM8pKVM86DDLO4cWdxoHNgrBg fg1q8N5LvEBVtnl/aa7e7Oo+5OZyIjR8c2YgTJ/DMa0+1BkOZ89fBSr6UY40yw8avXly dpxw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=EeBfOmAf; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-ext4+bounces-1042-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1042-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b9-20020a170902b60900b001d71a0a37d7si5828909pls.542.2024.01.30.23.00.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 23:00:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1042-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=EeBfOmAf; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-ext4+bounces-1042-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1042-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F41CEB25441 for ; Wed, 31 Jan 2024 06:18:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 351383E499; Wed, 31 Jan 2024 06:18:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="EeBfOmAf" X-Original-To: linux-ext4@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 551A13E48E; Wed, 31 Jan 2024 06:18:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706681888; cv=none; b=IkxtB277GkbL7tYcVwUL551sMZGVlKvTK3tMzLAILU8v4CPJyLEOe7y7UyrkJWdsrY6fPtGSidWvZA+N+UeIaBRQrUDZDgS8uZT1QR3S2edB1T+AvWgrqixjR/ml/KIb3zG+uGw6cMkKBkaesGou3/6F6FXF++IIdbjTJB6YtmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706681888; c=relaxed/simple; bh=w3D/s0j2doF3zwzpY1z9z6nuXxX4WiecNK9wpzgOcnk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Tipl8EQux0TcJ0UVPoEi/Aefi6Sq/uIdXgjFlnWuXpcYLSc3fTsWG0HC4/XbAibhngdyBAPg35DuPnr5xNE4GrufhAEhIbxKPOQe0Ffw1wrlOAfXDxFFy1a7STn6QhcXWXZr+2SWayIZz67dP47pWmLHaG6WKzQRYHs5E8yk9lI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=EeBfOmAf; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=NIDqFzAxt4YZhctftXJOdlnjyHvxqbwYfAJo9MG22ew=; b=EeBfOmAfrFbOhPnrE2ZDIiIlng 7d43LAKcT5snLNncF7joHHJWKu+g19gwKbl5GDQLPzo0dp5yhNNgcYbUxlFLsRf/2BRF1MIvU+W8o XlnwX4U7mXYFOchn1OuRh7YJbTOJhdkZUgkEgvcrTPZLpVtiWgkXeVQop7xVwtAsdmlS0agD/xHgM 8SIZgzZ/X6jtvrBdsLYTMEKkBhjX16QlNeeK80zrkJhJkMnJ0UXR92MO6JqOgIPl9HQZYFYXpIX4s 55dyv071AGkM32E8C1K/kUa2nCLKD4SEGukVR4Trok4EIRjwS6RtxLMG3U0Vo5Tc1oz5Jt8u6gNz6 Lm5iPkmQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV3v5-00000001cb4-078E; Wed, 31 Jan 2024 06:17:59 +0000 Date: Tue, 30 Jan 2024 22:17:58 -0800 From: Christoph Hellwig To: Dave Chinner Cc: Matthew Wilcox , Theodore Ts'o , syzbot , adilger.kernel@dilger.ca, chandan.babu@oracle.com, jack@suse.com, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: current->journal_info got nested! (was Re: [syzbot] [xfs?] [ext4?] general protection fault in jbd2__journal_start) Message-ID: References: <000000000000e98460060fd59831@google.com> <000000000000d6e06d06102ae80b@google.com> <20240131045822.GA2356784@mit.edu> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, Jan 31, 2024 at 05:02:25PM +1100, Dave Chinner wrote: > This may not be true for other filesystems, but I don't think we > can really say "page faults in any filesystem transaction are unsafe > and should be banned".... I think the point is page faults with current->journal_info set is unsafe, as the can recurse into another file system using it. If we don't set current->journal_info (and your ideas for that sound sensible to me), the question of page faults in transactions is decoupled from that. We just need to ensure we never recurse into a transaction in the same or a dependent fs, which ot me suggest we'd better avoid it if we easily can.