Re: [PATCH v3] perf tools: perf_event_paranoid and kptr_restrict may crash on 'perf top'

2021-03-15 Thread Jiri Olsa
On Sat, Mar 13, 2021 at 02:02:46PM +0800, Jackie Liu wrote: > After install the libelf-dev package and compiling perf, kptr_restrict=2 > and perf_event_paranoid=3 will cause perf top to crash, because the > value of /proc/kallsyms cannot be obtained, which leads to > info->jited_ksyms == NULL. In o

[PATCH v3] perf tools: perf_event_paranoid and kptr_restrict may crash on 'perf top'

2021-03-12 Thread Jackie Liu
After install the libelf-dev package and compiling perf, kptr_restrict=2 and perf_event_paranoid=3 will cause perf top to crash, because the value of /proc/kallsyms cannot be obtained, which leads to info->jited_ksyms == NULL. In order to solve this problem, Add a judgment before use. V2->V3: free