# Re: \[PATCH v2 02/27\] selftests/landlock: Propagate EXPECT failures from forked children

- From: sashiko-bot@kernel.org
- Date: 2026-11-04 21:14:10 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17864688
- Thread: https://ratatoskr.run/linux-security-module/2026/11/17864489/t.md

```text
> A failed ASSERT in a forked child calls abort(), so the parent sees
> the child die from a signal and the test fails.  A failed EXPECT only
> sets _metadata->exit_code, and a child that exits with a fixed status
> of 0 hides that failure from the parent.  The child in
> trace_fown.deny_scope_fown has this problem.
> 
> Exit with _metadata->exit_code in that child.  Do the same in the
> audit.log_subdomains_off_fork children.  They only use ASSERT for now,
> but this keeps them correct when a check becomes an EXPECT.
> 
> Signed-off-by: Günther Noack <redacted>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-selftests-refactor-v2-0-c52f23f7ce33@gmail.com?part=2

```
