Centos-kernel-stream-9/drivers/hwtracing/stm
David Arcari 475dabee80 stm class: Fix a double free in stm_register_device()
JIRA: https://issues.redhat.com/browse/RHEL-44520
CVE: CVE-2024-38627

commit 3df463865ba42b8f88a590326f4c9ea17a1ce459
Author: Dan Carpenter <dan.carpenter@linaro.org>
Date:   Mon Apr 29 16:01:05 2024 +0300

    stm class: Fix a double free in stm_register_device()

    The put_device(&stm->dev) call will trigger stm_device_release() which
    frees "stm" so the vfree(stm) on the next line is a double free.

    Fixes: 389b6699a2 ("stm class: Fix stm device initialization order")
    Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
    Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Link: https://lore.kernel.org/r/20240429130119.1518073-2-alexander.shishkin@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: David Arcari <darcari@redhat.com>
2024-06-26 10:53:40 -04:00
..
Kconfig drivers/hwtracing/stm: Remove "select SRCU" 2023-12-05 17:57:46 -07:00
Makefile
console.c
core.c stm class: Fix a double free in stm_register_device() 2024-06-26 10:53:40 -04:00
dummy_stm.c
ftrace.c stm class: ftrace: Use different channel accroding to CPU 2020-10-05 12:43:54 +02:00
heartbeat.c stm class: Fix module init return on allocation failure 2021-01-21 18:54:37 +01:00
p_basic.c
p_sys-t.c stm class: Use correct UUID APIs 2021-04-16 07:26:50 +02:00
policy.c stm class: Remove an unused function 2021-04-16 07:26:50 +02:00
stm.h