diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-11-26 15:11:53 +0300 |
|---|---|---|
| committer | Ira Weiny <ira.weiny@intel.com> | 2025-11-26 10:58:23 -0600 |
| commit | 30065e73d7c018cf2e1bec68e2d6ffafc17b3c25 (patch) | |
| tree | a196085888883c973d907bd3fd5bb8f4576160ee /rust/helpers/xarray.c | |
| parent | acd9ea1714bbe910753bf6f3ce0e861a7fed6b56 (diff) | |
nvdimm: Prevent integer overflow in ramdax_get_config_data()
The "cmd->in_offset" variable comes from the user via the __nd_ioctl()
function. The problem is that the "cmd->in_offset + cmd->in_length"
addition could have an integer wrapping issue if cmd->in_offset is close
to UINT_MAX . Both "cmd->in_offset" and "cmd->in_length" are u32
variables.
Fixes: 43bc0aa19a21 ("nvdimm: allow exposing RAM carveouts as NVDIMM DIMM devices")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Link: https://patch.msgid.link/aSbuiYCznEIZDa02@stanley.mountain
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions
