diff options
| author | Erik Lilliebjerg <elilliebjerg@nvidia.com> | 2017-07-24 23:45:40 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-27 17:14:07 -0400 |
| commit | 6a2942377f65d1b6c85d23f81dc1a4f6575f00cd (patch) | |
| tree | 277d0cf1f9286f15a52f9d64d03869fd76c7e587 /scripts/const_structs.checkpatch | |
| parent | d062dd63a9023a0c1c91ae78e581f07bddb61a37 (diff) | |
iio: Fix KASAN slab-out-of-bounds
- The data status reported to NVS is 64-bit. However, the actual status
data is only 16-bit and stored at the end of the allocated memory.
When NVS copies the 8 bytes of data, it exceeds the 2 bytes at the end
of the structure/allocated memory.
This is fixed by adding 6 more dummy bytes to the structure after the
2 byte status defined.
Bug 200303805
Change-Id: I2a39f7d530c4379fec0d712dbf866eed9c49ca33
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Signed-off-by: Robert Collins <rcollins@nvidia.com>
(cherry picked from commit cdb7808c83401c944096dcc12afa775546fc0633)
Reviewed-on: https://git-master.nvidia.com/r/1528135
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
