Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1711397
| From | Joe Lawrence <joe.lawrence@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4] livepatch: shadow variables |
| Date | 2017-08-14 22:10 +0200 |
| Message-ID | <uetQu-ae-17@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
v4
- klp_shadow_attach(), klp_shadow_get_or_attach(), and
klp_shadow_update_or_attach()
- fix up return values depending on whether a new_shadow
variable was allocated, or an existing one was used
- kfree new_shadow, not shadow_data when shadow variable is found
under the lock (2nd search try)
- refactor away most of the exit labels
- move klp_shadow_set() calls outside of the klp_shadow_lock
- fix multiline comment format
- klp_shadow_attach()
- drop unnecessary variable assignment for conditional
- s/shadow_match()/klp_shadow_match()/g
- klp_shadow_match(), klp_shadow_set(), klp_shadow_add()
- add "caller should hold lock" comments
- Documentation
- remove unnecessary klp_shadow_get() call in use-case
- s/its shadow variable lifetimes/their shadow variables lifetimes/
Joe Lawrence (1):
livepatch: introduce shadow variable API
Documentation/livepatch/shadow-vars.txt | 215 +++++++++++++++++
include/linux/livepatch.h | 10 +
kernel/livepatch/Makefile | 2 +-
kernel/livepatch/shadow.c | 382 ++++++++++++++++++++++++++++++
samples/Kconfig | 5 +-
samples/livepatch/Makefile | 3 +
samples/livepatch/livepatch-shadow-fix1.c | 174 ++++++++++++++
samples/livepatch/livepatch-shadow-fix2.c | 167 +++++++++++++
samples/livepatch/livepatch-shadow-mod.c | 224 ++++++++++++++++++
9 files changed, 1178 insertions(+), 4 deletions(-)
create mode 100644 Documentation/livepatch/shadow-vars.txt
create mode 100644 kernel/livepatch/shadow.c
create mode 100644 samples/livepatch/livepatch-shadow-fix1.c
create mode 100644 samples/livepatch/livepatch-shadow-fix2.c
create mode 100644 samples/livepatch/livepatch-shadow-mod.c
--
1.8.3.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v4] livepatch: shadow variables Joe Lawrence <joe.lawrence@redhat.com> - 2017-08-14 22:10 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Josh Poimboeuf <jpoimboe@redhat.com> - 2017-08-15 16:00 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Miroslav Benes <mbenes@suse.cz> - 2017-08-16 14:50 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Joe Lawrence <joe.lawrence@redhat.com> - 2017-08-16 15:50 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Petr Mladek <pmladek@suse.com> - 2017-08-17 16:10 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Joe Lawrence <joe.lawrence@redhat.com> - 2017-08-17 18:10 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Josh Poimboeuf <jpoimboe@redhat.com> - 2017-08-17 18:30 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Petr Mladek <pmladek@suse.com> - 2017-08-18 11:50 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Josh Poimboeuf <jpoimboe@redhat.com> - 2017-08-18 21:10 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Joe Lawrence <joe.lawrence@redhat.com> - 2017-08-18 15:50 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Petr Mladek <pmladek@suse.com> - 2017-08-18 18:20 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Joe Lawrence <joe.lawrence@redhat.com> - 2017-08-18 22:30 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Petr Mladek <pmladek@suse.com> - 2017-08-21 13:30 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Nicolai Stange <nstange@suse.de> - 2017-08-18 15:50 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Petr Mladek <pmladek@suse.com> - 2017-08-18 16:10 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Joe Lawrence <joe.lawrence@redhat.com> - 2017-08-18 16:30 +0200
Re: [PATCH v4] livepatch: introduce shadow variable API Nicolai Stange <nstange@suse.de> - 2017-08-18 16:50 +0200
csiph-web