lkml.org 
[lkml]   [2009]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/6] ftrace, x86: make kernel text writable only for conversions

* Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:

> Can you provide numbers to indicate why it's required to be so
> intrusive in the kernel mappings while doing these
> modifications ? I think opening such time window where
> standard code mapping is writeable globally in config RO_DATA
> kernels could open the door to unexpected side-effects, so
> ideally going through the "backdoor" page mapped by text_poke
> seems safer. Given similar performance, I would tend to use a
> text_poke-like approach.

It's not really an issue - this code is only called during
normal operation if the admin does it.

As far as scare mongering goes a "backdoor" page is in fact more
attackable because it's at a more predictable position and due
to text-poke's slowness the window of vulnerability is longer.

Anyway, this is all pretty theoretical and irrelevant. The
purpose of RODATA is mainly to protect against benign/unintended
sources of kernel text corruption. An attacker, if he can modify
arbitrary kernel text address can already modify other critical
data structures to gain access.

Ingo


\
 
 \ /
  Last update: 2009-02-23 10:05    [W:0.104 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site