[ 225.273926] Running test [R:13260147 T:7 - Livepatch kselftests - Kernel: 5.14.0-239.1872_752481554.el9.x86_64+debug] [ 272.378728] livepatch: kernel.ftrace_enabled = 1 [ 272.421174] ===== TEST: target module before livepatch ===== [ 272.496185] % modprobe test_klp_callbacks_mod [ 272.540188] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 272.623598] % modprobe test_klp_callbacks_demo [ 272.654483] test_klp_callbacks_demo: tainting kernel with TAINT_LIVEPATCH [ 272.657926] livepatch: enabling patch 'test_klp_callbacks_demo' [ 272.658807] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 272.658974] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 272.659758] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 272.661028] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 272.663228] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 272.663729] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 272.664525] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 272.665809] livepatch: 'test_klp_callbacks_demo': patching complete [ 272.697210] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 272.699850] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 272.699939] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 272.700825] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 272.702126] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 272.704086] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 272.704557] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 272.705374] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 272.706852] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 272.727803] % rmmod test_klp_callbacks_demo [ 272.793058] % rmmod test_klp_callbacks_mod [ 272.817330] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 272.968372] ===== TEST: module_coming notifier ===== [ 273.041349] % modprobe test_klp_callbacks_demo [ 273.075728] livepatch: enabling patch 'test_klp_callbacks_demo' [ 273.076550] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 273.076632] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 273.077361] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 273.078897] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 273.079340] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 273.080156] livepatch: 'test_klp_callbacks_demo': patching complete [ 273.186140] % modprobe test_klp_callbacks_mod [ 273.217970] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 273.219201] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 273.220706] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 273.223053] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 273.234846] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 273.236360] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 273.236490] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 273.237264] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 273.238558] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 274.808554] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 274.809327] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 274.810177] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 274.811479] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 274.896200] % rmmod test_klp_callbacks_demo [ 274.963789] % rmmod test_klp_callbacks_mod [ 274.988479] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 275.134291] ===== TEST: module_going notifier ===== [ 275.208457] % modprobe test_klp_callbacks_mod [ 275.241443] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 275.323903] % modprobe test_klp_callbacks_demo [ 275.357421] livepatch: enabling patch 'test_klp_callbacks_demo' [ 275.358244] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 275.358324] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 275.359053] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 275.360553] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 276.791387] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 276.791849] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 276.792715] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 276.794030] livepatch: 'test_klp_callbacks_demo': patching complete [ 276.924693] % rmmod test_klp_callbacks_mod [ 276.949434] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 276.950548] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 276.951852] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 276.953064] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 276.980762] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 276.982359] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 276.982440] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 276.983314] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 277.815322] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 277.815512] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 277.816386] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 277.946362] % rmmod test_klp_callbacks_demo [ 278.129379] ===== TEST: module_coming and module_going notifiers ===== [ 278.204683] % modprobe test_klp_callbacks_demo [ 278.238611] livepatch: enabling patch 'test_klp_callbacks_demo' [ 278.239600] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 278.239681] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 278.240466] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 278.242079] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 278.242170] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 278.242918] livepatch: 'test_klp_callbacks_demo': patching complete [ 278.351649] % modprobe test_klp_callbacks_mod [ 278.383822] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 278.385305] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 278.386804] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 278.389192] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 278.422442] % rmmod test_klp_callbacks_mod [ 278.449937] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 278.451167] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 278.452492] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 278.453715] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 278.478907] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 278.480725] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 278.480807] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 278.481681] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 278.483218] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 278.484576] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 278.485550] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 278.507490] % rmmod test_klp_callbacks_demo [ 278.687392] ===== TEST: target module not present ===== [ 278.763116] % modprobe test_klp_callbacks_demo [ 278.797256] livepatch: enabling patch 'test_klp_callbacks_demo' [ 278.798272] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 278.798352] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 278.799138] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 278.801141] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 278.803713] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 278.804526] livepatch: 'test_klp_callbacks_demo': patching complete [ 278.838079] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 278.839563] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 278.839642] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 278.840469] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 278.842710] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 278.842821] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 278.843661] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 278.864411] % rmmod test_klp_callbacks_demo [ 279.041280] ===== TEST: pre-patch callback -ENODEV ===== [ 279.118687] % modprobe test_klp_callbacks_mod [ 279.154089] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 279.165467] % modprobe test_klp_callbacks_demo pre_patch_ret=-19 [ 279.199436] livepatch: enabling patch 'test_klp_callbacks_demo' [ 279.200270] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 279.200360] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 279.201129] livepatch: pre-patch callback failed for object 'vmlinux' [ 279.201903] livepatch: failed to enable patch 'test_klp_callbacks_demo' [ 279.202870] livepatch: 'test_klp_callbacks_demo': canceling patching transition, going to unpatch [ 279.202876] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 279.203362] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 279.234477] modprobe: ERROR: could not insert 'test_klp_callbacks_demo': No such device [ 279.256851] % rmmod test_klp_callbacks_mod [ 279.283640] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 279.446017] ===== TEST: module_coming + pre-patch callback -ENODEV ===== [ 279.521640] % modprobe test_klp_callbacks_demo [ 279.556805] livepatch: enabling patch 'test_klp_callbacks_demo' [ 279.557629] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 279.557710] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 279.558486] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 279.559978] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 279.560071] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 279.560827] livepatch: 'test_klp_callbacks_demo': patching complete [ 279.595252] % echo -19 > /sys/module/test_klp_callbacks_demo/parameters/pre_patch_ret [ 279.616595] % modprobe test_klp_callbacks_mod [ 279.650195] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 279.651488] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 279.652977] livepatch: pre-patch callback failed for object 'test_klp_callbacks_mod' [ 279.653951] livepatch: patch 'test_klp_callbacks_demo' failed for module 'test_klp_callbacks_mod', refusing to load module 'test_klp_callbacks_mod' [ 279.682768] modprobe: ERROR: could not insert 'test_klp_callbacks_mod': No such device [ 279.684327] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 279.685653] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 279.685735] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 279.686554] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 279.688117] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 279.688226] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 279.689049] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 279.709672] % rmmod test_klp_callbacks_demo [ 279.899648] ===== TEST: multiple target modules ===== [ 279.979268] % modprobe test_klp_callbacks_busy block_transition=N [ 280.013088] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 280.014088] test_klp_callbacks_busy: busymod_work_func enter [ 280.015050] test_klp_callbacks_busy: busymod_work_func exit [ 280.103824] % modprobe test_klp_callbacks_demo [ 280.142066] livepatch: enabling patch 'test_klp_callbacks_demo' [ 280.142898] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 280.142980] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 280.143710] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 280.153582] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 280.155262] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 280.159037] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 280.159815] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 280.161144] livepatch: 'test_klp_callbacks_demo': patching complete [ 280.267448] % modprobe test_klp_callbacks_mod [ 280.301083] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 280.302319] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 280.303799] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 280.306139] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 280.337654] % rmmod test_klp_callbacks_mod [ 280.362407] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 280.363500] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 280.364787] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 280.365994] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 280.388345] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 280.390234] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 280.390319] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 280.391139] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 280.392438] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 280.393980] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 280.419705] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 280.420619] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 280.422098] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 280.446072] % rmmod test_klp_callbacks_demo [ 280.520800] % rmmod test_klp_callbacks_busy [ 280.546465] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 280.719055] ===== TEST: busy target module ===== [ 280.798160] % modprobe test_klp_callbacks_busy block_transition=Y [ 280.834652] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 280.835669] test_klp_callbacks_busy: busymod_work_func enter [ 280.928570] % modprobe test_klp_callbacks_demo [ 280.964396] livepatch: enabling patch 'test_klp_callbacks_demo' [ 280.965536] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 280.965618] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 280.966396] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 280.974869] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 281.085775] % modprobe test_klp_callbacks_mod [ 281.119712] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 281.121082] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 281.123718] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 281.152988] % rmmod test_klp_callbacks_mod [ 281.179088] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 281.180184] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 281.181446] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 281.210818] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 281.212368] livepatch: 'test_klp_callbacks_demo': reversing transition from patching to unpatching [ 281.212545] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 281.784173] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 281.811887] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 281.812770] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 281.814079] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 281.942152] % rmmod test_klp_callbacks_demo [ 282.011510] % rmmod test_klp_callbacks_busy [ 282.051921] test_klp_callbacks_busy: busymod_work_func exit [ 282.055922] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 282.219942] ===== TEST: multiple livepatches ===== [ 282.293973] % modprobe test_klp_callbacks_demo [ 282.328576] livepatch: enabling patch 'test_klp_callbacks_demo' [ 282.329459] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 282.329539] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 282.330310] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 282.331817] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 282.332617] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 282.333436] livepatch: 'test_klp_callbacks_demo': patching complete [ 282.441518] % modprobe test_klp_callbacks_demo2 [ 282.475620] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 282.476636] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 282.476772] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 282.477603] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 282.479233] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 282.479334] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 282.480233] livepatch: 'test_klp_callbacks_demo2': patching complete [ 282.514052] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 282.515428] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 282.515506] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 282.516328] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 282.517909] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 282.518013] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 282.518836] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 282.523201] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 282.524507] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 282.524563] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 282.525368] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 282.526857] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 282.526961] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 282.527772] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 282.548952] % rmmod test_klp_callbacks_demo2 [ 282.623884] % rmmod test_klp_callbacks_demo [ 282.815758] ===== TEST: atomic replace ===== [ 282.893871] % modprobe test_klp_callbacks_demo [ 282.929454] livepatch: enabling patch 'test_klp_callbacks_demo' [ 282.930268] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 282.930347] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 282.931124] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 282.932723] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 282.932816] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 282.933559] livepatch: 'test_klp_callbacks_demo': patching complete [ 283.044172] % modprobe test_klp_callbacks_demo2 replace=1 [ 283.080923] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 283.081737] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 283.081817] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 283.082557] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 283.084117] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 283.086688] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 283.087530] livepatch: 'test_klp_callbacks_demo2': patching complete [ 283.123069] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 283.124475] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 283.124560] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 283.125506] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 283.127547] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 283.128580] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 283.129812] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 283.153149] % rmmod test_klp_callbacks_demo2 [ 283.220085] % rmmod test_klp_callbacks_demo