'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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content