Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1787408rdb; Sat, 2 Dec 2023 09:10:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEN1g7N2LprPZgxd5uQf5FEvuIcBWf7iPmvIhMtllzZppjqyYJ9/ehgq8oIKVkwWeqONQ/C X-Received: by 2002:a50:bb47:0:b0:54c:a0c6:99e2 with SMTP id y65-20020a50bb47000000b0054ca0c699e2mr157211ede.27.1701537051754; Sat, 02 Dec 2023 09:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701537051; cv=none; d=google.com; s=arc-20160816; b=IyQ8F+WjVX/MBKrYnUhh03ajapCQ17XBwJpHoJzAXdYp25jgpSpjyp1BlWrhfGNVEH lL2o/993msYiVrGSIv+6TtBJYLU3Bwd1DTwplvuLcy3IymtSGAmocE+2g+xYznKvLig7 kJgoXs4qlKe1YZwdN+X3jyOn5t1UxSgIGIjY3wvJjvXkZWAhp3SJ9yVaHr5wUFfdy8mV /SyDMoVjuAp+yj8/3PL8RkSf87fYLLkD64eEr0GVFiDvmKiNfCaQtSTvNSCBEo9BhPQ5 R0t1UwYfGspqS6GU20yacdey7MdlwsC9tsDpUpzIE1sUnyJeFKRcmZIMSNpAirzD2k8F BjeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dgxMRlPBF4EKtqinxnZVnFhTMuc6+RNAs4nBTpEpmQM=; fh=boYL9fKr7ClzcNLy3hnKz65xF98At6QMxDWdkJW3fB4=; b=RUPKbWuKQdVZpOemXy+4+NaTnL2MBf7a3m+L21Kfs/L+tLJDElAFmCVgWBmuXLqFTa pPN8MuNg2gG6XO/IS+YFBNw4PmV9JGpZ1rOVWuOIu5uxFhM5agI5PSCyUzhDIe/dunq4 J/WtbWn3NOm0mYrn35KWjwfcCD0Z+4xRIPYTKYYWCmypTsSRn/ebdFdBoaOfEJ1OXuRJ HYGCIitUOBzuhB09T545zuWjlDOoICUIPHttsF4/oP3OZMNz3KwzSjq3O65Nzx7ntyoU RvubqhNViRxriKwN/TvjWMMzYRN6f4E0k1Mk58QOhcYhTArIBbtlx4MUzvRbAsJZvjCC UfxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HwPZy3lV; spf=pass (google.com: domain of linux-ext4+bounces-273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id j29-20020a508a9d000000b0054c73079166si1077691edj.485.2023.12.02.09.10.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Dec 2023 09:10:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HwPZy3lV; spf=pass (google.com: domain of linux-ext4+bounces-273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7F03C1F20FD0 for ; Sat, 2 Dec 2023 17:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CFD41C6A5; Sat, 2 Dec 2023 17:10:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HwPZy3lV" X-Original-To: linux-ext4@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A60F318AF6 for ; Sat, 2 Dec 2023 17:10:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31F4EC433C7; Sat, 2 Dec 2023 17:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701537045; bh=/go9u9e/fOcrfL8ufc7YY7zZbCRqib75ln0/i5X3s58=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HwPZy3lV5b6jloY95xYng9NGHCO3oeL9djls+AjCllYCJpbP0/IqiLU9y0n/lFB0Z mKe0ZIQtGzCOa8dCTbu7OAA7FChvkPx7ODhKSJKoCmt3xc4rgvjpUaBk/GhseyP43T 8zd8cIlBVbXVZZSZQSdg9kE7rcrLISOCV7qBNT4DVHgFwbhDjIW0APW/6G3xN/+1sj etXc8hnSl2rC5EImLULKBDkS4Qu4oIGUKrGBUaxSdw8SFryehFt5ezsQVJJW5F00wr BFAb3GeKYOsRxTrOu++gHVn8oSEs7dTIiKv90VeNRO8Zl0pu+kw7pn783zdss6T+U+ YTgN97T4/tfjA== Date: Sat, 2 Dec 2023 09:10:44 -0800 From: "Darrick J. Wong" To: Brian Norris Cc: Theodore Ts'o , linux-ext4@vger.kernel.org Subject: Re: [PATCH] lib/ext2fs: Validity checks for ext2fs_inode_scan_goto_blockgroup() Message-ID: <20231202171044.GB36164@frogsfrogsfrogs> References: <20231201000126.335263-1-briannorris@chromium.org> <20231201162410.GA36164@frogsfrogsfrogs> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Dec 01, 2023 at 09:30:38AM -0800, Brian Norris wrote: > On Fri, Dec 1, 2023 at 8:24 AM Darrick J. Wong wrote: > > On Thu, Nov 30, 2023 at 04:01:18PM -0800, Brian Norris wrote: > > > This resolves issues seen in ureadahead, when it uses an old packfile > > > (with mismatching group indices) with a new filesystem. > > > > Say what now? The boot time pre-caching thing Ubuntu used to have? > > https://manpages.ubuntu.com/manpages/trusty/man8/ureadahead.8.html > > Sure. ChromeOS still uses it. Steven Rostedt even bothered to do a > talk about it recently: > https://eoss2023.sched.com/event/1LcMw/the-resurrection-of-ureadahead-and-speeding-up-the-boot-process-and-preloading-applications-steven-rostedt-google Wow. I had no idea that ureadahead reads the inode blocks of a mounted ext* filesystem into the page cache. Welp, it's a good thing those are part of the static layout. Anyway, this fix looks correct to me, so I don't see any reason to hold this up... Reviewed-by: Darrick J. Wong --D > > Brian >