diff options
author | Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | 2022-12-15 01:20:08 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-12-27 14:52:02 +0300 |
commit | 94cd8fa09f5f1ebdd4e90964b08b7f2cc4b36c43 (patch) | |
tree | 32a343b8c47df565e4af74fbf04236053a150f51 /scripts/gcc-plugins/gcc-common.h | |
parent | 1c0908d8e441631f5b8ba433523cf39339ee2ba0 (diff) | |
download | linux-94cd8fa09f5f1ebdd4e90964b08b7f2cc4b36c43.tar.xz |
futex: Fix futex_waitv() hrtimer debug object leak on kcalloc error
In a scenario where kcalloc() fails to allocate memory, the futex_waitv
system call immediately returns -ENOMEM without invoking
destroy_hrtimer_on_stack(). When CONFIG_DEBUG_OBJECTS_TIMERS=y, this
results in leaking a timer debug object.
Fixes: bf69bad38cf6 ("futex: Implement sys_futex_waitv()")
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Cc: stable@vger.kernel.org
Cc: stable@vger.kernel.org # v5.16+
Link: https://lore.kernel.org/r/20221214222008.200393-1-mathieu.desnoyers@efficios.com
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions