diff options
author | Mickaël Salaün <[email protected]> | 2024-05-11 19:14:43 +0200 |
---|---|---|
committer | Mickaël Salaün <[email protected]> | 2024-05-11 19:18:46 +0200 |
commit | 24cf65a6226643f0f4be16fb2f9c0575b0edd967 (patch) | |
tree | 1b0cc8346ce0f2af4c70f47239211b91d6602562 /drivers/net/ethernet/intel/igc/igc_main.c | |
parent | 821bc4a8fd2454ff6d719aae7cac93f60567fe65 (diff) |
selftests/harness: Share _metadata between forked processes
Unconditionally share _metadata between all forked processes, which
enables to actually catch errors which were previously ignored.
This is required for a following commit replacing vfork() with clone3()
and CLONE_VFORK (i.e. not sharing the full memory) . It should also be
useful to share _metadata to extend expectations to test process's
forks. For instance, this change identified a wrong expectation in
pidfd_setns_test.
Because this _metadata is used by the new XFAIL_ADD(), use a global
pointer initialized in TEST_F(). This is OK because only XFAIL_ADD()
use it, and XFAIL_ADD() already depends on TEST_F().
Cc: Jakub Kicinski <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: Will Drewry <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mickaël Salaün <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions