[Bug 268897] panic: [pmc,4811] Retrieving callchain for thread that doesn't want it

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 11 Jan 2023 23:26:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268897

            Bug ID: 268897
           Summary: panic: [pmc,4811] Retrieving callchain for thread that
                    doesn't want it
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu

As an unprivileged user I ran a multithreaded program with the command

$ pmcstat -U -O perf.outu -P ls_not_halted_cyc -P instructions -P
ls_refills_from_sys.ls_mabresp_rmt_dram ./run 24 for

The kernel crashed with the message

[pmc,4811] Retrieving callchain for thread that doesn't want it

The message is from a KASSERT in pmc_capture_user_callchain.  
My kernel configuration has INVARIANTS.

My hardware is

CPU: AMD EPYC 7402P 24-Core Processor                (2794.90-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x830f10  Family=0x17  Model=0x31  Stepping=0

My software is 13.1-STABLE as of mid-December
(17333d92643d998d1c6a2dc5f6b1508b6507ad31).

-- 
You are receiving this mail because:
You are the assignee for the bug.