Revision f2ebf8ffe7af10bff02d34addbebd9199de65ed2 authored by Riccardo Mancini on 15 July 2021, 16:07:21 UTC, committed by Arnaldo Carvalho de Melo on 15 July 2021, 20:34:39 UTC
ASan reports several memory leaks running:

  # perf test "88: Check open filename arg using perf trace + vfs_getname"

The second of these leaks is caused by the arg_fmt field of syscall not
being deallocated.

This patch adds a new function syscall__exit which is called on all
syscalls.table entries in trace__exit, which will free the arg_fmt
field.

Signed-off-by: Riccardo Mancini <rickyman7@gmail.com>
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>
Link: http://lore.kernel.org/lkml/d68f25c043d30464ac9fa79c3399e18f429bca82.1626343282.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 6c7f0ab
History
File Mode Size
LSM
acpi
aoe
auxdisplay
blockdev
cgroup-v1
cifs
device-mapper
gpio
hw-vuln
kdump
laptops
media
mm
namespaces
nfs
perf
pm
sysctl
README.rst -rw-r--r-- 18.3 KB
abi-obsolete.rst -rw-r--r-- 345 bytes
abi-removed.rst -rw-r--r-- 101 bytes
abi-stable.rst -rw-r--r-- 408 bytes
abi-testing.rst -rw-r--r-- 731 bytes
abi.rst -rw-r--r-- 157 bytes
bcache.rst -rw-r--r-- 24.1 KB
binderfs.rst -rw-r--r-- 3.2 KB
binfmt-misc.rst -rw-r--r-- 7.2 KB
bootconfig.rst -rw-r--r-- 8.0 KB
braille-console.rst -rw-r--r-- 1.7 KB
btmrvl.rst -rw-r--r-- 2.7 KB
bug-bisect.rst -rw-r--r-- 2.1 KB
bug-hunting.rst -rw-r--r-- 15.3 KB
cgroup-v2.rst -rw-r--r-- 102.8 KB
clearing-warn-once.rst -rw-r--r-- 275 bytes
cpu-load.rst -rw-r--r-- 3.0 KB
cputopology.rst -rw-r--r-- 4.0 KB
dell_rbu.rst -rw-r--r-- 4.9 KB
devices.rst -rw-r--r-- 11.9 KB
devices.txt -rw-r--r-- 104.4 KB
dynamic-debug-howto.rst -rw-r--r-- 13.3 KB
edid.rst -rw-r--r-- 2.3 KB
efi-stub.rst -rw-r--r-- 3.8 KB
ext4.rst -rw-r--r-- 27.6 KB
features.rst -rw-r--r-- 86 bytes
highuid.rst -rw-r--r-- 2.6 KB
hw_random.rst -rw-r--r-- 3.8 KB
index.rst -rw-r--r-- 2.3 KB
init.rst -rw-r--r-- 2.6 KB
initrd.rst -rw-r--r-- 14.3 KB
iostats.rst -rw-r--r-- 9.7 KB
java.rst -rw-r--r-- 10.9 KB
jfs.rst -rw-r--r-- 2.6 KB
kernel-parameters.rst -rw-r--r-- 8.9 KB
kernel-parameters.txt -rw-r--r-- 224.1 KB
kernel-per-CPU-kthreads.rst -rw-r--r-- 12.6 KB
lcd-panel-cgram.rst -rw-r--r-- 1.2 KB
ldm.rst -rw-r--r-- 4.6 KB
lockup-watchdogs.rst -rw-r--r-- 4.1 KB
md.rst -rw-r--r-- 27.1 KB
module-signing.rst -rw-r--r-- 11.1 KB
mono.rst -rw-r--r-- 2.6 KB
numastat.rst -rw-r--r-- 2.4 KB
parport.rst -rw-r--r-- 9.3 KB
perf-security.rst -rw-r--r-- 14.6 KB
pnp.rst -rw-r--r-- 6.9 KB
pstore-blk.rst -rw-r--r-- 8.8 KB
ramoops.rst -rw-r--r-- 6.2 KB
rapidio.rst -rw-r--r-- 2.2 KB
ras.rst -rw-r--r-- 42.1 KB
reporting-issues.rst -rw-r--r-- 94.6 KB
rtc.rst -rw-r--r-- 7.0 KB
security-bugs.rst -rw-r--r-- 4.4 KB
serial-console.rst -rw-r--r-- 4.3 KB
spkguide.txt -rw-r--r-- 69.0 KB
svga.rst -rw-r--r-- 11.8 KB
syscall-user-dispatch.rst -rw-r--r-- 4.2 KB
sysfs-rules.rst -rw-r--r-- 9.4 KB
sysrq.rst -rw-r--r-- 12.1 KB
tainted-kernels.rst -rw-r--r-- 8.3 KB
thunderbolt.rst -rw-r--r-- 14.7 KB
ufs.rst -rw-r--r-- 1.3 KB
unicode.rst -rw-r--r-- 7.1 KB
vga-softcursor.rst -rw-r--r-- 1.9 KB
video-output.rst -rw-r--r-- 1.1 KB
xfs.rst -rw-r--r-- 21.3 KB

README.rst

back to top