Description of problem: when /proc/sys/kernel/kptr_restrict is set to 2 and there are some ebpf progs loaded on the system, executing 'perf top' may cause segment fault. Version-Release number of selected component (if applicable): both 5.10 and 4.19 How reproducible: Stable reproduction Steps to Reproduce: 1.load 'sched_cls' ebpf prog 2.echo 2 > /proc/sys/kernel/kptr_restrict 3.perf top Actual results: perf: segmentation fault Expected results: Additional info:
sorry ,there is a mistake. this problem not found on 4.19