Go to file
Sohaib Mohamed e7ac0578ec perf bench futex: Fix memory leak of perf_cpu_map__new()
BugLink: https://bugs.launchpad.net/bugs/1954834

[ Upstream commit 88e48238d53682281c9de2a0b65d24d3b64542a0 ]

ASan reports memory leaks while running:

  $ sudo ./perf bench futex all

The leaks are caused by perf_cpu_map__new not being freed.
This patch adds the missing perf_cpu_map__put since it calls
cpu_map_delete implicitly.

Fixes: 9c3516d1b8 ("libperf: Add perf_cpu_map__new()/perf_cpu_map__read() functions")
Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: André Almeida <andrealmeid@collabora.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lore.kernel.org/lkml/20211112201134.77892-1-sohaib.amhmd@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
2022-01-13 18:42:58 +01:00
Documentation xen/balloon: add late_initcall_sync() for initial ballooning done 2022-01-13 18:42:00 +01:00
LICENSES
arch mips: BCM63XX: ensure that CPU_SUPPORTS_32BIT_KERNEL is set 2022-01-13 18:42:57 +01:00
block block: remove inaccurate requeue check 2022-01-13 18:42:11 +01:00
certs UBUNTU: SAUCE: Dump stack when X.509 certificates cannot be loaded 2021-11-24 15:28:35 +01:00
crypto crypto: pcrypt - Delay write to padata->info 2022-01-13 18:42:28 +01:00
debian UBUNTU: debian/dkms-versions -- update from kernel-versions (main/2021.11.29) 2021-11-26 15:39:23 +01:00
debian.master UBUNTU: upstream stable to v5.4.161 2022-01-13 18:42:50 +01:00
drivers clk: qcom: gcc-msm8996: Drop (again) gcc_aggre1_pnoc_ahb_clk 2022-01-13 18:42:56 +01:00
fs erofs: fix unsafe pagevec reuse of hooked pclusters 2022-01-13 18:42:49 +01:00
include RDMA/netlink: Add __maybe_unused to static inline in C file 2022-01-13 18:42:57 +01:00
init
ipc memcg: enable accounting of ipc resources 2021-10-12 15:19:01 -06:00
kernel tracing/histogram: Do not copy the fixed-size char array field over the field size 2022-01-13 18:42:57 +01:00
lib lib/xz: Validate the value before assigning it to an enum variable 2022-01-13 18:42:11 +01:00
mm mm, oom: do not trigger out_of_memory from the #PF 2022-01-13 18:42:45 +01:00
net SUNRPC: Partial revert of commit 6f9f17287e 2022-01-13 18:42:46 +01:00
samples samples/kretprobes: Fix return value if register_kretprobe() failed 2022-01-13 18:42:26 +01:00
scripts leaking_addresses: Always print a trailing newline 2022-01-13 18:42:10 +01:00
security fortify: Explicitly disable Clang support 2022-01-13 18:42:48 +01:00
sound ALSA: gus: fix null pointer dereference on pointer block 2022-01-13 18:42:55 +01:00
tools perf bench futex: Fix memory leak of perf_cpu_map__new() 2022-01-13 18:42:58 +01:00
ubuntu
usr
virt KVM: do not shrink halt_poll_ns below grow_start 2021-11-12 14:04:27 +01:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 5.4.161 2022-01-13 18:42:49 +01:00
README
Ubuntu.md UBUNTU: [Packaging] update Ubuntu.md 2021-11-05 16:43:42 +01:00
dropped.txt
snapcraft.yaml
update-dkms-versions UBUNTU: [Packaging] resync update-dkms-versions helper 2021-11-26 15:10:03 +01:00
update-version-dkms

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.