[ 206.270568] Running test [R:13286695 T:7 - Livepatch kselftests - Kernel: 5.14.0-243.1946_757261768.el9.x86_64+debug] [ 268.641651] livepatch: kernel.ftrace_enabled = 1 [ 268.673470] ===== TEST: target module before livepatch ===== [ 268.745898] % modprobe test_klp_callbacks_mod [ 268.774651] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 268.876978] % modprobe test_klp_callbacks_demo [ 268.900487] test_klp_callbacks_demo: tainting kernel with TAINT_LIVEPATCH [ 268.905621] livepatch: enabling patch 'test_klp_callbacks_demo' [ 268.906537] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 268.906725] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 268.907379] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 268.908444] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 268.910976] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 268.911551] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 268.912213] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 268.913219] livepatch: 'test_klp_callbacks_demo': patching complete [ 268.941208] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 268.943964] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 268.944008] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 268.944781] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 268.945827] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 268.947937] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 268.948421] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 268.949118] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 268.950199] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 268.967659] % rmmod test_klp_callbacks_demo [ 269.008321] % rmmod test_klp_callbacks_mod [ 269.025854] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 269.163875] ===== TEST: module_coming notifier ===== [ 269.238889] % modprobe test_klp_callbacks_demo [ 269.263841] livepatch: enabling patch 'test_klp_callbacks_demo' [ 269.264566] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 269.264652] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 269.265292] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 269.267191] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 269.267265] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 269.267910] livepatch: 'test_klp_callbacks_demo': patching complete [ 269.366932] % modprobe test_klp_callbacks_mod [ 269.389728] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 269.390726] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 269.391905] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 269.394275] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 269.405053] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 269.406330] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 269.406430] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 269.407276] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 269.408340] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 269.410584] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 269.410653] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 269.411342] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 269.412372] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 269.429325] % rmmod test_klp_callbacks_demo [ 269.471310] % rmmod test_klp_callbacks_mod [ 269.490187] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 269.636958] ===== TEST: module_going notifier ===== [ 269.706924] % modprobe test_klp_callbacks_mod [ 269.731134] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 269.809272] % modprobe test_klp_callbacks_demo [ 269.834802] livepatch: enabling patch 'test_klp_callbacks_demo' [ 269.835501] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 269.835587] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 269.836187] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 269.837200] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 269.839267] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 269.839341] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 269.840002] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 269.841015] livepatch: 'test_klp_callbacks_demo': patching complete [ 269.882019] % rmmod test_klp_callbacks_mod [ 269.900010] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 269.904916] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 269.905994] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 269.906947] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 269.918290] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 269.920306] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 269.920381] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 269.921092] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 269.922958] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 269.923027] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 269.923809] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 269.940134] % rmmod test_klp_callbacks_demo [ 270.093303] ===== TEST: module_coming and module_going notifiers ===== [ 270.164983] % modprobe test_klp_callbacks_demo [ 270.191734] livepatch: enabling patch 'test_klp_callbacks_demo' [ 270.192355] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 270.192440] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 270.193028] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 270.194982] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 270.195052] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 270.195798] livepatch: 'test_klp_callbacks_demo': patching complete [ 270.291440] % modprobe test_klp_callbacks_mod [ 270.315454] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 270.316473] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 270.317640] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 270.319945] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 270.344565] % rmmod test_klp_callbacks_mod [ 270.362423] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 270.363343] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 270.364477] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 270.365458] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 270.375401] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 270.376632] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 270.376848] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 270.377510] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 270.379577] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 270.379650] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 270.380436] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 270.397128] % rmmod test_klp_callbacks_demo [ 270.560245] ===== TEST: target module not present ===== [ 270.634363] % modprobe test_klp_callbacks_demo [ 270.662335] livepatch: enabling patch 'test_klp_callbacks_demo' [ 270.663022] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 270.663154] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 270.663777] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 270.665730] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 270.665799] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 270.666470] livepatch: 'test_klp_callbacks_demo': patching complete [ 270.693335] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 270.694489] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 270.694536] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 270.695335] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 270.697519] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 270.697584] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 270.698355] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 270.715855] % rmmod test_klp_callbacks_demo [ 270.881764] ===== TEST: pre-patch callback -ENODEV ===== [ 270.961877] % modprobe test_klp_callbacks_mod [ 270.986588] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 270.997292] % modprobe test_klp_callbacks_demo pre_patch_ret=-19 [ 271.024168] livepatch: enabling patch 'test_klp_callbacks_demo' [ 271.024848] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 271.024950] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 271.025573] livepatch: pre-patch callback failed for object 'vmlinux' [ 271.026425] livepatch: failed to enable patch 'test_klp_callbacks_demo' [ 271.027319] livepatch: 'test_klp_callbacks_demo': canceling patching transition, going to unpatch [ 271.027326] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 271.028679] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 271.037675] modprobe: ERROR: could not insert 'test_klp_callbacks_demo': No such device [ 271.055692] % rmmod test_klp_callbacks_mod [ 271.073825] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 271.225296] ===== TEST: module_coming + pre-patch callback -ENODEV ===== [ 271.304180] % modprobe test_klp_callbacks_demo [ 271.334607] livepatch: enabling patch 'test_klp_callbacks_demo' [ 271.335523] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 271.335631] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 271.336415] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 271.338650] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 271.338951] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 271.339714] livepatch: 'test_klp_callbacks_demo': patching complete [ 271.369163] % echo -19 > /sys/module/test_klp_callbacks_demo/parameters/pre_patch_ret [ 271.387370] % modprobe test_klp_callbacks_mod [ 271.418304] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 271.419527] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 271.420741] livepatch: pre-patch callback failed for object 'test_klp_callbacks_mod' [ 271.421518] livepatch: patch 'test_klp_callbacks_demo' failed for module 'test_klp_callbacks_mod', refusing to load module 'test_klp_callbacks_mod' [ 271.431044] modprobe: ERROR: could not insert 'test_klp_callbacks_mod': No such device [ 271.432272] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 271.434090] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 271.434189] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 271.434893] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 271.436917] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 271.436990] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 271.437778] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 271.458043] % rmmod test_klp_callbacks_demo [ 271.647114] ===== TEST: multiple target modules ===== [ 271.741296] % modprobe test_klp_callbacks_busy block_transition=N [ 271.769596] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 271.770455] test_klp_callbacks_busy: busymod_work_func enter [ 271.771150] test_klp_callbacks_busy: busymod_work_func exit [ 271.864211] % modprobe test_klp_callbacks_demo [ 271.891721] livepatch: enabling patch 'test_klp_callbacks_demo' [ 271.892360] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 271.892460] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 271.893050] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 271.898394] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 271.899992] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 271.900079] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 271.900780] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 271.901836] livepatch: 'test_klp_callbacks_demo': patching complete [ 272.020650] % modprobe test_klp_callbacks_mod [ 272.049486] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 272.050479] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 272.051655] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 272.054002] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 272.079336] % rmmod test_klp_callbacks_mod [ 272.100212] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 272.101183] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 272.102365] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 272.103330] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 272.114194] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 272.115385] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 272.115477] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 272.116301] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 272.117336] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 272.119589] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 272.230546] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 272.231343] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 272.232528] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 272.250053] % rmmod test_klp_callbacks_demo [ 272.295216] % rmmod test_klp_callbacks_busy [ 272.313643] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 272.496195] ===== TEST: busy target module ===== [ 272.574431] % modprobe test_klp_callbacks_busy block_transition=Y [ 272.600360] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 272.601330] test_klp_callbacks_busy: busymod_work_func enter [ 272.689959] % modprobe test_klp_callbacks_demo [ 272.716323] livepatch: enabling patch 'test_klp_callbacks_demo' [ 272.716952] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 272.717036] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 272.717728] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 272.723057] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 272.836766] % modprobe test_klp_callbacks_mod [ 272.859305] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 272.860299] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 272.862582] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 272.888126] % rmmod test_klp_callbacks_mod [ 272.906450] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 272.907336] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 272.908385] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 272.918641] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 272.920166] livepatch: 'test_klp_callbacks_demo': reversing transition from patching to unpatching [ 272.920291] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 274.407338] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 274.519199] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 274.519949] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 274.521057] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 274.632593] % rmmod test_klp_callbacks_demo [ 274.672455] % rmmod test_klp_callbacks_busy [ 274.698702] test_klp_callbacks_busy: busymod_work_func exit [ 274.699328] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 274.850255] ===== TEST: multiple livepatches ===== [ 274.924947] % modprobe test_klp_callbacks_demo [ 274.949356] livepatch: enabling patch 'test_klp_callbacks_demo' [ 274.950064] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 274.950174] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 274.950794] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 274.955217] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 274.955297] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 274.955972] livepatch: 'test_klp_callbacks_demo': patching complete [ 275.073223] % modprobe test_klp_callbacks_demo2 [ 275.097524] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 275.098166] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 275.098246] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 275.098877] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 275.100805] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 275.100875] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 275.101703] livepatch: 'test_klp_callbacks_demo2': patching complete [ 275.131918] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 275.133445] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 275.133488] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 275.134264] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 275.136388] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 275.136473] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 275.137180] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 275.139003] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 275.140241] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 275.140272] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 275.141120] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 275.142927] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 275.142991] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 275.143614] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 275.159870] % rmmod test_klp_callbacks_demo2 [ 275.202601] % rmmod test_klp_callbacks_demo [ 275.377541] ===== TEST: atomic replace ===== [ 275.455003] % modprobe test_klp_callbacks_demo [ 275.481343] livepatch: enabling patch 'test_klp_callbacks_demo' [ 275.482011] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 275.482120] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 275.482736] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 275.484633] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 275.484934] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 275.485575] livepatch: 'test_klp_callbacks_demo': patching complete [ 275.587880] % modprobe test_klp_callbacks_demo2 replace=1 [ 275.616514] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 275.617208] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 275.617296] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 275.617923] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 275.619922] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 275.620137] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 275.620808] livepatch: 'test_klp_callbacks_demo2': patching complete [ 275.649137] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 275.650351] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 275.650404] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 275.651190] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 275.658737] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 275.658810] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 275.659457] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 275.680006] % rmmod test_klp_callbacks_demo2 [ 275.723580] % rmmod test_klp_callbacks_demo