mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* WARNING in intel_pmu_lbr_counters_reorder
@ 2024-09-30  7:46 Ubisectech Sirius
  0 siblings, 0 replies; 2+ messages in thread
From: Ubisectech Sirius @ 2024-09-30  7:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: peterz, mingo, acme, namhyung

[-- Attachment #1: Type: text/plain, Size: 2865 bytes --]


Hello.
We are Ubisectech Sirius Team, the vulnerability lab of China ValiantSec. Recently, our team has discovered a issue in Linux kernel 6.11.0-rc2-g6a0e38264012. Attached to the email were a PoC file of the issue.

Stack dump:

------------[ cut here ]------------
WARNING: CPU: 0 PID: 13222 at arch/x86/events/intel/lbr.c:957 intel_pmu_lbr_counters_reorder.isra.0+0x61f/0x750 arch/x86/events/intel/lbr.c:957
Modules linked in:
CPU: 0 UID: 0 PID: 13222 Comm: syz.3.335 Not tainted 6.11.0-rc2-g6a0e38264012 #49
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
RIP: 0010:intel_pmu_lbr_counters_reorder.isra.0+0x61f/0x750 arch/x86/events/intel/lbr.c:957
Code: 00 48 8d bb 20 01 00 00 48 89 f8 48 c1 e8 03 42 80 3c 20 00 0f 84 26 ff ff ff e8 ac 96 df 00 e9 1c ff ff ff e8 22 cd 83 00 90 <0f> 0b 90 e9 80 fb ff ff 48 c7 c7 60 87 6c 8d e8 0d c0 8e 03 e9 79
RSP: 0000:ffffc90001d77910 EFLAGS: 00010046
RAX: 0000000080110000 RBX: ffff888000155070 RCX: ffffffff8105486e
RDX: ffff888043692500 RSI: ffffffff81054cee RDI: 0000000000000005
RBP: ffff888000155070 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88802c622bb8 R15: 0000000000000000
FS:  00007f3f01bc8640(0000) GS:ffff88802c600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002001d000 CR3: 000000005c572000 CR4: 0000000000750ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
PKRU: 55555554
Call Trace:
 <TASK>
 intel_pmu_lbr_save_brstack+0x1ef/0x3b0 arch/x86/events/intel/lbr.c:976
 handle_pmi_common+0x744/0xbd0 arch/x86/events/intel/core.c:3118
 intel_pmu_handle_irq+0x2b7/0x10b0 arch/x86/events/intel/core.c:3181
 perf_event_nmi_handler arch/x86/events/core.c:1747 [inline]
 perf_event_nmi_handler+0x4c/0x70 arch/x86/events/core.c:1733
 nmi_handle+0x1a6/0x5b0 arch/x86/kernel/nmi.c:151
 default_do_nmi+0x88/0x220 arch/x86/kernel/nmi.c:351
 exc_nmi+0x262/0x310 arch/x86/kernel/nmi.c:545
 asm_exc_nmi+0xb8/0x101 arch/x86/entry/entry_64.S:1192
RIP: 0033:0x7f3f00c4a51a
Code: 00 00 00 ff 89 81 90 00 00 00 75 04 85 c0 74 1c 48 63 44 24 18 48 8d 14 80 48 8d 14 50 48 8d 05 6c 16 25 00 48 83 7c d0 28 00 <74> 0f 48 8b 44 24 08 c7 80 90 00 00 00 16 00 00 00 48 8b 54 24 08
RSP: 002b:00007f3f01bc7fc0 EFLAGS: 00000246
RAX: 00007f3f00e9bb80 RBX: 00007f3f00f35f80 RCX: 00007f3f00f35f80
RDX: 0000000000007a81 RSI: 0000000000000000 RDI: 0000000020000300
RBP: 00007f3f00e1bd8a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f3f00f35f80 R15: 00007f3f01ba8000
 </TASK>

Thank you for taking the time to read this email and we look forward to working with you further.





[-- Attachment #2: poc.c --]
[-- Type: application/octet-stream, Size: 9812 bytes --]

// autogenerated by syzkaller (https://github.com/google/syzkaller)

#define _GNU_SOURCE

#include <dirent.h>
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>

static void sleep_ms(uint64_t ms)
{
  usleep(ms * 1000);
}

static uint64_t current_time_ms(void)
{
  struct timespec ts;
  if (clock_gettime(CLOCK_MONOTONIC, &ts))
    exit(1);
  return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000;
}

#define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off))
#define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len)               \
  *(type*)(addr) =                                                             \
      htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) |           \
            (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len))))

static bool write_file(const char* file, const char* what, ...)
{
  char buf[1024];
  va_list args;
  va_start(args, what);
  vsnprintf(buf, sizeof(buf), what, args);
  va_end(args);
  buf[sizeof(buf) - 1] = 0;
  int len = strlen(buf);
  int fd = open(file, O_WRONLY | O_CLOEXEC);
  if (fd == -1)
    return false;
  if (write(fd, buf, len) != len) {
    int err = errno;
    close(fd);
    errno = err;
    return false;
  }
  close(fd);
  return true;
}

static void kill_and_wait(int pid, int* status)
{
  kill(-pid, SIGKILL);
  kill(pid, SIGKILL);
  for (int i = 0; i < 100; i++) {
    if (waitpid(-1, status, WNOHANG | __WALL) == pid)
      return;
    usleep(1000);
  }
  DIR* dir = opendir("/sys/fs/fuse/connections");
  if (dir) {
    for (;;) {
      struct dirent* ent = readdir(dir);
      if (!ent)
        break;
      if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0)
        continue;
      char abort[300];
      snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort",
               ent->d_name);
      int fd = open(abort, O_WRONLY);
      if (fd == -1) {
        continue;
      }
      if (write(fd, abort, 1) < 0) {
      }
      close(fd);
    }
    closedir(dir);
  } else {
  }
  while (waitpid(-1, status, __WALL) != pid) {
  }
}

static void setup_test()
{
  prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
  setpgrp();
  write_file("/proc/self/oom_score_adj", "1000");
}

static void execute_one(void);

#define WAIT_FLAGS __WALL

static void loop(void)
{
  int iter = 0;
  for (;; iter++) {
    int pid = fork();
    if (pid < 0)
      exit(1);
    if (pid == 0) {
      setup_test();
      execute_one();
      exit(0);
    }
    int status = 0;
    uint64_t start = current_time_ms();
    for (;;) {
      sleep_ms(10);
      if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
        break;
      if (current_time_ms() - start < 5000)
        continue;
      kill_and_wait(pid, &status);
      break;
    }
  }
}

uint64_t r[1] = {0xffffffffffffffff};

void execute_one(void)
{
  intptr_t res = 0;
  if (write(1, "executing program\n", sizeof("executing program\n") - 1)) {
  }
  *(uint32_t*)0x2001d000 = 1;
  *(uint32_t*)0x2001d004 = 0x80;
  *(uint8_t*)0x2001d008 = 1;
  *(uint8_t*)0x2001d009 = 0;
  *(uint8_t*)0x2001d00a = 0;
  *(uint8_t*)0x2001d00b = 0;
  *(uint32_t*)0x2001d00c = 0;
  *(uint64_t*)0x2001d010 = 0x41c1;
  *(uint64_t*)0x2001d018 = 0;
  *(uint64_t*)0x2001d020 = 0;
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 0, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 1, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 2, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 3, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 4, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 1, 5, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 6, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 7, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 8, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 9, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 10, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 11, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 12, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 13, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 14, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 15, 2);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 17, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 18, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 19, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 20, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 21, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 22, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 23, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 24, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 25, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 26, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 27, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 28, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 29, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 30, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 31, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 32, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 33, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0x2000, 34, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 35, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 36, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 37, 1);
  STORE_BY_BITMASK(uint64_t, , 0x2001d028, 0, 38, 26);
  *(uint32_t*)0x2001d030 = 0;
  *(uint32_t*)0x2001d034 = 0;
  *(uint64_t*)0x2001d038 = 0;
  *(uint64_t*)0x2001d040 = 0;
  *(uint64_t*)0x2001d048 = 0;
  *(uint64_t*)0x2001d050 = 0;
  *(uint32_t*)0x2001d058 = 0;
  *(uint32_t*)0x2001d05c = 0;
  *(uint64_t*)0x2001d060 = 0;
  *(uint32_t*)0x2001d068 = 0;
  *(uint16_t*)0x2001d06c = 0;
  *(uint16_t*)0x2001d06e = 0;
  *(uint32_t*)0x2001d070 = 0;
  *(uint32_t*)0x2001d074 = 0;
  *(uint64_t*)0x2001d078 = 0;
  res = syscall(__NR_perf_event_open, /*attr=*/0x2001d000ul, /*pid=*/0,
                /*cpu=*/-1, /*group=*/-1, /*flags=*/0ul);
  if (res != -1)
    r[0] = res;
  *(uint32_t*)0x20000300 = 4;
  *(uint32_t*)0x20000304 = 0x80;
  *(uint8_t*)0x20000308 = 0x43;
  *(uint8_t*)0x20000309 = 0x81;
  *(uint8_t*)0x2000030a = 0;
  *(uint8_t*)0x2000030b = 0;
  *(uint32_t*)0x2000030c = 0;
  *(uint64_t*)0x20000310 = 6;
  *(uint64_t*)0x20000318 = 0xc1b06;
  *(uint64_t*)0x20000320 = 0xe;
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 0, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 1, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 2, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 3, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 4, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0x10000003, 5, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 6, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 7, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 8, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 9, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 10, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 11, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 12, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 13, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 14, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 15, 2);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 17, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 18, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 19, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 20, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 21, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 22, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 23, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 24, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 25, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 26, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 27, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 28, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 29, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 30, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 31, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 32, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 33, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 34, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 35, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 36, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 37, 1);
  STORE_BY_BITMASK(uint64_t, , 0x20000328, 0, 38, 26);
  *(uint32_t*)0x20000330 = 0x400000;
  *(uint32_t*)0x20000334 = 4;
  *(uint64_t*)0x20000338 = 0;
  *(uint64_t*)0x20000340 = 9;
  *(uint64_t*)0x20000348 = 0x10062;
  *(uint64_t*)0x20000350 = 8;
  *(uint32_t*)0x20000358 = 0xd;
  *(uint32_t*)0x2000035c = 0;
  *(uint64_t*)0x20000360 = 9;
  *(uint32_t*)0x20000368 = 5;
  *(uint16_t*)0x2000036c = 1;
  *(uint16_t*)0x2000036e = 0;
  *(uint32_t*)0x20000370 = 0;
  *(uint32_t*)0x20000374 = 0;
  *(uint64_t*)0x20000378 = 5;
  syscall(__NR_perf_event_open, /*attr=*/0x20000300ul, /*pid=*/0, /*cpu=*/-1,
          /*group=*/r[0], /*flags=*/0ul);
}
int main(void)
{
  syscall(__NR_mmap, /*addr=*/0x1ffff000ul, /*len=*/0x1000ul, /*prot=*/0ul,
          /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
          /*offset=*/0ul);
  syscall(__NR_mmap, /*addr=*/0x20000000ul, /*len=*/0x1000000ul,
          /*prot=PROT_WRITE|PROT_READ|PROT_EXEC*/ 7ul,
          /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
          /*offset=*/0ul);
  syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul,
          /*flags=MAP_FIXED|MAP_ANONYMOUS|MAP_PRIVATE*/ 0x32ul, /*fd=*/-1,
          /*offset=*/0ul);
  const char* reason;
  (void)reason;
  loop();
  return 0;
}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* WARNING in intel_pmu_lbr_counters_reorder
@ 2024-03-17 12:40 cheung wall
  0 siblings, 0 replies; 2+ messages in thread
From: cheung wall @ 2024-03-17 12:40 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo, Namhyung Kim
  Cc: Mark Rutland, Alexander Shishkin, Jiri Olsa, Ian Rogers,
	Adrian Hunter, Thomas Gleixner, Borislav Petkov, Dave Hansen,
	x86, H. Peter Anvin, linux-perf-users, linux-kernel

Hello,

when using Healer to fuzz the latest Linux Kernel, the following crash

was triggered on:


HEAD commit: 90d35da658da8cff0d4ecbb5113f5fac9d00eb72  (tag: v6.8-rc7)

git tree: upstream

console output: https://pastebin.com/raw/LcT7Dv8f

kernel config: https://pastebin.com/raw/aKPdyw3m

C reproducer: https://pastebin.com/raw/twMjJuni

Syzlang reproducer: https://pastebin.com/raw/Yx0zjYTg

If you fix this issue, please add the following tag to the commit:

Reported-by: Qiang Zhang <zzqq0103.hey@gmail.com>


-----------------------------------------------------------------------------


WARNING: CPU: 0 PID: 314 at arch/x86/events/intel/lbr.c:956
intel_pmu_lbr_counters_reorder.isra.0+0xe6/0x4e0
arch/x86/events/intel/lbr.c:956
Modules linked in:
CPU: 0 PID: 314 Comm: syz-executor323 Not tainted 6.8.0-rc7 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.13.0-1ubuntu1.1 04/01/2014
RIP: 0010:intel_pmu_lbr_counters_reorder.isra.0+0xe6/0x4e0
arch/x86/events/intel/lbr.c:956
Code: 0f 85 ff 03 00 00 4c 8b a5 90 00 00 00 48 85 db 0f 85 c5 01 00
00 e8 09 09 5a 00 49 39 ec 0f 84 30 03 00 00 e8 fb 08 5a 00 90 <0f> 0b
90 c7 44 24 14 00 00 00 00 e8 ea 08 5a 00 48 8b 44 24 08 48
RSP: 0000:fffffe06d8a4b8f0 EFLAGS: 00010046
RAX: ffff8881110eaf80 RBX: ffff8881114d8000 RCX: ffffffff8f642ba5
RDX: 0000000080110003 RSI: ffff8881114d8000 RDI: ffff8881114d84a8
RBP: ffff8881114d8000 R08: fffffbfff29954b8 R09: ffffed102229b0d1
R10: ffffed102229b0d0 R11: ffff8881114d8687 R12: dffffc0000000000
R13: ffff8881c0022ec8 R14: ffff8881c0022bb8 R15: fffffe06d8a4bbc0
FS:  0000555555ab4880(0000) GS:ffff8881c0000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff2fe39010 CR3: 0000000105540001 CR4: 0000000000770ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
PKRU: 55555554
Call Trace:
 <NMI>
 intel_pmu_lbr_save_brstack+0x1af/0x350 arch/x86/events/intel/lbr.c:975
 handle_pmi_common+0x5aa/0x9a0 arch/x86/events/intel/core.c:3058
 intel_pmu_handle_irq+0x205/0xc70 arch/x86/events/intel/core.c:3121
 perf_event_nmi_handler arch/x86/events/core.c:1743 [inline]
 perf_event_nmi_handler+0x42/0x70 arch/x86/events/core.c:1729
 nmi_handle+0xaf/0x2e0 arch/x86/kernel/nmi.c:150
 default_do_nmi+0x54/0x160 arch/x86/kernel/nmi.c:350
 exc_nmi+0x132/0x170 arch/x86/kernel/nmi.c:544
 end_repeat_nmi+0xf/0x60
RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline]
RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline]
RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:147 [inline]
RIP: 0010:wrmsrl arch/x86/include/asm/msr.h:262 [inline]
RIP: 0010:__intel_pmu_enable_all.constprop.0+0xf9/0x350
arch/x86/events/intel/core.c:2248
Code: ea 03 80 3c 02 00 0f 85 f1 01 00 00 4c 8b a3 d0 0d 00 00 b9 8f
03 00 00 49 f7 d4 4d 21 f4 4c 89 e2 44 89 e0 48 c1 ea 20 0f 30 <0f> 1f
44 00 00 e8 2d 69 5b 00 48 8d ab 00 02 00 00 be 08 00 00 00
RSP: 0018:ffff888111bd7980 EFLAGS: 00000002
RAX: 000000000000000f RBX: ffff8881c0022220 RCX: 000000000000038f
RDX: 0000000000000007 RSI: 0000000000000008 RDI: ffff8881c0022ff0
RBP: ffff8881c0022ba8 R08: 0000000000000021 R09: ffffed10380045ff
R10: ffffed10380045fe R11: ffff8881c0022ff7 R12: 000000070000000f
R13: 00000000000000b0 R14: 000000070000000f R15: 0000000000000021
 </NMI>
 <TASK>
 x86_pmu_enable+0x349/0xb20 arch/x86/events/core.c:1356
 perf_pmu_enable kernel/events/core.c:1153 [inline]
 perf_ctx_enable+0xed/0x170 kernel/events/core.c:706
 ctx_resched+0xa0/0xe0 kernel/events/core.c:2740
 __perf_install_in_context+0x2f1/0x820 kernel/events/core.c:2807
 remote_function kernel/events/core.c:92 [inline]
 remote_function+0x111/0x1a0 kernel/events/core.c:72
 csd_do_func kernel/smp.c:133 [inline]
 generic_exec_single kernel/smp.c:404 [inline]
 generic_exec_single+0x14f/0x390 kernel/smp.c:390
 smp_call_function_single+0x2bb/0x3a0 kernel/smp.c:647
 task_function_call+0xce/0x150 kernel/events/core.c:120
 perf_install_in_context+0x23e/0x480 kernel/events/core.c:2909
 __do_sys_perf_event_open+0x10a2/0x1d50 kernel/events/core.c:12768
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xb4/0x1b0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7eff2fdbebed
Code: c3 e8 37 2a 00 00 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 89 f8 48
89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d
01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcbbb21e48 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 000000000000bd9b RCX: 00007eff2fdbebed
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100
RBP: 0000000000000000 R08: 0000000000000000 R09: 000000002fd77c40
R10: 0000000000000003 R11: 0000000000000246 R12: 00007ffcbbb21e54
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
---[ end trace 0000000000000000 ]---
INFO: NMI handler (perf_event_nmi_handler) took too long to run: 2.678 msecs
perf: interrupt took too long (20898 > 2500), lowering
kernel.perf_event_max_sample_rate to 9000
perf: interrupt took too long (26124 > 26122), lowering
kernel.perf_event_max_sample_rate to 7000
perf: interrupt took too long (32789 > 32655), lowering
kernel.perf_event_max_sample_rate to 6000
perf: interrupt took too long (41339 > 40986), lowering
kernel.perf_event_max_sample_rate to 4000
perf: interrupt took too long (51743 > 51673), lowering
kernel.perf_event_max_sample_rate to 3000
perf: interrupt took too long (64806 > 64678), lowering
kernel.perf_event_max_sample_rate to 3000
perf: interrupt took too long (81009 > 81007), lowering
kernel.perf_event_max_sample_rate to 2000
perf: interrupt took too long (101467 > 101261), lowering
kernel.perf_event_max_sample_rate to 1000
----------------
Code disassembly (best guess), 2 bytes skipped:
   0: 80 3c 02 00           cmpb   $0x0,(%rdx,%rax,1)
   4: 0f 85 f1 01 00 00     jne    0x1fb
   a: 4c 8b a3 d0 0d 00 00 mov    0xdd0(%rbx),%r12
  11: b9 8f 03 00 00       mov    $0x38f,%ecx
  16: 49 f7 d4             not    %r12
  19: 4d 21 f4             and    %r14,%r12
  1c: 4c 89 e2             mov    %r12,%rdx
  1f: 44 89 e0             mov    %r12d,%eax
  22: 48 c1 ea 20           shr    $0x20,%rdx
  26: 0f 30                 wrmsr
* 28: 0f 1f 44 00 00       nopl   0x0(%rax,%rax,1) <-- trapping instruction
  2d: e8 2d 69 5b 00       callq  0x5b695f
  32: 48 8d ab 00 02 00 00 lea    0x200(%rbx),%rbp
  39: be 08 00 00 00       mov    $0x8,%esi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-30  7:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-30  7:46 WARNING in intel_pmu_lbr_counters_reorder Ubisectech Sirius
  -- strict thread matches above, loose matches on Subject: below --
2024-03-17 12:40 cheung wall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®