Go to file
Ian Rogers 114d0e5b99 perf metrics: Avoid segv if default metricgroup isn't set
commit e2b005d6ec0e738df584190e21d2c7ada37266a0 upstream.

A metric is default by having "Default" within its groups. The default
metricgroup name needn't be set and this can result in segv in
default_metricgroup_cmp and perf_stat__print_shadow_stats_metricgroup
that assume it has a value when there is a Default metric group. To
avoid the segv initialize the value to "".

Fixes: 1c0e47956a ("perf metrics: Sort the Default metricgroup")
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-and-tested-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Cc: James Clark <james.clark@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: John Garry <john.g.garry@oracle.com>
Cc: stable@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20231204182330.654255-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-13 18:45:34 +01:00
Documentation
LICENSES
arch KVM: SVM: Update EFER software model on CR0 trap for SEV-ES 2023-12-13 18:45:34 +01:00
block
certs
crypto
drivers USB: gadget: core: adjust uevent timing on gadget unbind 2023-12-13 18:45:33 +01:00
fs cifs: Fix flushing, invalidation and file size with FICLONE 2023-12-13 18:45:34 +01:00
include kprobes: consistent rcu api usage for kretprobe holder 2023-12-13 18:45:31 +01:00
init
io_uring io_uring: fix mutex_unlock with unreferenced ctx 2023-12-13 18:45:20 +01:00
ipc
kernel kprobes: consistent rcu api usage for kretprobe holder 2023-12-13 18:45:31 +01:00
lib lib/group_cpus.c: avoid acquiring cpu hotplug lock in group_cpus_evenly 2023-12-13 18:45:22 +01:00
mm mm/memory_hotplug: fix error handling in add_memory_resource() 2023-12-13 18:45:25 +01:00
net packet: Move reference count in packet_sock to atomic_long_t 2023-12-13 18:45:23 +01:00
rust
samples
scripts checkstack: fix printed address 2023-12-13 18:45:22 +01:00
security
sound ASoC: ops: add correct range check for limiting volume 2023-12-13 18:45:31 +01:00
tools perf metrics: Avoid segv if default metricgroup isn't set 2023-12-13 18:45:34 +01:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

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.