]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch: doc: remove the limitation for schedule() patching
authorMiroslav Benes <mbenes@suse.cz>
Fri, 6 Jan 2017 14:00:45 +0000 (15:00 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 11 Jan 2017 01:33:39 +0000 (02:33 +0100)
commit372e2db7210df7c45ead46429aeb1443ba148060
tree57c22c2df311ba846cdff8090329b8e1a230f151
parentb766922e65356df38a57b09afab6c3d7bf7e024d
livepatch: doc: remove the limitation for schedule() patching

The Limitations section of the documentation describes the impossibility
to livepatch anything that is inlined to __schedule() function. This had
been true till 4.9 kernel came. Thanks to commit 0100301bfdf5
("sched/x86: Rewrite the switch_to() code") from Brian Gerst there is
__switch_to_asm function now (implemented in assembly) called properly
from context_switch(). RIP is thus saved on the stack and a task would
return to proper version of __schedule() et al. functions.

Of course __switch_to_asm() is not patchable for the reason described in
the section. But there is no __fentry__ call and I cannot imagine a
reason to do it anyway.

Therefore, remove the paragraphs from the section.

Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Documentation/livepatch/livepatch.txt