Re: [PATCH] selftests/mm: Specify requirement for PROC_MEM_ALWAYS_FORCE=y

Mark Brown
2026-04-17T13:10:34Z

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]