From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796311888; b=CCULVLj47H513bzgi2rsvrAXVWPekDrIS2ynAKgUjpRJDTxF9bKNo4e/4KNu+7k/lLkJ VkIuYIMHfX5R8fpi1ZhMhhZNko8Vgw9JpkLTduioIxN27LcrN9WwPihrMyIvzjAzA65Mx Wdull8tGuiFpkJrFE6xH7SIP/EHANEhopv1J2YCe6DcNmx/L6ko3rMV7Lh9ZOLFMF0OY4 BIMnPMwUzRUoWBNHBa7l+3sCCEPVnHs5Ytj/3/JTmknb2n7eUB5i0Y6O85cI4zJTqXT+v FCG9bb8JTtVUz9FjpD3myEmUazTCIErFrs3K6z14Xb4hOuyZ3Jc535AgFS5GNi+vB3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796311888; h=Received:DKIM-Signature:From:To:Cc:In-Reply-To:References:Subject: Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=ylIREuQpDe4vaLqJQaUBqvAuRd6gT9guJd6D3d30kC8=; b=UWNwiSds2JIF/j9THjuVlNEBu72+SbdjW9aVmPaJ4ngFCB6oBf2b3S93NoNF6QG6iWU0 nGuck3Qh+sfxaLcSxBb3lwYNuIkLHNPOWvUHa8tncdTexgWDmcyV5eOuDIQ1Iva0a+9b9 E78sQjZ4uRRzV+Q2sQuymo3LFoLhDpp353DJpmdgXCRBoTndJpMKolG4Rs4HpsfdXIuf4 v9fXxW1qwvabeZzjM0W4BKGiqTdtBl6c/0/jIdmvnM62irTbw6c1kGgnrqEumgec9wNRD j8uVfP2GqqV7WIkoVo5wHZ0D24p8glUvRKpoyLdP8bp6jX/plZfZxmNsbzkgOY0PUzQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fYtQFvIP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D030606A32F; Thu, 3 Dec 2026 15:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fYtQFvIP Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE0461F0089B; Thu, 3 Dec 2026 15:31:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796311887; bh=ylIREuQpDe4vaLqJQaUBqvAuRd6gT9guJd6D3d30kC8=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=fYtQFvIPQgUfueu26QuyHtufuxqjOyRzotrdEJzhkvtOpksDdX1aO1ssFPrx3PFfC WSnBDgMCQ+F9J5q+0OCHinBMd2faBh94+EKFi1glEAtYC5e+8M7FmAx84rPpZ+x+fz +rOX4HkDXfrYN97YPPVPxB33B0U7tNQg5qvJ69mtogt+tPx72oE3XBGiGwn8lKmSFY ENslhi+J8wlD7nrsksRNm0/aMcy8Fk6wJ/3DJy6IyDCkq1EYcNtSdG3hbiQSUq6TjZ 62ooJGfL2H3aLXuldWJs6W8p951hJszju9U+1SdWl0Df4KoHPsTwSN/GzIBheyDdEc k1nIa4bejpRAQ== From: David Hildenbrand To: David Hildenbrand , Andrew Morton , Nikolai Dokutovich Cc: Shuah Khan , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Michal Hocko , Xu Xin , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20261201191644.44219-1-ndokutovich@gmail.com> References: <20261201191644.44219-1-ndokutovich@gmail.com> Subject: Re: [PATCH v5 0/3] selftests/mm: skip tests when FOLL_FORCE writes are not available Message-Id: <179631188467.8564.10584230986448999983.b4-ty@b4> Date: Thu, 03 Dec 2026 16:31:24 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.16.0 On Tue, 01 Dec 2026 22:16:40 +0300, Nikolai Dokutovich wrote: > A write through /proc/self/mem into a mapping that is not writable needs > FOLL_FORCE, which CONFIG_PROC_MEM_FORCE_PTRACE only grants to a caller that > traces the target. mkdirty and the ksm PROT_NONE test then fail instead of > skipping on a distribution kernel: > > not ok 1 write() failed > not ok 5 ptrace write failed > > [...] Applied, thanks! tree: mm/core.git branch: core-7.5.misc Applied patches will appear soon in mm-next, followed by linux-next. Please report any outstanding bugs that were missed during review, so we can either drop the patch series or decide how to fix it up. It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even though the patches have already been applied. If possible, patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. Further, this is not a guarantee that the patches will go upstream. If in doubt, please check the listed branch. [1/3] selftests/mm: add a probe for FOLL_FORCE writes through /proc/self/mem https://git.kernel.org/mm/core/c/39aeff5a [2/3] selftests/mm: skip the mkdirty ptrace write tests without FOLL_FORCE https://git.kernel.org/mm/core/c/cef3c46b [3/3] selftests/mm: skip the ksm PROT_NONE test without FOLL_FORCE https://git.kernel.org/mm/core/c/fd420b6f -- Cheers, David