'perf top' crashes with the tunable 'kernel.kptr_restrict=2' set

Solution Verified - Updated -

Issue

  • When issuing perf top with kernel.kptr_restrict=2 set, the application exits with a segfault.
# perf top
perf: Segmentation fault
-------- backtrace --------
perf[0x4ff3cb]
/lib64/libc.so.6(+0x35670)[0x7f706bc96670]
perf[0x4375e4]
perf(cmd_top+0xdbd)[0x43940d]
perf[0x471035]
perf(main+0x610)[0x41d270]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f706bc82b15]
perf[0x41d389]

Environment

  • Red Hat Enterprise Linux 7
    • perf

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.