summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJanne Grunau <j@jannau.net>2026-09-20 18:46:19 +0200
committerSrinivas Kandagatla <srini@kernel.org>2026-09-20 17:57:19 +0100
commit841ea6e56cc88ec2c28826d62fbab88b234524c5 (patch)
tree6c27341b09c1aae9e5fc05413da32e0ab4d8dcf8 /tools/perf/scripts/python/stackcollapse.py
parentaff113334732214b151c1aa0a69352ab569d8764 (diff)
downloadlinux-next-841ea6e56cc88ec2c28826d62fbab88b234524c5.tar.gz
linux-next-841ea6e56cc88ec2c28826d62fbab88b234524c5.zip
nvmem: core: Fix OOB read for bit offsets of more than one byte
When the bit offset is BITS_PER_BYTE or larger the read position is advanced by `bytes_offset`. This is not taken into account in the per-byte read loop which still reads `cell->bytes` resulting in an out of bounds read of `bytes_offset` bytes. The information read OOB does not leak directly as the erroneously read bits are cleared. Detected by KASAN while looking for a use-after-free in simplefb.c. Cc: stable@vger.kernel.org Fixes: 7a06ef751077 ("nvmem: core: fix bit offsets of more than one byte") Tested-by: Dmitry Sinyavin <sinyavin@gmail.com> Signed-off-by: Janne Grunau <j@jannau.net> Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions