Lines Matching refs:pre

44                    used to cleanup pre-patch callback resources
48 symmetry: pre-patch callbacks have a post-unpatch counterpart and
49 post-patch callbacks have a pre-unpatch counterpart. An unpatch
62 The pre-patch callback, if specified, is expected to return a status
65 safe and to stop the current patching request. (When no pre-patch
67 pre-patch callback returns failure, the kernel's module loader will:
77 No post-patch, pre-unpatch, or post-unpatch callbacks will be executed
81 If a patch transition is reversed, no pre-unpatch handlers will be run
82 (this follows the previously mentioned symmetry -- pre-unpatch callbacks
96 A pre-patch callback can be useful to update a global variable. For
111 may be possible to implement similar updates via pre/post-patch
116 pre/post-patch callback could iterate over all such devices, making a
125 pre/post-(un)patch combination, but a selection that demonstrates a few
149 On livepatch enable, before the livepatch transition starts, pre-patch
166 Similarly, on livepatch disable, pre-patch callbacks run before the
199 On livepatch enable, only pre/post-patch callbacks are executed for
211 When a targeted module is subsequently loaded, only its pre/post-patch
221 livepatch_callbacks_mod) pre/post-unpatch callbacks are executed:
268 that klp_object (livepatch_callbacks_mod). As such, only its pre and
277 When the livepatch is disabled, pre and post-unpatch callbacks are run
316 pre/post-patch callbacks are executed:
325 the livepatch_callbacks_mod klp_object. As such, only pre and
366 As expected, only pre/post-(un)patch handlers are executed for vmlinux:
382 Test a scenario where a vmlinux pre-patch callback returns a non-zero
395 (-ENODEV). When its vmlinux pre-patch callback executed, this status
403 [ 82.748237] livepatch: pre-patch callback failed for object 'vmlinux'
418 pre-patch callback returns success. However, when a targeted kernel
427 Load the livepatch, notice vmlinux pre-patch callback succeeds:
438 Set a trap so subsequent pre-patch callbacks to this livepatch will
443 The livepatch pre-patch callback for subsequently loaded target modules
445 module. Notice that no post-patch or pre/post-unpatch callbacks are
451 [ 90.798900] livepatch: pre-patch callback failed for object 'livepatch_callbacks_mod'
455 However, pre/post-unpatch callbacks run for the vmlinux klp_object:
583 transitioning, so its pre-unpatch callbacks are skipped:
592 pre-unpatch callbacks are skipped: