aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/livepatch.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-01-31 16:02:18 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-01-31 16:02:18 -0500
commite1c70f32386c4984ed8ca1a7aedb9bbff9ed3414 (patch)
tree09a9092c1ea56b1d9c218a77b2510036b509f225 /include/linux/livepatch.h
parent183b6366cf473ff0e706a6751adc082faa44843d (diff)
parentd05b695c25bf0d704c74e0e1375de893531b9424 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching
Pull livepatching updates from Jiri Kosina: - handle 'infinitely'-long sleeping tasks, from Miroslav Benes - remove 'immediate' feature, as it turns out it doesn't provide the originally expected semantics, and brings more issues than value * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/livepatching: livepatch: add locking to force and signal functions livepatch: Remove immediate feature livepatch: force transition to finish livepatch: send a fake signal to all blocking tasks
Diffstat (limited to 'include/linux/livepatch.h')
-rw-r--r--include/linux/livepatch.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/livepatch.h b/include/linux/livepatch.h
index fc5c1be3f6f4..4754f01c1abb 100644
--- a/include/linux/livepatch.h
+++ b/include/linux/livepatch.h
@@ -40,7 +40,6 @@
40 * @new_func: pointer to the patched function code 40 * @new_func: pointer to the patched function code
41 * @old_sympos: a hint indicating which symbol position the old function 41 * @old_sympos: a hint indicating which symbol position the old function
42 * can be found (optional) 42 * can be found (optional)
43 * @immediate: patch the func immediately, bypassing safety mechanisms
44 * @old_addr: the address of the function being patched 43 * @old_addr: the address of the function being patched
45 * @kobj: kobject for sysfs resources 44 * @kobj: kobject for sysfs resources
46 * @stack_node: list node for klp_ops func_stack list 45 * @stack_node: list node for klp_ops func_stack list
@@ -76,7 +75,6 @@ struct klp_func {
76 * in kallsyms for the given object is used. 75 * in kallsyms for the given object is used.
77 */ 76 */
78 unsigned long old_sympos; 77 unsigned long old_sympos;
79 bool immediate;
80 78
81 /* internal */ 79 /* internal */
82 unsigned long old_addr; 80 unsigned long old_addr;
@@ -137,7 +135,6 @@ struct klp_object {
137 * struct klp_patch - patch structure for live patching 135 * struct klp_patch - patch structure for live patching
138 * @mod: reference to the live patch module 136 * @mod: reference to the live patch module
139 * @objs: object entries for kernel objects to be patched 137 * @objs: object entries for kernel objects to be patched
140 * @immediate: patch all funcs immediately, bypassing safety mechanisms
141 * @list: list node for global list of registered patches 138 * @list: list node for global list of registered patches
142 * @kobj: kobject for sysfs resources 139 * @kobj: kobject for sysfs resources
143 * @enabled: the patch is enabled (but operation may be incomplete) 140 * @enabled: the patch is enabled (but operation may be incomplete)
@@ -147,7 +144,6 @@ struct klp_patch {
147 /* external */ 144 /* external */
148 struct module *mod; 145 struct module *mod;
149 struct klp_object *objs; 146 struct klp_object *objs;
150 bool immediate;
151 147
152 /* internal */ 148 /* internal */
153 struct list_head list; 149 struct list_head list;