test-hang: the module gate's refusal paths have no behavioural test #56

Open
opened 2026-11-15 02:34:01 -07:00 by noah · 0 comments
Owner

Found in the independent verifier review of sp/m4a-e-f5-kernel-hang-module (warden-sdk head 45d8dbc).

What happened: build/build-kernel.sh refuses a WARDEN_MODULES_COLLECT module whose vermagic is not this kernel's, and refuses the test-only directory unless CONFIG_WARDEN_TEST_HANG=m. tests/test-hang/run-test-hang-tests.sh checked this with grep for the message text, so no test ran a refusal with a module of the wrong vermagic. The gate also covers every collected list (aic8800 in release builds), which had no test either.

Expected: a behavioural test that refuses a stale module before it is copied, in the test-only list and in a release list, and refuses a symbol that is not =m.

Fix: the gate moves to build/lib-module-gate.sh, which build-kernel.sh sources. tests/test-hang/run-module-gate-tests.sh runs the refusal and acceptance paths on fixtures (no kernel tree, no compiler). Mutation check: accepting every vermagic fails five of its checks.

Found in the independent verifier review of sp/m4a-e-f5-kernel-hang-module (warden-sdk head 45d8dbc). What happened: build/build-kernel.sh refuses a WARDEN_MODULES_COLLECT module whose vermagic is not this kernel's, and refuses the test-only directory unless CONFIG_WARDEN_TEST_HANG=m. tests/test-hang/run-test-hang-tests.sh checked this with grep for the message text, so no test ran a refusal with a module of the wrong vermagic. The gate also covers every collected list (aic8800 in release builds), which had no test either. Expected: a behavioural test that refuses a stale module before it is copied, in the test-only list and in a release list, and refuses a symbol that is not =m. Fix: the gate moves to build/lib-module-gate.sh, which build-kernel.sh sources. tests/test-hang/run-module-gate-tests.sh runs the refusal and acceptance paths on fixtures (no kernel tree, no compiler). Mutation check: accepting every vermagic fails five of its checks.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#56