CVE-2026-139275: pNFS/flexfiles: make pg_init retry loops killable
In the Linux kernel, the following vulnerability has been resolved:
pNFS/flexfiles: make pginit retry loops killable
When a task is killed while the pNFS client connects to a data server, nfs4pnfsdsconnect() fails with -ERESTARTSYS. If the layout has FFFLAGSNOIOTHRUMDS set, fflayoutpginitread() cannot fall back to the MDS and retries after an uninterruptible ssleep. As the fatal signal stays pending, every new connect attempt is aborted the same way and the task loops forever without returning to user space:
# grep -E 'SigPnd|ShdPnd' /proc/156021/status SigPnd: 0000000000000100 ShdPnd: 0000000000000100
# cat /proc/156021/stack msleep+0x2e/0x50 fflayoutpginitread+0x267/0x310 [nfslayoutflexfiles] nfspageioaddrequest+0x1c1/0x480 [nfs] nfspageioaddrequest+0x21d/0x2c0 [nfs] nfsreadaddfolio+0x143/0x200 [nfs] nfsreadahead+0x204/0x290 [nfs] readpages+0x62/0x230 pagecacheraunbounded+0x136/0x180 filemapgetpages+0xf2/0x350 filemapread+0xd5/0x320 nfsfileread+0x6d/0xc0 [nfs] vfsread+0x24f/0x3a0 x64syspread64+0x90/0xc0 dosyscall64+0x5f/0xe0
Previous attempt propagates the error from nfs4fflayoutprepareds(), but only fflayout{read,write}pagelist() look at it. The pginit functions test ISERR() and retry on any error.
Check for a fatal signal or an exiting task before sleeping in fflayoutpginitread() and fflayoutpginitwrite() and fail the I/O instead of retrying.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In pNFS/flexfiles, make the pg_init retry loops killable by checking IS_ERR() and retrying on any error.