[ 97.387390] Running test [R:12651096 T:6 - Livepatch kselftests - Kernel: 5.14.0-168.mr1359_220923_1526.el9.x86_64] [ 111.974129] livepatch: kernel.ftrace_enabled = 1 [ 111.979341] ===== TEST: target module before livepatch ===== [ 111.988750] % modprobe test_klp_callbacks_mod [ 111.993634] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 112.003096] % modprobe test_klp_callbacks_demo [ 112.007559] test_klp_callbacks_demo: tainting kernel with TAINT_LIVEPATCH [ 112.009150] livepatch: enabling patch 'test_klp_callbacks_demo' [ 112.010361] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 112.010406] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 112.011610] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 112.013822] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 112.015516] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 112.015549] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 112.016780] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 112.018858] livepatch: 'test_klp_callbacks_demo': patching complete [ 112.022996] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 112.024564] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 112.024592] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 112.025846] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 112.027941] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 112.029677] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 112.029714] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 112.031127] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 112.033495] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 112.036830] % rmmod test_klp_callbacks_demo [ 112.048142] % rmmod test_klp_callbacks_mod [ 112.051294] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 112.070619] ===== TEST: module_coming notifier ===== [ 112.080019] % modprobe test_klp_callbacks_demo [ 112.085175] livepatch: enabling patch 'test_klp_callbacks_demo' [ 112.086540] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 112.086584] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 112.087932] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 112.089590] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 112.089622] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 112.090853] livepatch: 'test_klp_callbacks_demo': patching complete [ 112.101703] % modprobe test_klp_callbacks_mod [ 112.105910] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 112.107945] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 112.110376] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 112.112901] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 112.115037] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 112.116701] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 112.116742] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 112.118085] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 112.120398] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 113.411825] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 113.411863] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 113.413321] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 113.415546] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 113.448924] % rmmod test_klp_callbacks_demo [ 113.460137] % rmmod test_klp_callbacks_mod [ 113.463335] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 113.479977] ===== TEST: module_going notifier ===== [ 113.488139] % modprobe test_klp_callbacks_mod [ 113.492466] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 113.501673] % modprobe test_klp_callbacks_demo [ 113.506275] livepatch: enabling patch 'test_klp_callbacks_demo' [ 113.507573] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 113.507622] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 113.508889] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 113.510956] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 113.512747] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 113.512800] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 113.514025] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 113.516091] livepatch: 'test_klp_callbacks_demo': patching complete [ 113.521492] % rmmod test_klp_callbacks_mod [ 113.524654] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 113.525971] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 113.528058] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 113.530012] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 113.538395] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 113.539866] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 113.539895] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 113.541147] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 114.371648] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 114.371696] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 114.373004] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 114.461473] % rmmod test_klp_callbacks_demo [ 114.487032] ===== TEST: module_coming and module_going notifiers ===== [ 114.498277] % modprobe test_klp_callbacks_demo [ 114.503814] livepatch: enabling patch 'test_klp_callbacks_demo' [ 114.505228] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 114.505273] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 114.506828] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 115.395746] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 115.395810] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 115.397089] livepatch: 'test_klp_callbacks_demo': patching complete [ 115.455716] % modprobe test_klp_callbacks_mod [ 115.460149] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 115.462180] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 115.464642] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 115.467416] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 115.471526] % rmmod test_klp_callbacks_mod [ 115.474731] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 115.476062] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 115.478162] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 115.480204] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 115.488252] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 115.489766] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 115.489811] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 115.491074] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 116.355620] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 116.355746] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 116.357217] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 116.412451] % rmmod test_klp_callbacks_demo [ 116.442710] ===== TEST: target module not present ===== [ 116.451602] % modprobe test_klp_callbacks_demo [ 116.456384] livepatch: enabling patch 'test_klp_callbacks_demo' [ 116.457700] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 116.457747] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 116.459016] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 117.379441] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 117.379647] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 117.381358] livepatch: 'test_klp_callbacks_demo': patching complete [ 117.396648] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 117.398397] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 117.398433] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 117.399892] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 117.401774] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 117.401815] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 117.403286] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 117.406901] % rmmod test_klp_callbacks_demo [ 117.430917] ===== TEST: pre-patch callback -ENODEV ===== [ 117.440454] % modprobe test_klp_callbacks_mod [ 117.444868] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 117.447221] % modprobe test_klp_callbacks_demo pre_patch_ret=-19 [ 117.452444] livepatch: enabling patch 'test_klp_callbacks_demo' [ 117.453802] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 117.453864] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 117.455230] livepatch: pre-patch callback failed for object 'vmlinux' [ 117.456603] livepatch: failed to enable patch 'test_klp_callbacks_demo' [ 117.457961] livepatch: 'test_klp_callbacks_demo': canceling patching transition, going to unpatch [ 117.457963] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 117.458056] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 117.486206] modprobe: ERROR: could not insert 'test_klp_callbacks_demo': No such device [ 117.490222] % rmmod test_klp_callbacks_mod [ 117.493847] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 117.515142] ===== TEST: module_coming + pre-patch callback -ENODEV ===== [ 117.525379] % modprobe test_klp_callbacks_demo [ 117.530782] livepatch: enabling patch 'test_klp_callbacks_demo' [ 117.532166] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 117.532214] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 117.533605] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 117.535433] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 117.535470] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 117.536859] livepatch: 'test_klp_callbacks_demo': patching complete [ 117.541088] % echo -19 > /sys/module/test_klp_callbacks_demo/parameters/pre_patch_ret [ 117.544840] % modprobe test_klp_callbacks_mod [ 117.549431] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 117.551476] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 117.554223] livepatch: pre-patch callback failed for object 'test_klp_callbacks_mod' [ 117.555998] livepatch: patch 'test_klp_callbacks_demo' failed for module 'test_klp_callbacks_mod', refusing to load module 'test_klp_callbacks_mod' [ 117.575221] modprobe: ERROR: could not insert 'test_klp_callbacks_mod': No such device [ 117.577169] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 117.578685] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 117.578716] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 117.580002] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 118.403310] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 118.403355] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 118.404764] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 118.502975] % rmmod test_klp_callbacks_demo [ 118.527358] ===== TEST: multiple target modules ===== [ 118.536988] % modprobe test_klp_callbacks_busy block_transition=N [ 118.542155] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 118.543562] test_klp_callbacks_busy: busymod_work_func enter [ 118.544851] test_klp_callbacks_busy: busymod_work_func exit [ 118.555531] % modprobe test_klp_callbacks_demo [ 118.561759] livepatch: enabling patch 'test_klp_callbacks_demo' [ 118.563076] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 118.563128] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 118.564353] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 118.569972] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 119.363352] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 119.363476] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 119.364766] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 119.366865] livepatch: 'test_klp_callbacks_demo': patching complete [ 119.412499] % modprobe test_klp_callbacks_mod [ 119.417234] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 119.419396] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 119.422142] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 119.424926] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 119.429025] % rmmod test_klp_callbacks_mod [ 119.432378] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 119.433701] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 119.435785] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 119.437741] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 119.445957] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 119.447440] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 119.447482] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 119.448734] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 119.451004] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 120.387166] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 120.414207] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 120.415534] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 120.417669] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 120.474345] % rmmod test_klp_callbacks_demo [ 120.492696] % rmmod test_klp_callbacks_busy [ 120.495976] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 120.518562] ===== TEST: busy target module ===== [ 120.526846] % modprobe test_klp_callbacks_busy block_transition=Y [ 120.531539] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 120.532806] test_klp_callbacks_busy: busymod_work_func enter [ 120.542431] % modprobe test_klp_callbacks_demo [ 120.547663] livepatch: enabling patch 'test_klp_callbacks_demo' [ 120.548881] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 120.548930] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 120.550139] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 120.555693] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 120.567237] % modprobe test_klp_callbacks_mod [ 120.571339] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 120.573296] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 120.575797] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 120.579694] % rmmod test_klp_callbacks_mod [ 120.582841] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 120.584176] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 120.586147] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 120.595950] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 120.597540] livepatch: 'test_klp_callbacks_demo': reversing transition from patching to unpatching [ 120.597606] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 121.411546] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 121.432140] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 121.433453] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 121.435578] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 121.518645] % rmmod test_klp_callbacks_demo [ 121.530603] % rmmod test_klp_callbacks_busy [ 121.545086] test_klp_callbacks_busy: busymod_work_func exit [ 121.546266] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 121.566897] ===== TEST: multiple livepatches ===== [ 121.575652] % modprobe test_klp_callbacks_demo [ 121.580313] livepatch: enabling patch 'test_klp_callbacks_demo' [ 121.581545] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 121.581591] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 121.582801] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 122.371085] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 122.371213] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 122.372582] livepatch: 'test_klp_callbacks_demo': patching complete [ 122.427197] % modprobe test_klp_callbacks_demo2 [ 122.432066] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 122.433372] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 122.433424] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 122.434652] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 123.394990] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 123.395108] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 123.396413] livepatch: 'test_klp_callbacks_demo2': patching complete [ 123.478475] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 123.480025] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 123.480063] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 123.481351] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 124.418880] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 124.418994] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 124.420322] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 124.501083] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 124.502604] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 124.502629] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 124.503874] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 124.505532] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 124.505576] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 124.506894] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 124.510407] % rmmod test_klp_callbacks_demo2 [ 124.522238] % rmmod test_klp_callbacks_demo [ 124.545871] ===== TEST: atomic replace ===== [ 124.554890] % modprobe test_klp_callbacks_demo [ 124.559728] livepatch: enabling patch 'test_klp_callbacks_demo' [ 124.561014] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 124.561054] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 124.562263] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 124.563883] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 124.563911] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 124.565140] livepatch: 'test_klp_callbacks_demo': patching complete [ 124.576618] % modprobe test_klp_callbacks_demo2 replace=1 [ 124.581333] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 124.582555] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 124.582579] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 124.583804] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 124.585424] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 124.585460] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 124.586708] livepatch: 'test_klp_callbacks_demo2': patching complete [ 124.590890] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 124.592516] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 124.592536] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 124.593847] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 124.595683] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 124.595711] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 124.597045] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 124.600185] % rmmod test_klp_callbacks_demo2 [ 124.612144] % rmmod test_klp_callbacks_demo