Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp794879lqp; Sat, 13 Apr 2024 22:56:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWANn7G/G2TyHG6a90JURLnUg+AVmOuhPYZpyOwTN2pw+/EnIW+qk+qYQDIyh+HnjDQ6DqgKmlDj47HTws7AFtZm3urZznAbEX31KNIEw== X-Google-Smtp-Source: AGHT+IETeL0OBs77HpOy1obasI5ScnKta5cGeWyDPBE8rrbHjvPNfF7x/Qr6Kd5NGCwTz1XJpW7J X-Received: by 2002:a17:906:2c59:b0:a52:5773:b9fe with SMTP id f25-20020a1709062c5900b00a525773b9femr954502ejh.17.1713074183922; Sat, 13 Apr 2024 22:56:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713074183; cv=pass; d=google.com; s=arc-20160816; b=AtK8HafD/cwH8AMoAlzYLHOVa1WqbQj0fQ5P6Oxae8IJ5eG4+9GNXLiFAkldRV/jzf Vr0zW5vB/vjJB3iWqyP7ZXOC3GIE98v3iW95HzC9cLEQizE//v45D10aQRkuDgyTnHZz 5EGA0aEXsnSQ4je/PsBvvZkeddv/0WfhnpNSaSBZ0nivgOY8tboIsld32P8LX5UWo5Sd PTm4F5nojncGEArcntNYgMD9RK+M6lb87wt2oHQs1TXXp7bRuppcpwc47OfZ2WvfV479 bPAIJjQASzS1MNBJKXJdKf/uCVdWsQ11pguiwRiH/+fMPQI6tlpO+nthjSMR5dLCHnYk iFwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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=VtmRWnTbSF8zyylcv2eQAlIdRqRLmriocN3/YMLG42Y=; fh=zbM774NJZp3e+1TWy5KJQrvMhfn2P53rKrloq9r97Jc=; b=P1SlvKYsH/nb/pVmTrWQZH8o6O1Sz4MkPfDjEEoS7OcIXzBJ3qanb4pEb//yrnE241 rFsDKEkkhIoxjqWNXJjqEoFSqLbOPfn0G8US4AypfyJqh9/S+IiJE3tnQE1vQV+k1k7m fLSAFgIy3PBR3GMqsph05bzj7Gs/qPyhz8St89STp0sd9kD5h0y5l6LZHPV1WaDf2VoO GPqQkQiHcYt2AYSnXSmFn3oqg6FGzK0mC6/Id6nkSy2AO5puLFQS1GXWA9rVH8+nieLB BP94eJn0g+70MQ+YEmC3Q9bfFclnHl9o0tbFcOMs2ojMUxp6NGRr/NN+BpWB7RxCLS8D 6sFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=ZAuWqp0S; arc=pass (i=1 dkim=pass dkdomain=linux.org.uk dmarc=pass fromdomain=zeniv.linux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-143940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hv20-20020a17090760d400b00a5249bdfd16si1453220ejc.314.2024.04.13.22.56.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 22:56:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=ZAuWqp0S; arc=pass (i=1 dkim=pass dkdomain=linux.org.uk dmarc=pass fromdomain=zeniv.linux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-143940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk 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 00C421F21B8B for ; Sun, 14 Apr 2024 02:18:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BEEC168B8; Sun, 14 Apr 2024 02:18:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="ZAuWqp0S" Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.173]) (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 39FCF10949; Sun, 14 Apr 2024 02:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.89.141.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713061116; cv=none; b=oc+BmuHnPrI55/aRqeslGBPP/DlYXNjkdbaospb5/SzUuaA+b/yRLedppga4aojAHv9bwY17yFMyHX0GfYrx5Wxe8MXy7CR/ogy0yFZ4GppoC/D9UIemicTkjWNkIHoNwF34M/Akkw3t02VFI+Ou2Y35qpK2ilZP3q5QA1R/90o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713061116; c=relaxed/simple; bh=a3KGmXQE4lv1e8niZFsC9XFOe027BlNJdClPnuqHzDk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ms9fI59XAE3GqJakIUJAalL5Ag7NcQcx6FBzx8vsdMErQoP4RDpe8Vhu2v0sYlNLXkl43LmsOTOsiX3sUv2MfFCahw7GHaI1yfXcFM+7WHy/KLyOGFkRiLbOMp4jpjRbMjkLe6usadkyGZ+dZj5qcHZaAXM343eH8HsZvqGx9ao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk; spf=none smtp.mailfrom=ftp.linux.org.uk; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b=ZAuWqp0S; arc=none smtp.client-ip=62.89.141.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VtmRWnTbSF8zyylcv2eQAlIdRqRLmriocN3/YMLG42Y=; b=ZAuWqp0SSfSLdc0ZxyFILpkcjC /DrlmN/lPTqj1wnrvNYcnxq0l2uyVWZOKh6rTLuLAv6YYwWQJONgLYqEwNsgdZh1W+LiX48gmpXpd aXO2fYJen7+XAIaS2Xvt2bxljoWIFURSkuW+MCfVcYH042puYbMSDXv1XV10UH/Sheaxc4VVdHfGf 67D0liqroLTEN8CVGbFs9j/RUQwjvEoz/e39UbHWx9DOpt4PzjAzDzrWN52CL2RbPyG46SpQaKbM1 JaFq+5mCrdW6ByOcnKg7k35958mA0qUH9edFuI/FgHUzvsJuHlxjXh1d/mAhFdjttzMGnHF2Orvwr aiO+3oNw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1rvpRu-00BsJU-2c; Sun, 14 Apr 2024 02:18:31 +0000 Date: Sun, 14 Apr 2024 03:18:30 +0100 From: Al Viro To: Theodore Ts'o Cc: Andreas Dilger , Nam Cao , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , linux-fsdevel , Christian Brauner , Jan Kara , Linux Kernel Mailing List , linux-riscv@lists.infradead.org, Ext4 Developers List , Conor Dooley Subject: Re: riscv32 EXT4 splat, 6.8 regression? Message-ID: <20240414021830.GR2118490@ZenIV> References: <878r1ibpdn.fsf@all.your.base.are.belong.to.us> <20240413164318.7260c5ef@namcao> <22E65CA5-A2C0-44A3-AB01-7514916A18FC@dilger.ca> <20240414020457.GI187181@mit.edu> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240414020457.GI187181@mit.edu> Sender: Al Viro On Sat, Apr 13, 2024 at 10:04:57PM -0400, Theodore Ts'o wrote: > On Sat, Apr 13, 2024 at 07:46:03PM -0600, Andreas Dilger wrote: > > This looks like a straight-forward mathematical substitution of "dlimit" > > with "search_buf + buf_size" and rearranging of the terms to make the > > while loop offset "zero based" rather than "address based" and would > > avoid overflow if "search_buf" was within one 4kB block of overflow: > > > > dlimit = search_buf + buf_size = 0xfffff000 + 0x1000 = 0x00000000 > > Umm... maybe, but does riscv32 actually have a memory map where a > kernel page would actually have an address in high memory like that? > That seems.... unusual. Would instanty break IS_ERR() and friends. And those are arch-independent.