In the Linux kernel, the following vulnerability has been resolved:
ARM: 9064/1: hwbreakpoint: Do not directly check the event's overflowhandler hook
The commit 1879445dfa7b ("perf/core: Set event's default ::overflowhandler()") set a default event->overflowhandler in perfeventalloc(), and replace the check event->overflowhandler with isdefaultoverflowhandler(), but one is missing.
Currently, the bp->overflowhandler can not be NULL. As a result, enablesingle_step() is always not invoked.
Comments from Zhen Lei:
https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210207105934.2001-1-thunder.leizhen@huawei.com/