Re: [PATCH] selftests/mm: Specify requirement for PROC_MEM_ALWAYS_FORCE=y
From: Mark Brown
Date: Fri Apr 17 2026 - 09:12:13 EST
On Fri, Apr 17, 2026 at 03:41:39PM +0300, Mike Rapoport wrote:
> Yeah, the issue though is that open() succeeds regardless of PROC_MEM_
> setting in Kconfig. With restricted /proc/pid/mem the failure happens in
> write(), and there we don't know what actually went wrong.
> We can try checking errno, but it's fragile and it's better to fail the
> test if write() failed IMO.
Oh, that's unfortunate - you'd have hoped that opening for write would
fail if you can't write. In that case you're probably right that we
can't do much better, possibly adding a log message about the potential
missing config but not sure that's worth it.
Attachment:
signature.asc
Description: PGP signature