diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-08 13:27:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-08 13:27:41 -0400 |
commit | 9eb86c75494ee6a5f789bc6c11b43feff2ccfeb6 (patch) | |
tree | 4084759ee696cca29d88e82e5babb3d97f6d6eee | |
parent | 4a189982e293e662d719f5dd3ba6eec247d7bbc2 (diff) | |
parent | a48c7709fe42712e86d2d68e1c9c4d2ce14c6a16 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching
Pull livepatching fixlet from Jiri Kosina:
"livepatching documentation fix from Petr Mladek"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching:
livepatch: Remove not longer valid limitations from the documentation
-rw-r--r-- | Documentation/livepatch/livepatch.txt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Documentation/livepatch/livepatch.txt b/Documentation/livepatch/livepatch.txt index 1ae2de758c08..2d7ed09dbd59 100644 --- a/Documentation/livepatch/livepatch.txt +++ b/Documentation/livepatch/livepatch.txt | |||
@@ -429,30 +429,6 @@ See Documentation/ABI/testing/sysfs-kernel-livepatch for more details. | |||
429 | 429 | ||
430 | The current Livepatch implementation has several limitations: | 430 | The current Livepatch implementation has several limitations: |
431 | 431 | ||
432 | |||
433 | + The patch must not change the semantic of the patched functions. | ||
434 | |||
435 | The current implementation guarantees only that either the old | ||
436 | or the new function is called. The functions are patched one | ||
437 | by one. It means that the patch must _not_ change the semantic | ||
438 | of the function. | ||
439 | |||
440 | |||
441 | + Data structures can not be patched. | ||
442 | |||
443 | There is no support to version data structures or anyhow migrate | ||
444 | one structure into another. Also the simple consistency model does | ||
445 | not allow to switch more functions atomically. | ||
446 | |||
447 | Once there is more complex consistency mode, it will be possible to | ||
448 | use some workarounds. For example, it will be possible to use a hole | ||
449 | for a new member because the data structure is aligned. Or it will | ||
450 | be possible to use an existing member for something else. | ||
451 | |||
452 | There are no plans to add more generic support for modified structures | ||
453 | at the moment. | ||
454 | |||
455 | |||
456 | + Only functions that can be traced could be patched. | 432 | + Only functions that can be traced could be patched. |
457 | 433 | ||
458 | Livepatch is based on the dynamic ftrace. In particular, functions | 434 | Livepatch is based on the dynamic ftrace. In particular, functions |