cd /news/ai-tools/linux-7-2-protects-against-crafted-p… · home topics ai-tools article
[ARTICLE · art-37596] src=phoronix.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Linux 7.2 Protects Against Crafted Perf Data From Going Rogue

Linux 7.2 kernel adds protections against crafted or corrupted perf data, preventing out-of-bounds reads/writes, infinite loops, heap overflows, and segmentation faults. Red Hat's Arnaldo Carvalho de Melo developed 29 patches with Claude Opus 4.6 to harden perf data handling, addressing both accidental and malicious issues.

read2 min views1 publishedJun 24, 2026
Linux 7.2 Protects Against Crafted Perf Data From Going Rogue
Image: Phoronix (auto-discovered)

With the help of Claude Opus 4.6, the Linux 7.2 kernel added protections to fend off specially crafted or corrupted perf data for the perf tool that could cause a number of issues for the running system.

The

Arnaldo Carvalho de Melo of Red Hat worked on a set of 29 patches with Claude Opus 4.6 to better protect the perf data handling to avoid any accidental or nefarious issues around the perf data handling. The improved validation and handling prevents against out-of-bounds reads/writes, infinite loops, heap overflows, and segmentation faults. There is now defense-in-depth validation for file parsing and a number of other improvements made. Plus a number of bugs were also uncovered and fixed during this big rework. Besides Claude, the Linux kernel's Sashiko also helped on the AI side.

Also as part of the perf tooling work for Linux 7.2 is a set of patches that went through twenty revisions for a new

The

The

perf.dataoutput and consumed by Linux'sperfperformance analyzing tool is a binary format containing performance counter data, CPU events, and other useful data. But to now there hasn't been a good job at hardening it to ensure that nothing goes awry if it's corrupted or manipulated for malicious intentArnaldo Carvalho de Melo of Red Hat worked on a set of 29 patches with Claude Opus 4.6 to better protect the perf data handling to avoid any accidental or nefarious issues around the perf data handling. The improved validation and handling prevents against out-of-bounds reads/writes, infinite loops, heap overflows, and segmentation faults. There is now defense-in-depth validation for file parsing and a number of other improvements made. Plus a number of bugs were also uncovered and fixed during this big rework. Besides Claude, the Linux kernel's Sashiko also helped on the AI side.

Also as part of the perf tooling work for Linux 7.2 is a set of patches that went through twenty revisions for a new

perf inject --aslrfeature to better code with Address Space Layout Randomization (ASLR) differences between systems or reboots. This new option will remap virtual memory addresses or drop physical memory event leaks when profile record data is shared between systems.The

── more in #ai-tools 4 stories · sorted by recency
── more on @red hat 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/linux-7-2-protects-a…] indexed:0 read:2min 2026-06-24 ·