)]}'
{
  "commit": "82838789646f9f5881dd1c8b3a3c960ee2a28772",
  "tree": "51c0b0d6871f84df532162aa65a075ff3767f08d",
  "parents": [
    "1c264cb18f718bd30f9763de2f0fc65ecc0073fb"
  ],
  "author": {
    "name": "Paul Moses",
    "email": "p@1g4.org",
    "time": "Fri Oct 30 06:59:28 2026 +0000"
  },
  "committer": {
    "name": "Arnaldo Carvalho de Melo",
    "email": "acme@redhat.com",
    "time": "Mon Nov 09 18:19:20 2026 -0300"
  },
  "message": "perf record: Skip affinity for per-thread mmap buffers\n\nPer-thread mmap buffers use CPU -1 to mean any CPU. Combining --per-thread\nwith --affinity\u003dcpu passes this value to __set_bit() when constructing the\nreader affinity mask, causing an out-of-bounds bitmap access and SIGSEGV.\n\nProgram received signal SIGSEGV, Segmentation fault.\n0x0000555555f3488e in mmap.mmap ()\n#0  0x0000555555f3488e in mmap.mmap ()\n#1  0x0000555555e2f7bf in mmap_per_evsel (evlist\u003devlist@entry\u003d0x7fffedcc1150, ops\u003dops@entry\u003d0x7fffffffaf50, idx\u003didx@entry\u003d0, mp\u003dmp@entry\u003d0x7fffffffaf70, cpu_idx\u003dcpu_idx@entry\u003d0, thread\u003dthread@entry\u003d0, _output\u003d0x7fffffffaf08, _output_overwrite\u003d0x7fffffffaf04, nr_mmaps\u003d0x7fffffffaf0c) at evlist.c:598\n#2  0x0000555555e2ef96 in mmap_per_thread (evlist\u003d0x7fffedcc1150, ops\u003d0x7fffffffaf50, mp\u003d0x7fffffffaf70) at evlist.c:650\n#3  perf_evlist__mmap_ops (evlist\u003d0x7fffedcc1150, ops\u003d0x7fffffffaf50, mp\u003d0x7fffffffaf70) at evlist.c:748\n#4  0x0000555555f2150d in evlist.mmap_ex ()\n#5  0x0000555555db0b0a in record.open ()\n#6  0x0000555555dadea7 in __cmd_record ()\n#7  0x0000555555daca89 in cmd_record ()\n#8  0x0000555555e27d53 in run_builtin ()\n#9  0x0000555555e277cf in main ()\nrip            0x555555f3488e      0x555555f3488e \u003cmmap.mmap+382\u003e\nrax            0x7fffef9e9bd0      140737213537232\nrbx            0x7fffedd249a0      140737183369632\nrcx            0x3ffffffffffffff   288230376151711743\nrdx            0x8000000000000000  -9223372036854775808\nrsi            0x0                 0\nrdi            0x7fffef9e9bd0      140737213537232\n   0x555555f34876 \u003cmmap__mmap+358\u003e:\tmovswq 0x10(%rbx),%rcx\n   0x555555f3487b \u003cmmap__mmap+363\u003e:\tmov    0xb8(%rbx),%rax\n   0x555555f34882 \u003cmmap__mmap+370\u003e:\tmov    $0x1,%edx\n   0x555555f34887 \u003cmmap__mmap+375\u003e:\tshl    %cl,%rdx\n   0x555555f3488a \u003cmmap__mmap+378\u003e:\tshr    $0x6,%rcx\n\u003d\u003e 0x555555f3488e \u003cmmap__mmap+382\u003e:\tor     %rdx,(%rax,%rcx,8)\n   0x555555f34892 \u003cmmap__mmap+386\u003e:\tlea    0x17711b(%rip),%r14        # 0x5555560ab9b4 \u003cverbose\u003e\n   0x555555f34899 \u003cmmap__mmap+393\u003e:\tcmpl   $0x2,(%r14)\n   0x555555f3489d \u003cmmap__mmap+397\u003e:\tjne    0x555555f348f7 \u003cmmap__mmap+487\u003e\n   0x555555f3489f \u003cmmap__mmap+399\u003e:\tmov    0xb8(%rbx),%rdi\n   0x555555f348a6 \u003cmmap__mmap+406\u003e:\tmov    0xc0(%rbx),%esi\n   0x555555f348ac \u003cmmap__mmap+412\u003e:\tlea    -0x430(%rbp),%r12\n\nOnly construct and apply reader affinity masks for buffers with a\nnonnegative CPU. Skip the reader-side bitmap operations as well, since\nper-thread buffers no longer allocate an affinity mask.\n\nFixes: 8384a2600c7ddfc8 (\"perf record: Adapt affinity to machines with #CPUs \u003e 1K\")\nSigned-off-by: Paul Moses \u003cp@1g4.org\u003e\nAcked-by: Namhyung Kim \u003cnamhyung@kernel.org\u003e\nCc: Adrian Hunter \u003cadrian.hunter@intel.com\u003e\nCc: Alexander Shishkin \u003calexander.shishkin@linux.intel.com\u003e\nCc: Alexey Budankov \u003calexey.budankov@linux.intel.com\u003e\nCc: Ian Rogers \u003cirogers@google.com\u003e\nCc: Ingo Molnar \u003cmingo@redhat.com\u003e\nCc: James Clark \u003cjames.clark@linaro.org\u003e\nCc: Jiri Olsa \u003cjolsa@kernel.org\u003e\nCc: Mark Rutland \u003cmark.rutland@arm.com\u003e\nCc: Namhyung Kim \u003cnamhyung@kernel.org\u003e\nCc: Peter Zijlstra \u003cpeterz@infradead.org\u003e\nSigned-off-by: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0e98a613c37df9cbbf8a038145ed02553f4ee176",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-record.c",
      "new_id": "085d3648a30a3384cf8e82c3757dc13fc43432d5",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-record.c"
    },
    {
      "type": "modify",
      "old_id": "6dcc4a9304b926c4a8d4f401e40bfd79d18dd199",
      "old_mode": 33188,
      "old_path": "tools/perf/util/mmap.c",
      "new_id": "d6fbde9699bfcf3907d4448c06372dd43254f2ca",
      "new_mode": 33188,
      "new_path": "tools/perf/util/mmap.c"
    }
  ]
}
