Tanel Poder personal blog

When eBPF pt_regs reads return garbage on the latest Linux kernels, blame Fred

TLDR; Starting from Linux kernel version 6.9 on x86_64, there’s a new config option CONFIG_X86_FRED enabled and it adds 16 bytes to the starting point of a task’s kernel stack area, so you’ll need to account for this extra padding in your “raw” kernel stack & pt_regs lookup code. Update: It turns out that there’s a…
Points
105
HN comments
11
Submissions
1
Cited by
0 commenters

Systems & PerformanceSoftware Engineering2025

On Hacker News

SubmittedTitle on HNPointsComments
Mar 1, 2025When eBPF pt_regs reads return garbage on the latest Linux kernels, blame Fred by tanelpoder10511

More from Tanel Poder

All 8 posts →

Related posts from the same era