From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D57B368298; Mon, 19 Jan 2026 13:24:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768829051; cv=none; b=j1q0IqeZXcKFG9VU2/5fyjW/cZbHac7IpMz7pINBKHI0s6V7IN6b7RGbMuUgktZ3qGCqScFKqXNnxMpew5+MX6paK7c1/cVc8JbgyT+rsTl9zO9F9zqyPpHRk8n+2wj/CYoowYwxR3l32q31RiNY2Ts2RUYRXln1+UJX3UDp1ig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768829051; c=relaxed/simple; bh=jor/QInlEX+fsL9YlpJ8E8qDgLYYTGfnxOUzoIgOonw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=caqYPutGMazPDOgh4rL0NxQFimEXBiWIwlMQADNPLJUwrevjzwB4beiejZ3KOKjDEsmQGQIeaAXaIy2jLzrNwML5MZ9xoxevWGXl38EizNE7F6A4Pw5GOZi5koJRLUtUKjNCXvP12UsUt8q/qPQIMAwTttrDuPv5tQ2sW0ehBhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E6C7E497; Mon, 19 Jan 2026 05:24:01 -0800 (PST) Received: from [10.44.160.85] (e126510-lin.lund.arm.com [10.44.160.85]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5CD3D3F740; Mon, 19 Jan 2026 05:24:06 -0800 (PST) Message-ID: <4d3361e4-90e8-409f-bde5-b09de53137b1@arm.com> Date: Mon, 19 Jan 2026 14:24:03 +0100 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/8] selftests/mm: fix usage of FORCE_READ() in cow tests To: "David Hildenbrand (Red Hat)" , linux-mm@kvack.org, linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Andrew Morton , Lorenzo Stoakes , Mark Brown , Ryan Roberts , Shuah Khan References: <20260107164842.3289559-1-kevin.brodsky@arm.com> <20260107164842.3289559-5-kevin.brodsky@arm.com> From: Kevin Brodsky Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 19/01/2026 11:50, David Hildenbrand (Red Hat) wrote: > On 1/7/26 17:48, Kevin Brodsky wrote: >> Commit 5bbc2b785e63 ("selftests/mm: fix FORCE_READ to read input >> value correctly") modified FORCE_READ() to take a value instead of a >> pointer. It also changed most of the call sites accordingly, but >> missed many of them in cow.c. In those cases, we ended up with the >> pointer itself being read, not the memory it points to. >> >> No failure occurred as a result, so it looks like the tests work >> just fine without faulting in. However, the huge_zeropage tests >> explicitly check that pages are populated, so those became skipped. > > Right, that's nasty! Thanks! > > For all cases, we could probably just fail if the memory is not > populated after FORCE_READ(). > > Would you have time to prepare a patch for that? Sure, I guess we could even have a helper that performs a FORCE_READ() and then returns the result of pagemap_is_populated(). - Kevin