[ 99.537199] Running test [R:12673253 T:6 - Livepatch kselftests - Kernel: 5.14.0-169.mr1402_220928_1321.el9.x86_64] [ 113.777140] livepatch: kernel.ftrace_enabled = 1 [ 113.781796] ===== TEST: target module before livepatch ===== [ 113.790956] % modprobe test_klp_callbacks_mod [ 113.795785] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 113.805883] % modprobe test_klp_callbacks_demo [ 113.810210] test_klp_callbacks_demo: tainting kernel with TAINT_LIVEPATCH [ 113.811767] livepatch: enabling patch 'test_klp_callbacks_demo' [ 113.812950] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 113.812990] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 113.814181] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 113.816229] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 113.817902] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 113.817933] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 113.819147] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 113.821210] livepatch: 'test_klp_callbacks_demo': patching complete [ 113.825226] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 113.826790] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 113.826820] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 113.828059] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 113.830136] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 115.472755] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 115.472951] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 115.474756] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 115.476864] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 115.564082] % rmmod test_klp_callbacks_demo [ 115.580035] % rmmod test_klp_callbacks_mod [ 115.583143] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 115.600969] ===== TEST: module_coming notifier ===== [ 115.609067] % modprobe test_klp_callbacks_demo [ 115.613564] livepatch: enabling patch 'test_klp_callbacks_demo' [ 115.614741] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 115.614772] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 115.615932] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 116.431682] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 116.431748] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 116.433548] livepatch: 'test_klp_callbacks_demo': patching complete [ 116.453666] % modprobe test_klp_callbacks_mod [ 116.458095] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 116.459993] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 116.462457] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 116.464923] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 116.466914] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 116.468399] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 116.468435] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 116.469690] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 116.471749] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 117.455746] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 117.455877] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 117.457154] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 117.459191] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 117.494533] % rmmod test_klp_callbacks_demo [ 117.506875] % rmmod test_klp_callbacks_mod [ 117.509990] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 117.528769] ===== TEST: module_going notifier ===== [ 117.537028] % modprobe test_klp_callbacks_mod [ 117.541262] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 117.550321] % modprobe test_klp_callbacks_demo [ 117.554800] livepatch: enabling patch 'test_klp_callbacks_demo' [ 117.555969] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 117.556012] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 117.557172] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 117.559217] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 118.479775] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 118.479914] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 118.481763] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 118.484809] livepatch: 'test_klp_callbacks_demo': patching complete [ 118.500453] % rmmod test_klp_callbacks_mod [ 118.504518] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 118.505887] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 118.507955] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 118.509907] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 118.518194] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 118.519663] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 118.519698] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 118.520980] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 119.439485] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 119.439524] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 119.440841] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 119.544543] % rmmod test_klp_callbacks_demo [ 119.566844] ===== TEST: module_coming and module_going notifiers ===== [ 119.575613] % modprobe test_klp_callbacks_demo [ 119.580313] livepatch: enabling patch 'test_klp_callbacks_demo' [ 119.581546] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 119.581584] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 119.582793] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 119.584440] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 119.584487] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 119.585729] livepatch: 'test_klp_callbacks_demo': patching complete [ 119.597120] % modprobe test_klp_callbacks_mod [ 119.601192] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 119.603073] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 119.605428] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 119.607839] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 119.611800] % rmmod test_klp_callbacks_mod [ 119.614865] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 119.616154] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 119.618219] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 119.620150] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 119.638068] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 119.639557] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 119.639579] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 119.640810] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 119.642457] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 119.642487] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 119.643741] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 119.646844] % rmmod test_klp_callbacks_demo [ 119.669942] ===== TEST: target module not present ===== [ 119.678360] % modprobe test_klp_callbacks_demo [ 119.683023] livepatch: enabling patch 'test_klp_callbacks_demo' [ 119.684247] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 119.684266] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 119.685485] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 121.487311] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 121.487437] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 121.488734] livepatch: 'test_klp_callbacks_demo': patching complete [ 121.551463] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 121.552994] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 121.553019] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 121.554270] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 122.447338] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 122.447462] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 122.448740] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 122.474478] % rmmod test_klp_callbacks_demo [ 122.501510] ===== TEST: pre-patch callback -ENODEV ===== [ 122.509848] % modprobe test_klp_callbacks_mod [ 122.514111] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 122.516686] % modprobe test_klp_callbacks_demo pre_patch_ret=-19 [ 122.521618] livepatch: enabling patch 'test_klp_callbacks_demo' [ 122.522842] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 122.522887] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 122.524092] livepatch: pre-patch callback failed for object 'vmlinux' [ 122.525387] livepatch: failed to enable patch 'test_klp_callbacks_demo' [ 122.526726] livepatch: 'test_klp_callbacks_demo': canceling patching transition, going to unpatch [ 122.526728] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 122.526807] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 122.549822] modprobe: ERROR: could not insert 'test_klp_callbacks_demo': No such device [ 122.553206] % rmmod test_klp_callbacks_mod [ 122.556359] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 122.581542] ===== TEST: module_coming + pre-patch callback -ENODEV ===== [ 122.590485] % modprobe test_klp_callbacks_demo [ 122.595237] livepatch: enabling patch 'test_klp_callbacks_demo' [ 122.596452] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 122.596478] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 122.597703] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 123.471193] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 123.471335] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 123.472592] livepatch: 'test_klp_callbacks_demo': patching complete [ 123.534883] % echo -19 > /sys/module/test_klp_callbacks_demo/parameters/pre_patch_ret [ 123.538513] % modprobe test_klp_callbacks_mod [ 123.543042] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 123.544917] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 123.547593] livepatch: pre-patch callback failed for object 'test_klp_callbacks_mod' [ 123.549082] livepatch: patch 'test_klp_callbacks_demo' failed for module 'test_klp_callbacks_mod', refusing to load module 'test_klp_callbacks_mod' [ 123.563794] modprobe: ERROR: could not insert 'test_klp_callbacks_mod': No such device [ 123.565437] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 123.566925] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 123.566966] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 123.568236] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 124.494968] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 124.495004] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 124.496329] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 124.590027] % rmmod test_klp_callbacks_demo [ 124.617305] ===== TEST: multiple target modules ===== [ 124.626008] % modprobe test_klp_callbacks_busy block_transition=N [ 124.630605] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 124.631818] test_klp_callbacks_busy: busymod_work_func enter [ 124.632923] test_klp_callbacks_busy: busymod_work_func exit [ 124.642022] % modprobe test_klp_callbacks_demo [ 124.647367] livepatch: enabling patch 'test_klp_callbacks_demo' [ 124.648534] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 124.648569] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 124.649735] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 124.654862] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 125.454951] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 125.455061] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 125.456334] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 125.458426] livepatch: 'test_klp_callbacks_demo': patching complete [ 125.492950] % modprobe test_klp_callbacks_mod [ 125.497107] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 125.499027] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 125.501436] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 125.503902] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 125.507664] % rmmod test_klp_callbacks_mod [ 125.510918] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 125.512222] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 125.514277] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 125.516208] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 125.525619] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 125.527064] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 125.527093] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 125.528286] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 125.530328] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 125.531924] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 125.559947] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 125.561250] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 125.563389] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 125.566988] % rmmod test_klp_callbacks_demo [ 125.579608] % rmmod test_klp_callbacks_busy [ 125.583032] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 125.604768] ===== TEST: busy target module ===== [ 125.613328] % modprobe test_klp_callbacks_busy block_transition=Y [ 125.618117] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 125.619359] test_klp_callbacks_busy: busymod_work_func enter [ 125.628807] % modprobe test_klp_callbacks_demo [ 125.634158] livepatch: enabling patch 'test_klp_callbacks_demo' [ 125.635384] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 125.635428] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 125.636630] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 125.642086] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 125.654327] % modprobe test_klp_callbacks_mod [ 125.658550] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 125.660462] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 125.662998] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 125.666817] % rmmod test_klp_callbacks_mod [ 125.669966] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 125.671267] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 125.673199] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 125.686602] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 125.688068] livepatch: 'test_klp_callbacks_demo': reversing transition from patching to unpatching [ 125.688127] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 126.479204] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 126.503920] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 126.505219] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 126.507346] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 126.612271] % rmmod test_klp_callbacks_demo [ 126.627435] % rmmod test_klp_callbacks_busy [ 126.632757] test_klp_callbacks_busy: busymod_work_func exit [ 126.633887] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 126.655721] ===== TEST: multiple livepatches ===== [ 126.664715] % modprobe test_klp_callbacks_demo [ 126.669475] livepatch: enabling patch 'test_klp_callbacks_demo' [ 126.670675] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 126.670717] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 126.671906] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 127.438833] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 127.438955] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 127.440213] livepatch: 'test_klp_callbacks_demo': patching complete [ 127.516631] % modprobe test_klp_callbacks_demo2 [ 127.521521] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 127.522773] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 127.522815] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 127.524041] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 127.525706] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 127.525740] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 127.526993] livepatch: 'test_klp_callbacks_demo2': patching complete [ 127.531579] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 127.533074] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 127.533096] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 127.534346] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 128.463626] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 128.463674] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 128.464976] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 128.557435] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 128.558950] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 128.558979] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 128.560215] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 128.561839] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 128.561884] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 128.563131] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 128.566527] % rmmod test_klp_callbacks_demo2 [ 128.581224] % rmmod test_klp_callbacks_demo [ 128.608823] ===== TEST: atomic replace ===== [ 128.617433] % modprobe test_klp_callbacks_demo [ 128.622057] livepatch: enabling patch 'test_klp_callbacks_demo' [ 128.623267] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 128.623296] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 128.624504] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 129.486613] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 129.486674] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 129.487927] livepatch: 'test_klp_callbacks_demo': patching complete [ 129.569722] % modprobe test_klp_callbacks_demo2 replace=1 [ 129.575054] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 129.576293] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 129.576335] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 129.577559] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 130.446490] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 130.446574] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 130.447964] livepatch: 'test_klp_callbacks_demo2': patching complete [ 130.516251] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 130.517951] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 130.518004] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 130.519410] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 130.521285] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 130.521321] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 130.522742] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 130.526459] % rmmod test_klp_callbacks_demo2 [ 130.538256] % rmmod test_klp_callbacks_demo