]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uprobes: Guard against kmemdup() failing in dup_return_instance()
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 6 Dec 2024 18:34:36 +0000 (10:34 -0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 9 Dec 2024 14:50:32 +0000 (15:50 +0100)
commit02c56362a7d3eccc209d5c00d73a06513d2504d5
treee0d7eb482d2fd1f68256f7fbf2ef064915f37d71
parentd29e744c71673a71da8f8522799ee02744cad6c9
uprobes: Guard against kmemdup() failing in dup_return_instance()

If kmemdup() failed to alloc memory, don't proceed with extra_consumers
copy.

Fixes: e62f2d492728 ("uprobes: Simplify session consumer tracking")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20241206183436.968068-1-andrii@kernel.org
kernel/events/uprobes.c