lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241030204752.316247-1-acme@kernel.org>
Date: Wed, 30 Oct 2024 17:47:52 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Ingo Molnar <mingo@...nel.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Jiri Olsa <jolsa@...nel.org>,
	Namhyung Kim <namhyung@...nel.org>,
	Ian Rogers <irogers@...gle.com>,
	Adrian Hunter <adrian.hunter@...el.com>,
	Kan Liang <kan.liang@...ux.intel.com>,
	Clark Williams <williams@...hat.com>,
	linux-kernel@...r.kernel.org,
	linux-perf-users@...r.kernel.org,
	Arnaldo Carvalho de Melo <acme@...nel.org>,
	Howard Chu <howardchu95@...il.com>,
	James Clark <james.clark@...aro.org>,
	Jiri Slaby <jslaby@...e.cz>,
	Veronika Molnarova <vmolnaro@...hat.com>,
	Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: [GIT PULL] perf tools fixes for v6.12: 2nd batch

Hi Linus,

	Please consider pulling,

Best regards,

- Arnaldo

The following changes since commit c964ced7726294d40913f2127c3f185a92cb4a41:

  Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma (2024-10-16 13:37:59 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools.git tags/perf-tools-fixes-for-v6.12-2-2024-10-30

for you to fetch changes up to a5384c426744ebe41dafc6e5fa3acecc05e43462:

  perf cap: Add __NR_capget to arch/x86 unistd (2024-10-28 13:04:52 -0300)

----------------------------------------------------------------
perf tools fixes for v6.12: 2nd batch

- Update more header copies with the kernel sources, including const.h,
  msr-index.h, arm64's cputype.h, kvm's, bits.h and unaligned.h

- The return from 'write' isn't a pid, fix cut'n'paste error in 'perf
  trace'.

- Fix up the python binding build on architectures without
  HAVE_KVM_STAT_SUPPORT.

- Add some more bounds checks to augmented_raw_syscalls.bpf.c (used to
  collect syscall pointer arguments in 'perf trace') to make the
  resulting bytecode to pass the kernel BPF verifier, allowing us to go
  back accepting clang 12.0.1 as the minimum version required for
  compiling BPF sources.

- Add __NR_capget for x86 to fix a regression on running perf + intel PT
  (hw tracing) as non-root setting up the capabilities as described in
  https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html.

- Fix missing syscalltbl in non-explicitly listed architectures, noticed
  on ARM 32-bit, that still needs a .tbl generator for the syscall
  id<->name tables, should be added for v6.13.

- Handle 'perf test' failure when handling broken DWARF for ASM files.

Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>

----------------------------------------------------------------
Arnaldo Carvalho de Melo (9):
      tools headers UAPI: Sync linux/const.h with the kernel headers
      perf trace: The return from 'write' isn't a pid
      perf trace augmented_raw_syscalls: Add extra array index bounds checking to satisfy some BPF verifiers
      tools headers UAPI: Sync kvm headers with the kernel sources
      perf python: Fix up the build on architectures without HAVE_KVM_STAT_SUPPORT
      tools arch x86: Sync the msr-index.h copy with the kernel sources
      tools headers: Synchronize {uapi/}linux/bits.h with the kernel sources
      tools headers arm64: Sync arm64's cputype.h with the kernel sources
      tools headers: Update the linux/unaligned.h copy with the kernel sources

Howard Chu (2):
      perf trace augmented_raw_syscalls: Add more checks to pass the verifier
      perf build: Change the clang check back to 12.0.1

Ian Rogers (1):
      perf cap: Add __NR_capget to arch/x86 unistd

Jiri Slaby (1):
      perf trace: Fix non-listed archs in the syscalltbl routines

Veronika Molnarova (1):
      perf test: Handle perftool-testsuite_probe failure due to broken DWARF

 tools/arch/arm64/include/asm/cputype.h             |  2 +
 tools/arch/x86/include/asm/msr-index.h             | 34 ++++++-----
 tools/arch/x86/include/uapi/asm/kvm.h              |  1 +
 tools/arch/x86/include/uapi/asm/unistd_32.h        |  3 +
 tools/arch/x86/include/uapi/asm/unistd_64.h        |  3 +
 tools/include/linux/bits.h                         | 15 +++++
 tools/include/linux/unaligned.h                    | 11 +---
 tools/include/uapi/linux/bits.h                    |  3 +
 tools/include/uapi/linux/const.h                   | 17 ++++++
 tools/include/vdso/unaligned.h                     | 15 +++++
 tools/perf/Makefile.config                         |  4 +-
 tools/perf/builtin-trace.c                         |  2 +-
 tools/perf/check-headers.sh                        |  1 +
 .../shell/base_probe/test_adding_blacklisted.sh    | 69 +++++++++++++++++-----
 .../util/bpf_skel/augmented_raw_syscalls.bpf.c     | 22 ++++++-
 tools/perf/util/cap.c                              | 10 +---
 tools/perf/util/python.c                           |  3 +
 tools/perf/util/syscalltbl.c                       | 10 ++++
 18 files changed, 174 insertions(+), 51 deletions(-)
 create mode 100644 tools/include/vdso/unaligned.h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ