[PATCH] selftests/landlock: fix the regex_escape() error check

Sasha Levin sashal at kernel.org
Tue Nov 3 21:49:41 UTC 2026


On Tue, Nov 03, 2026 at 09:31:33PM +0100, Günther Noack wrote:
> Thanks for the contribution!  I also stumbled across this one when I
> did a wider cleanup, and at the time I came to the conclusion that it
> would be wiser to fix the weird way in which regex_escape() reports
> errors.
>
> https://lore.kernel.org/all/20261008142604.39107-20-gnoack3000@gmail.com/
>
> Does that seem reasonable to you?

Yes, that's better. Your 18/27 also fixes the size miscount after the
escaped path, so it covers everything this patch does. Let's drop this
one in favor of your series.

--
Thanks,
Sasha



More information about the Linux-security-module-archive mailing list