[ 99.987713] Running test [R:12663565 T:6 - Livepatch kselftests - Kernel: 5.14.0-168.mr1397_220926_1535.el9.x86_64] [ 116.887232] livepatch: kernel.ftrace_enabled = 1 [ 116.892738] ===== TEST: target module before livepatch ===== [ 116.902718] % modprobe test_klp_callbacks_mod [ 116.908104] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 116.918347] % modprobe test_klp_callbacks_demo [ 116.923120] test_klp_callbacks_demo: tainting kernel with TAINT_LIVEPATCH [ 116.924972] livepatch: enabling patch 'test_klp_callbacks_demo' [ 116.926312] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 116.926357] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 116.927697] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 116.929995] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 116.931856] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 116.931894] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 116.933262] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 116.935596] livepatch: 'test_klp_callbacks_demo': patching complete [ 116.940290] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 116.942040] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 116.942065] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 116.943499] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 116.945861] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 116.947721] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 116.947756] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 116.949171] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 116.951537] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 116.955027] % rmmod test_klp_callbacks_demo [ 116.970401] % rmmod test_klp_callbacks_mod [ 116.973874] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 116.994059] ===== TEST: module_coming notifier ===== [ 117.003438] % modprobe test_klp_callbacks_demo [ 117.008518] livepatch: enabling patch 'test_klp_callbacks_demo' [ 117.009878] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 117.009920] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 117.011267] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 118.794703] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 118.794752] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 118.796659] livepatch: 'test_klp_callbacks_demo': patching complete [ 118.901661] % modprobe test_klp_callbacks_mod [ 118.906603] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 118.908792] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 118.911558] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 118.914398] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 118.917329] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 118.919015] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 118.919060] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 118.920480] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 118.922905] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 118.924787] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 118.924835] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 118.926305] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 118.928729] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 118.933090] % rmmod test_klp_callbacks_demo [ 118.946044] % rmmod test_klp_callbacks_mod [ 118.949859] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 118.977374] ===== TEST: module_going notifier ===== [ 118.988051] % modprobe test_klp_callbacks_mod [ 118.993000] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 119.005327] % modprobe test_klp_callbacks_demo [ 119.010769] livepatch: enabling patch 'test_klp_callbacks_demo' [ 119.012144] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 119.012190] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 119.013557] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 119.015928] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 119.017778] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 119.017827] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 119.019215] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 119.021637] livepatch: 'test_klp_callbacks_demo': patching complete [ 119.029747] % rmmod test_klp_callbacks_mod [ 119.033561] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 119.035045] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 119.037410] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 119.039628] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 119.048574] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 119.050240] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 119.050283] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 119.051701] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 119.053560] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 119.053609] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 119.055033] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 119.059145] % rmmod test_klp_callbacks_demo [ 119.086072] ===== TEST: module_coming and module_going notifiers ===== [ 119.097226] % modprobe test_klp_callbacks_demo [ 119.102705] livepatch: enabling patch 'test_klp_callbacks_demo' [ 119.104069] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 119.104114] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 119.105482] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 120.778521] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 120.778557] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 120.779969] livepatch: 'test_klp_callbacks_demo': patching complete [ 120.889226] % modprobe test_klp_callbacks_mod [ 120.894149] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 120.896325] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 120.899037] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 120.901933] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 120.907077] % rmmod test_klp_callbacks_mod [ 120.910967] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 120.912465] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 120.914819] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 120.917103] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 120.929616] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 120.931383] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 120.931431] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 120.932844] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 121.802483] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 121.802608] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 121.804386] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 121.856225] % rmmod test_klp_callbacks_demo [ 121.887576] ===== TEST: target module not present ===== [ 121.899345] % modprobe test_klp_callbacks_demo [ 121.906638] livepatch: enabling patch 'test_klp_callbacks_demo' [ 121.908507] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 121.908548] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 121.910385] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 122.762473] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 122.762561] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 122.764007] livepatch: 'test_klp_callbacks_demo': patching complete [ 122.851865] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 122.853608] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 122.853655] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 122.855072] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 122.856928] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 122.856961] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 122.858388] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 122.862228] % rmmod test_klp_callbacks_demo [ 122.886852] ===== TEST: pre-patch callback -ENODEV ===== [ 122.896451] % modprobe test_klp_callbacks_mod [ 122.901521] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 122.904402] % modprobe test_klp_callbacks_demo pre_patch_ret=-19 [ 122.910297] livepatch: enabling patch 'test_klp_callbacks_demo' [ 122.911664] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 122.911712] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 122.913106] livepatch: pre-patch callback failed for object 'vmlinux' [ 122.914553] livepatch: failed to enable patch 'test_klp_callbacks_demo' [ 122.916051] livepatch: 'test_klp_callbacks_demo': canceling patching transition, going to unpatch [ 122.916053] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 122.916154] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 122.939346] modprobe: ERROR: could not insert 'test_klp_callbacks_demo': No such device [ 122.943498] % rmmod test_klp_callbacks_mod [ 122.947290] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 122.970104] ===== TEST: module_coming + pre-patch callback -ENODEV ===== [ 122.980750] % modprobe test_klp_callbacks_demo [ 122.986279] livepatch: enabling patch 'test_klp_callbacks_demo' [ 122.987660] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 122.987706] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 122.989068] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 123.786485] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 123.786618] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 123.788079] livepatch: 'test_klp_callbacks_demo': patching complete [ 123.829920] % echo -19 > /sys/module/test_klp_callbacks_demo/parameters/pre_patch_ret [ 123.834164] % modprobe test_klp_callbacks_mod [ 123.839280] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 123.841460] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 123.844191] livepatch: pre-patch callback failed for object 'test_klp_callbacks_mod' [ 123.845943] livepatch: patch 'test_klp_callbacks_demo' failed for module 'test_klp_callbacks_mod', refusing to load module 'test_klp_callbacks_mod' [ 123.865272] modprobe: ERROR: could not insert 'test_klp_callbacks_mod': No such device [ 123.867197] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 123.868859] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 123.868908] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 123.870319] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 124.746275] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 124.746414] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 124.747930] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 124.793401] % rmmod test_klp_callbacks_demo [ 124.826383] ===== TEST: multiple target modules ===== [ 124.836227] % modprobe test_klp_callbacks_busy block_transition=N [ 124.841524] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 124.842837] test_klp_callbacks_busy: busymod_work_func enter [ 124.844130] test_klp_callbacks_busy: busymod_work_func exit [ 124.854554] % modprobe test_klp_callbacks_demo [ 124.861058] livepatch: enabling patch 'test_klp_callbacks_demo' [ 124.862461] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 124.862507] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 124.863874] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 124.869893] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 125.770259] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 125.770394] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 125.771854] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 125.774241] livepatch: 'test_klp_callbacks_demo': patching complete [ 125.818922] % modprobe test_klp_callbacks_mod [ 125.823941] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 125.826216] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 125.829069] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 125.831999] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 125.837163] % rmmod test_klp_callbacks_mod [ 125.841060] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 125.842549] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 125.844894] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 125.847149] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 125.856135] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 125.857823] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 125.857882] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 125.859272] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 125.861646] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 126.794121] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 126.819187] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 126.820542] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 126.822944] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 126.890904] % rmmod test_klp_callbacks_demo [ 126.908255] % rmmod test_klp_callbacks_busy [ 126.912422] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 126.937557] ===== TEST: busy target module ===== [ 126.947605] % modprobe test_klp_callbacks_busy block_transition=Y [ 126.953277] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 126.954711] test_klp_callbacks_busy: busymod_work_func enter [ 126.965926] % modprobe test_klp_callbacks_demo [ 126.972229] livepatch: enabling patch 'test_klp_callbacks_demo' [ 126.973622] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 126.973672] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 126.975046] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 126.981214] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 126.995264] % modprobe test_klp_callbacks_mod [ 127.000427] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 127.002647] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 127.005499] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 127.010089] % rmmod test_klp_callbacks_mod [ 127.014049] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 127.015543] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 127.017791] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 127.028079] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 127.029795] livepatch: 'test_klp_callbacks_demo': reversing transition from patching to unpatching [ 127.029883] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 127.754265] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 127.776073] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 127.777554] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 127.779932] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 127.853117] % rmmod test_klp_callbacks_demo [ 127.867059] % rmmod test_klp_callbacks_busy [ 127.886029] test_klp_callbacks_busy: busymod_work_func exit [ 127.887302] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 127.915874] ===== TEST: multiple livepatches ===== [ 127.925639] % modprobe test_klp_callbacks_demo [ 127.931051] livepatch: enabling patch 'test_klp_callbacks_demo' [ 127.932409] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 127.932454] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 127.933808] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 128.777912] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 128.777964] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 128.779982] livepatch: 'test_klp_callbacks_demo': patching complete [ 128.885697] % modprobe test_klp_callbacks_demo2 [ 128.891496] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 128.893070] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 128.893117] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 128.894483] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 129.801988] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 129.802054] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 129.803397] livepatch: 'test_klp_callbacks_demo2': patching complete [ 129.839333] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 129.840850] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 129.840896] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 129.842255] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 129.844060] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 129.844097] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 129.845488] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 129.847051] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 129.848478] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 129.848489] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 129.849775] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 129.851438] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 129.851468] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 129.852736] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 129.856312] % rmmod test_klp_callbacks_demo2 [ 129.871750] % rmmod test_klp_callbacks_demo [ 129.904647] ===== TEST: atomic replace ===== [ 129.916316] % modprobe test_klp_callbacks_demo [ 129.922127] livepatch: enabling patch 'test_klp_callbacks_demo' [ 129.923463] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 129.923510] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 129.924853] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 130.761752] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 130.761789] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 130.763208] livepatch: 'test_klp_callbacks_demo': patching complete [ 130.877046] % modprobe test_klp_callbacks_demo2 replace=1 [ 130.882173] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 130.883369] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 130.883414] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 130.884604] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 131.785711] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 131.785856] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 131.787260] livepatch: 'test_klp_callbacks_demo2': patching complete [ 131.825136] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 131.826784] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 131.826831] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 131.828190] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 132.809620] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 132.809702] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 132.811197] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 132.856688] % rmmod test_klp_callbacks_demo2 [ 132.869700] % rmmod test_klp_callbacks_demo