summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorZijun Hu <quic_zijuhu@quicinc.com>2025-04-14 19:36:52 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-15 18:24:16 +0200
commit31e4e12e0e9609850cefd4b2e1adf782f56337d6 (patch)
tree7cd33c42a26db0cf91b32602dd4835f51d27f038 /tools/perf/scripts/python/bin
parentf407a8a28a294dd3201e55b6a63b9225c489fd95 (diff)
downloadkernel-31e4e12e0e9609850cefd4b2e1adf782f56337d6.tar.gz
software node: Correct a OOB check in software_node_get_reference_args()
software_node_get_reference_args() wants to get @index-th element, so the property value requires at least '(index + 1) * sizeof(*ref)' bytes but that can not be guaranteed by current OOB check, and may cause OOB for malformed property. Fix by using as OOB check '((index + 1) * sizeof(*ref) > prop->length)'. Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Link: https://lore.kernel.org/r/20250414-fix_swnode-v2-1-9c9e6ae11eab@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
td>um: Remove unused os_process_parentBenjamin Berg 2024-10-10um: Remove unused os_process_pcBenjamin Berg 2024-07-03um: simplify and consolidate TLB updatesBenjamin Berg 2024-07-03um: Delay flushing syscalls until the thread is restartedBenjamin Berg 2024-07-03um: remove copy_context_skas0Benjamin Berg 2024-07-03um: Rework syscall handlingBenjamin Berg 2024-07-03um: add mmap/mremap OS callsJohannes Berg 2024-07-03um: generalize os_rcv_fdJohannes Berg 2024-07-03um: chan: use blocking IO for console output for time-travelBenjamin Berg 2024-01-05um: Rely on PTRACE_SETREGSET to set FS/GS base registersBenjamin Berg