NFSv4/pNFS: Fix a race to wake on NFS_LAYOUT_DRAIN
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 880265c77ac415090090d1fe72a188fee71cb458 · < 1f4da20080718f258e189a2c5f515385fa393da6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
NFSv4/pNFS: Fix a race to wake on NFS_LAYOUT_DRAIN
We found a few different systems hung up in writeback waiting on the same page lock, and one task waiting on the NFS_LAYOUT_DRAIN bit in pnfs_update_layout(), however the pnfs_layout_hdr's plh_outstanding count was zero.
It seems most likely that this is another race between the waiter and waker similar to commit ed0172af5d6f ("SUNRPC: Fix a race to wake a sync task"). Fix it up by applying the advised barrier.
From the CVE record · Linux
A race in the Linux kernel’s NFSv4/pNFS layout-drain wakeup can leave tasks hung during writeback. The input does not establish an attacker-controlled trigger or specify whether network access, authentication, or user interaction is required.
Engineers running Linux kernels that use NFSv4/pNFS should check the vendor advisory for affected versions; none are listed in the input.