diff options
| author | Eslam Khafagy <[email protected]> | 2025-11-14 12:27:39 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-11-14 15:58:31 +0000 |
| commit | e0fd4d42e27f761e9cc82801b3f183e658dc749d (patch) | |
| tree | b126039c7d23c004fc60b1d58e15f6f0e79c2a33 /lib/mpi/mpi-scan.c | |
| parent | Linux 6.18-rc5 (diff) | |
| download | kernel-e0fd4d42e27f761e9cc82801b3f183e658dc749d.tar.gz kernel-e0fd4d42e27f761e9cc82801b3f183e658dc749d.zip | |
posix-timers: Plug potential memory leak in do_timer_create()
When posix timer creation is set to allocate a given timer ID and the
access to the user space value faults, the function terminates without
freeing the already allocated posix timer structure.
Move the allocation after the user space access to cure that.
[ tglx: Massaged change log ]
Fixes: ec2d0c04624b3 ("posix-timers: Provide a mechanism to allocate a given timer ID")
Reported-by: [email protected]
Suggested-by: Cyrill Gorcunov <[email protected]>
Signed-off-by: Eslam Khafagy <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Frederic Weisbecker <[email protected]>
Link: https://patch.msgid.link/[email protected]
Closes: https://lore.kernel.org/all/[email protected]/T/
Diffstat (limited to 'lib/mpi/mpi-scan.c')
0 files changed, 0 insertions, 0 deletions
