Commit 81260c41 authored by Ritesh Harjani (IBM)'s avatar Ritesh Harjani (IBM) Committed by Greg Kroah-Hartman
Browse files

powerpc/powernv/memtrace: Fix out of bounds issue in memtrace mmap



[ Upstream commit cd097df4 ]

memtrace mmap issue has an out of bounds issue. This patch fixes the by
checking that the requested mapping region size should stay within the
allocated region size.

Reported-by: default avatarJonathan Greental <yonatan02greental@gmail.com>
Fixes: 08a022ad ("powerpc/powernv/memtrace: Allow mmaping trace buffers")
Signed-off-by: default avatarRitesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: default avatarMadhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250610021227.361980-1-maddy@linux.ibm.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5814a7fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment