diff options
| author | 2024-10-17 17:24:19 +0200 | |
|---|---|---|
| committer | 2024-10-23 10:28:26 +0200 | |
| commit | 124afe773b1ad6cddb8f661a14a32c9e76ca92a6 (patch) | |
| tree | 0df1a4a2b72ef3190e88744493933b2e9e123928 /include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com | |
| parent | net: sysctl: do not reserve an extra char in dump_cpumask temporary buffer (diff) | |
net: sysctl: allow dump_cpumask to handle higher numbers of CPUs
This fixes the output of rps_default_mask and flow_limit_cpu_bitmap when
the CPU count is > 448, as it was truncated.
The underlying values are actually stored correctly when writing to
these sysctl but displaying them uses a fixed length temporary buffer in
dump_cpumask. This buffer can be too small if the CPU count is > 448.
Fix this by dynamically allocating the buffer in dump_cpumask, using a
guesstimate of what we need.
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
