aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <[email protected]>2021-02-02 07:23:26 +0000
committerSteven Rostedt (VMware) <[email protected]>2021-02-02 14:32:02 +0000
commitc8b186a8d54d7e12d28e9f9686cb00ff18fc2ab2 (patch)
tree80a96646eed83f2690c2d8ac596b04d009b69ace /drivers/usb/cdns3/cdns3-imx.c
parentkretprobe: Avoid re-registration of the same kretprobe earlier (diff)
downloadkernel-c8b186a8d54d7e12d28e9f9686cb00ff18fc2ab2.tar.gz
kernel-c8b186a8d54d7e12d28e9f9686cb00ff18fc2ab2.zip
tracepoint: Fix race between tracing and removing tracepoint
When executing a tracepoint, the tracepoint's func is dereferenced twice - in __DO_TRACE() (where the returned pointer is checked) and later on in __traceiter_##_name where the returned pointer is dereferenced without checking which leads to races against tracepoint_removal_sync() and crashes. This adds a check before referencing the pointer in tracepoint_ptr_deref. Link: https://lkml.kernel.org/r/[email protected] Cc: [email protected] Fixes: d25e37d89dd2f ("tracepoint: Optimize using static_call()") Acked-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Alexey Kardashevskiy <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions