summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorYichong Chen <chenyichong@uniontech.com>2026-07-15 13:20:04 +0800
committerTyler Hicks <code@tyhicks.com>2026-07-20 22:11:14 -0500
commit2602b79c5b3e2f6fce12e38a670f8e3fda4e46a2 (patch)
tree57f16185628fc2496316f15444b8ab3e671604fe /tools/perf/scripts/python/task-analyzer.py
parent779972513c2fa8c7938e54976f686091dafff22f (diff)
ecryptfs: pass packet set buffer size to parser
ecryptfs_parse_packet_set() receives a pointer into the file header, but it calculates the remaining packet buffer size from PAGE_SIZE - 8. For version 1 headers the packet set starts later in the header, so this can overstate the available buffer. Pass the actual packet set buffer length from the caller and calculate per-packet limits from the remaining bytes in that buffer. Recompute the remaining length after consuming a tag 3 packet before parsing the following tag 11 packet. Fixes: 237fead61998 ("[PATCH] ecryptfs: fs/Makefile and fs/Kconfig") Cc: <stable@vger.kernel.org> Signed-off-by: Yichong Chen <chenyichong@uniontech.com> Signed-off-by: Tyler Hicks <code@tyhicks.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions