All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] livepatch: Remove not longer valid limitations from the documentation
@ 2018-05-23  7:47 Petr Mladek
  2018-05-23 13:07 ` Miroslav Benes
  2018-05-24 13:38 ` Jiri Kosina
  0 siblings, 2 replies; 4+ messages in thread
From: Petr Mladek @ 2018-05-23  7:47 UTC (permalink / raw)
  To: Jiri Kosina, Josh Poimboeuf, Miroslav Benes
  Cc: Joe Lawrence, Jessica Yu, live-patching, linux-kernel, Petr Mladek

Semantic changes are possible since the commit d83a7cb375eec21f04
("livepatch: change to a per-task consistency model").

Also data structures can be patched since the commit 439e7271dc2b63de37
("livepatch: introduce shadow variable API").

It is a high time we removed these limitations from the documentation.

Signed-off-by: Petr Mladek <pmladek@suse.com>
---
I have found this when working on v12 of the atomic replace. It looks
like a no-brainer and does not conflict with the patchset, so ... ;-)

 Documentation/livepatch/livepatch.txt | 24 ------------------------
 1 file changed, 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.
 
 The current Livepatch implementation has several limitations:
 
-
-  + The patch must not change the semantic of the patched functions.
-
-    The current implementation guarantees only that either the old
-    or the new function is called. The functions are patched one
-    by one. It means that the patch must _not_ change the semantic
-    of the function.
-
-
-  + Data structures can not be patched.
-
-    There is no support to version data structures or anyhow migrate
-    one structure into another. Also the simple consistency model does
-    not allow to switch more functions atomically.
-
-    Once there is more complex consistency mode, it will be possible to
-    use some workarounds. For example, it will be possible to use a hole
-    for a new member because the data structure is aligned. Or it will
-    be possible to use an existing member for something else.
-
-    There are no plans to add more generic support for modified structures
-    at the moment.
-
-
   + Only functions that can be traced could be patched.
 
     Livepatch is based on the dynamic ftrace. In particular, functions
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] livepatch: Remove not longer valid limitations from the documentation
  2018-05-23  7:47 [PATCH] livepatch: Remove not longer valid limitations from the documentation Petr Mladek
@ 2018-05-23 13:07 ` Miroslav Benes
  2018-05-23 13:10   ` Josh Poimboeuf
  2018-05-24 13:38 ` Jiri Kosina
  1 sibling, 1 reply; 4+ messages in thread
From: Miroslav Benes @ 2018-05-23 13:07 UTC (permalink / raw)
  To: Petr Mladek
  Cc: Jiri Kosina, Josh Poimboeuf, Joe Lawrence, Jessica Yu,
	live-patching, linux-kernel


s/Remove not longer/Remove no longer/

On Wed, 23 May 2018, Petr Mladek wrote:

> Semantic changes are possible since the commit d83a7cb375eec21f04
> ("livepatch: change to a per-task consistency model").
> 
> Also data structures can be patched since the commit 439e7271dc2b63de37
> ("livepatch: introduce shadow variable API").
> 
> It is a high time we removed these limitations from the documentation.
> 
> Signed-off-by: Petr Mladek <pmladek@suse.com>

Acked-by: Miroslav Benes <mbenes@suse.cz>

M

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] livepatch: Remove not longer valid limitations from the documentation
  2018-05-23 13:07 ` Miroslav Benes
@ 2018-05-23 13:10   ` Josh Poimboeuf
  0 siblings, 0 replies; 4+ messages in thread
From: Josh Poimboeuf @ 2018-05-23 13:10 UTC (permalink / raw)
  To: Miroslav Benes
  Cc: Petr Mladek, Jiri Kosina, Joe Lawrence, Jessica Yu,
	live-patching, linux-kernel

On Wed, May 23, 2018 at 03:07:05PM +0200, Miroslav Benes wrote:
> 
> s/Remove not longer/Remove no longer/
> 
> On Wed, 23 May 2018, Petr Mladek wrote:
> 
> > Semantic changes are possible since the commit d83a7cb375eec21f04
> > ("livepatch: change to a per-task consistency model").
> > 
> > Also data structures can be patched since the commit 439e7271dc2b63de37
> > ("livepatch: introduce shadow variable API").
> > 
> > It is a high time we removed these limitations from the documentation.
> > 
> > Signed-off-by: Petr Mladek <pmladek@suse.com>
> 
> Acked-by: Miroslav Benes <mbenes@suse.cz>

Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>

-- 
Josh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] livepatch: Remove not longer valid limitations from the documentation
  2018-05-23  7:47 [PATCH] livepatch: Remove not longer valid limitations from the documentation Petr Mladek
  2018-05-23 13:07 ` Miroslav Benes
@ 2018-05-24 13:38 ` Jiri Kosina
  1 sibling, 0 replies; 4+ messages in thread
From: Jiri Kosina @ 2018-05-24 13:38 UTC (permalink / raw)
  To: Petr Mladek
  Cc: Josh Poimboeuf, Miroslav Benes, Joe Lawrence, Jessica Yu,
	live-patching, linux-kernel

On Wed, 23 May 2018, Petr Mladek wrote:

> Semantic changes are possible since the commit d83a7cb375eec21f04
> ("livepatch: change to a per-task consistency model").
> 
> Also data structures can be patched since the commit 439e7271dc2b63de37
> ("livepatch: introduce shadow variable API").
> 
> It is a high time we removed these limitations from the documentation.
> 
> Signed-off-by: Petr Mladek <pmladek@suse.com>
> ---
> I have found this when working on v12 of the atomic replace. It looks
> like a no-brainer and does not conflict with the patchset, so ... ;-)

Applied, thanks.

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-05-24 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-23  7:47 [PATCH] livepatch: Remove not longer valid limitations from the documentation Petr Mladek
2018-05-23 13:07 ` Miroslav Benes
2018-05-23 13:10   ` Josh Poimboeuf
2018-05-24 13:38 ` Jiri Kosina

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.