"
kcov exposes kernel PCs and control flow to user-space which is
insecure. But debugfs should not be mapped as user accessible."
Keep in mind that the Android security update release team would consider
this a high on the vulnerability scale and have required code to be
removed, neutered or deactivated. I notice that in our kernels (4.9)
we do not have a base or recommended action w.r.t. KCOV.
We probably should.
File a bug to Android->Android O & Apps->system cc to android-kernel-team+aosp_reviews@ so this can be prioritized, scoped and/or evaluated. We may Cc: with android-security-bugs@ for their feedback at that point. Please put these concerns in the bug description.
-- Mark