Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1175734lqb; Thu, 18 Apr 2024 02:18:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1lI5NGqfKW7QBGSnKk+WHpG7xIvK69ASA7vYXVE4W3HeQWOadkhmjHtBSEMoedIubfpbJ5doP8Ou32Ev29LQCKHETAM0CsbnwpXgjyw== X-Google-Smtp-Source: AGHT+IGnGveSez/7YlJ7lLR7aFrfFta0xURkzajh8Mzf4ubf5GBPSSzNd3oj/7hqEVENihpWpvZ/ X-Received: by 2002:a17:906:2896:b0:a51:d49f:b6e3 with SMTP id o22-20020a170906289600b00a51d49fb6e3mr1466607ejd.54.1713431887665; Thu, 18 Apr 2024 02:18:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713431887; cv=pass; d=google.com; s=arc-20160816; b=E96qiEqe1XM/5Tjzz5u2sY8iLIZBPMUmpZR6/mO+MPBrJG2j5dovEp1s95dneJqZyg YVklf0DvjSQ63+b+ZHHwdAFmpz2X6s0lnJ2VwXE54G+Iax8m71PP+Lg19sJWFs48uSOk PBfuE3B3zE9HD4xvKtHYBXQnU6omgw4Vcws/KmOLeQgyQgimOJ/0mSoACLlhC0wkIt+H AhI5YDyLY9cbpy91w5BxCcmeWSk49GiXfNlrMXn18+9ixWPjtLzfUKmw04efv1fGHVq5 /JD348jxF1yoAIC9fpgvKu5KOAseEVVlelVIjwLHsw2y0t3xTtmGCgKcexVYzZiGOb+f Icxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:dkim-signature:dkim-signature:date; bh=Oueb3ytqZ96zkn2QKrFrNWUZdLKfS4yQ3a5dkMeXex4=; fh=IOlAmfAKcperdRV0ltuBSJt4AXRH9B+FTy/+sOQcYb0=; b=iwEms8Bv97rul2s4IAeGpfiBtegiarhI45rVFc49JRQ3pxLsLEvx/JMhFWaeERYYwB 1dVMX5yoxS/5kO1tEGKocIXT7QUnIG6NVKMV1LUVIZYH9vbSXQviXz/Fjd1Omw+wNiHB DomNY5mctnvNWOgexvtbp08783HogR/EadR/OqDNG06Aa/wMbRWi5HWSWOeayZEIEA6a LSWAEAO8S7+zOaj0rqgpTN+a2scVrvq3xo2JRXNjWRRtqe4stSs5lcmxH3zjaagcSdjO 9UrA5nLZuQznQFK7gQErEEwauAAQ6ww5q4uCPEirB3ijf3U3IgDjX5L1xNbl4oodLMmu fZzg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kYhmEVhy; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-ext4+bounces-2141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2141-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h14-20020a17090619ce00b00a4e55463b49si619868ejd.450.2024.04.18.02.18.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 02:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2141-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=@linutronix.de header.s=2020 header.b=kYhmEVhy; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-ext4+bounces-2141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2141-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 629331F21E23 for ; Thu, 18 Apr 2024 09:18:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D03C15AD8F; Thu, 18 Apr 2024 09:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kYhmEVhy"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Pjd5L9qW" X-Original-To: linux-ext4@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 553BB15AAC0; Thu, 18 Apr 2024 09:17:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713431879; cv=none; b=n2a67KqRxFzpY51iaI/NBhWbCXYWLyK/CNx8aNXuPPJxWIBZOICuiygOJdQF4dzEP0cwp9FYCWtIgROhIyPaPg1Hj8mleoPNX+LTZlIooB2bvAUzgAPXeLeOE+nKuipjce3NAoH64ufL+WadOymPiNneivxtgJIrFGy5RGIamTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713431879; c=relaxed/simple; bh=YxaYhJG2YQxWNDuqETRxUhxSQmmg06Q1LDv1Ima5z6Y=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dhi7tDEMn4qj6/3kpGtUPgw7WlQBIp509VwqazbCvCfMEM2qzkfZdPkStmJ/FHCVw9MCqs5cTrZQ+MST6EMTuQw9fMNgviskMwRQbsLZIvMy9fgWgiW+9r3kOipVYgtAi7qyaEC11wRu6qYgjrQfHz1SZox/20YTuDOmRZHUURU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=kYhmEVhy; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Pjd5L9qW; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 18 Apr 2024 11:17:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1713431876; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Oueb3ytqZ96zkn2QKrFrNWUZdLKfS4yQ3a5dkMeXex4=; b=kYhmEVhyg3DkkbnTYmIlxS/bFKU84wNu8BpFe4KuGjFRC45Ju9pdzyjfTIiEg9+oAknHqK chFRwQ33lTb9Hp9QE54aDK1i9iliWAq4BzCL6P3dVD2wtIn/b/Vezhmi2/S5JMp8Vtm/qf PwiUnqvezDYFBv5OAzF3OKQE1kN+JQUnqUkjfMmHCiB7VHEAAxL37u8txbRbfqLmOzUKsK JN67eqLCJTC8j3uBGTLQZ3SRw4MLkH5/FER5cSATmZu2Gbxs4THKcExo6fGUzO8a4fmtN8 tDiauRnpC0R2PkfZDLbrxdR1Aki8epCDaqVjKOuXqsaamIQUeONwF4BvKGDGBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713431876; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Oueb3ytqZ96zkn2QKrFrNWUZdLKfS4yQ3a5dkMeXex4=; b=Pjd5L9qWrP4A+6OlCBgjPk/bKfRDPSbEyBQGI8KS/tK/1yQbRHFlQx2CK1cL5UpXoDRFRc YqcsqTsBuFMHmWAQ== From: Nam Cao To: Andreas Dilger Cc: Mike Rapoport , Matthew Wilcox , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Christian Brauner , Al Viro , linux-fsdevel , Jan Kara , Linux Kernel Mailing List , linux-riscv@lists.infradead.org, Theodore Ts'o , Ext4 Developers List , Conor Dooley , Anders Roxell , Alexandre Ghiti Subject: Re: riscv32 EXT4 splat, 6.8 regression? Message-ID: <20240418111753.1c485974@namcao> In-Reply-To: <1F07FFF3-663B-43D4-A9DA-C89856F2962A@dilger.ca> References: <20240416-deppen-gasleitung-8098fcfd6bbd@brauner> <8734rlo9j7.fsf@all.your.base.are.belong.to.us> <20240416171713.7d76fe7d@namcao> <20240416173030.257f0807@namcao> <87v84h2tee.fsf@all.your.base.are.belong.to.us> <20240416181944.23af44ee@namcao> <20240417003639.13bfd801@namcao> <1F07FFF3-663B-43D4-A9DA-C89856F2962A@dilger.ca> 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-Transfer-Encoding: 7bit On 2024-04-17 Andreas Dilger wrote: > On Apr 16, 2024, at 4:36 PM, Nam Cao wrote: > > However, I am confused about one thing: doesn't this make one page of > > physical memory inaccessible? > > > > Is it better to solve this by setting max_low_pfn instead? Then at > > least the page is still accessible as high memory. > > Is that one page of memory really worthwhile to preserve? Better to > have a simple solution that works, Good point. > maybe even mapping that page > read-only so that any code which tries to dereference an ERR_PTR > address immediately gets a fault? Not sure about this part: it doesn't really fix the problem, just changes from subtle crashes into page faults. Let me send a patch to reserve the page: simple and works for all architectures. Best regards, Nam