diff options
| author | Ewan D. Milne <emilne@redhat.com> | 2026-11-04 12:28:33 -0500 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-11-04 09:52:50 -0800 |
| commit | 29b8758b4700357909f06705a0c48c7a60c556d5 (patch) | |
| tree | c8a440ad074bc986eda7bbd18bedf77d0f5e471c /tools/perf/scripts/python/flamegraph.py | |
| parent | f4ae106069982da3e36293d8e627cb9a540034a0 (diff) | |
nvmet: don't return memory contents beyond valid data when reading ANA log page
The host side does not know how much valid data will be returned by the target
so it will typically provide a buffer larger than the amount of valid data in
the ANA log page. The memory allocation used by the target does not guarantee
that prior kernel memory contents will not be returned past the end of the valid
page data. Fix this to ensure that the SGL is zeroed before copying the data.
Fixes: 72efd25dcf4f ("nvmet: add minimal ANA support")
Cc: stable@vger.kernel.org
Signed-off-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
