ftrace: Add cond_resched() to ftrace_graph_set_hash()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b9b0c831bed2682c2e3e9f5420fb6985549ef020 · < 1fce9574b9d515bcb8a75379a8053e18602424e3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ftrace: Add cond_resched() to ftrace_graph_set_hash()
When the kernel contains a large number of functions that can be traced, the loop in ftrace_graph_set_hash() may take a lot of time to execute. This may trigger the softlockup watchdog.
Add cond_resched() within the loop to allow the kernel to remain responsive even when processing a large number of functions.
This matches the cond_resched() that is used in other locations of the code that iterates over all functions that can be traced.
From the CVE record · Linux
When the Linux kernel processes a large number of traceable functions, a loop in ftrace_graph_set_hash() can run long enough to trigger the softlockup watchdog. The input does not identify an attacker path, access requirements, or user interaction.
Engineers running the Linux kernel should check their installations; affected versions are not specified.