[PATCH 5.10.y 0/2] pid_namespace: prevent TIF_NOTIFY_SIGNAL from interrupting the reaper

From: Dickson Wu

Date: Wed Nov 25 2026 - 21:45:26 EST


Hi,

This backports the fix for CVE-2026-99244 to 5.10.y:

22b7f491be8f signal: allow taks to temporarily block TIF_NOTIFY_SIGNAL
5c0985dd3c32 pid_namespace: prevent TIF_NOTIFY_SIGNAL from
interrupting the reaper

6.1.y and newer already have both. Two changes for 5.10:
- 0x00800000, the bit upstream uses for PF_NO_NOTIFY_SIGNAL, is still
PF_SWAPWRITE here, so patch 1 uses the unused 0x01000000 instead.
- Patch 2 calls no_notify_signal_save() and no_notify_signal_restore()
directly instead of guard(no_notify_signal)(), restoring at the
function's single return. guard() in the middle of that block adds a
W=1 declaration-after-statement warning on this branch.

Tested on v5.10.275:
- x86_64 allmodconfig W=1 build of the touched signal and pid namespace
objects, base vs patched, no new warnings
- defconfig boots under QEMU/KVM, and the existing pid_namespace
regression_enomem selftest passes on base and patched
- No existing test forces task work to interrupt the reaper, so that
path itself is untested.

I'm sending the same two for 5.15.y right after this.

The two patches follow as separate mails with the same "5.10.y n/2"
subjects. My mail setup can't thread them under this one, sorry about
that.

The backport and the test runs were prepared with AI coding tools
(OpenAI Codex agents, with review by Claude). I went over the result
before signing off.

Thanks,
Dickson