diff options
author | Alban Crequy <[email protected]> | 2022-11-10 09:56:13 +0100 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-11-11 11:44:46 -0800 |
commit | 8678ea06852cd1f819b870c773d43df888d15d46 (patch) | |
tree | a6accda70d5e23d0b3568f9ae322a1b4df9f918d /tools/perf/scripts/python/stackcollapse.py | |
parent | 5704bc7e8991164b14efb748b5afa0715c25fac3 (diff) |
maccess: Fix writing offset in case of fault in strncpy_from_kernel_nofault()
If a page fault occurs while copying the first byte, this function resets one
byte before dst.
As a consequence, an address could be modified and leaded to kernel crashes if
case the modified address was accessed later.
Fixes: b58294ead14c ("maccess: allow architectures to provide kernel probing directly")
Signed-off-by: Alban Crequy <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Tested-by: Francis Laniel <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: <[email protected]> [5.8]
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions