# Re: \[PATCH\] selftests/landlock: fix the regex\_escape() error check

- From: Sasha Levin \<sashal@kernel.org\>
- Date: 2026-11-03 21:49:43 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17856366
- Thread: https://ratatoskr.run/linux-security-module/2026/11/17854648/t.md

```text
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
```
