[ 241.814772] Running test [R:13307967 T:7 - Livepatch kselftests - Kernel: 5.14.0-247.1439_761626608.el9.x86_64+debug] [ 286.302878] livepatch: kernel.ftrace_enabled = 1 [ 286.351399] ===== TEST: target module before livepatch ===== [ 286.425607] % modprobe test_klp_callbacks_mod [ 286.527252] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 286.608445] % modprobe test_klp_callbacks_demo [ 286.641763] test_klp_callbacks_demo: tainting kernel with TAINT_LIVEPATCH [ 286.646050] livepatch: enabling patch 'test_klp_callbacks_demo' [ 286.648128] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 286.648535] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 286.650156] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 286.652936] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 287.805250] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 287.806300] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 287.808480] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 287.811173] livepatch: 'test_klp_callbacks_demo': patching complete [ 287.917699] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 287.922031] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 287.922374] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 287.924998] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 287.927748] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 288.828165] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 288.828500] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 288.830435] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 288.833163] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 288.887395] % rmmod test_klp_callbacks_demo [ 288.964196] % rmmod test_klp_callbacks_mod [ 288.988694] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 289.128374] ===== TEST: module_coming notifier ===== [ 289.219879] % modprobe test_klp_callbacks_demo [ 289.253056] livepatch: enabling patch 'test_klp_callbacks_demo' [ 289.254800] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 289.255191] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 289.257023] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 290.813103] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 290.813530] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 290.815506] livepatch: 'test_klp_callbacks_demo': patching complete [ 291.007827] % modprobe test_klp_callbacks_mod [ 291.044465] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 291.049262] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 291.057846] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 291.067427] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 291.081540] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 291.091615] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 291.092018] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 291.099797] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 291.108828] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 291.121025] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 291.122589] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 291.127101] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 291.132614] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 291.157212] % rmmod test_klp_callbacks_demo [ 291.226213] % rmmod test_klp_callbacks_mod [ 291.260997] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 291.398980] ===== TEST: module_going notifier ===== [ 291.493847] % modprobe test_klp_callbacks_mod [ 291.529061] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 291.610958] % modprobe test_klp_callbacks_demo [ 291.648099] livepatch: enabling patch 'test_klp_callbacks_demo' [ 291.652532] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 291.652848] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 291.657030] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 291.662321] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 292.796155] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 292.796457] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 292.800994] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_LIVE] Normal state [ 292.806244] livepatch: 'test_klp_callbacks_demo': patching complete [ 292.936469] % rmmod test_klp_callbacks_mod [ 292.964368] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 292.970158] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 292.975449] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 292.980380] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 293.011662] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 293.018121] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 293.018449] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 293.023266] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 293.820292] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 293.820634] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 293.825228] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 293.861848] % rmmod test_klp_callbacks_demo [ 294.034537] ===== TEST: module_coming and module_going notifiers ===== [ 294.121816] % modprobe test_klp_callbacks_demo [ 294.158248] livepatch: enabling patch 'test_klp_callbacks_demo' [ 294.162297] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 294.162627] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 294.166886] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 295.804318] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 295.804699] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 295.809810] livepatch: 'test_klp_callbacks_demo': patching complete [ 295.903111] % modprobe test_klp_callbacks_mod [ 295.938178] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 295.943555] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 295.952871] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 295.962405] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 295.993843] % rmmod test_klp_callbacks_mod [ 296.021338] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 296.026692] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 296.032246] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 296.037583] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 296.070931] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 296.077054] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 296.077365] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 296.081896] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 297.852391] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 297.852808] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 297.857819] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 297.956250] % rmmod test_klp_callbacks_demo [ 298.121300] ===== TEST: target module not present ===== [ 298.201832] % modprobe test_klp_callbacks_demo [ 298.239972] livepatch: enabling patch 'test_klp_callbacks_demo' [ 298.244813] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 298.245283] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 298.249937] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 299.836410] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 299.836799] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 299.842142] livepatch: 'test_klp_callbacks_demo': patching complete [ 299.925530] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 299.931805] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 299.932303] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 299.936781] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 299.945205] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 299.945750] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 299.950365] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 299.973291] % rmmod test_klp_callbacks_demo [ 300.140186] ===== TEST: pre-patch callback -ENODEV ===== [ 300.230395] % modprobe test_klp_callbacks_mod [ 300.268127] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 300.283596] % modprobe test_klp_callbacks_demo pre_patch_ret=-19 [ 300.320960] livepatch: enabling patch 'test_klp_callbacks_demo' [ 300.325430] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 300.325791] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 300.330007] livepatch: pre-patch callback failed for object 'vmlinux' [ 300.334355] livepatch: failed to enable patch 'test_klp_callbacks_demo' [ 300.338750] livepatch: 'test_klp_callbacks_demo': canceling patching transition, going to unpatch [ 300.338762] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 300.340597] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 300.378581] modprobe: ERROR: could not insert 'test_klp_callbacks_demo': No such device [ 300.403353] % rmmod test_klp_callbacks_mod [ 300.432575] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 300.567252] ===== TEST: module_coming + pre-patch callback -ENODEV ===== [ 300.642697] % modprobe test_klp_callbacks_demo [ 300.679892] livepatch: enabling patch 'test_klp_callbacks_demo' [ 300.684251] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 300.684555] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 300.688701] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 301.820568] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 301.821005] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 301.826046] livepatch: 'test_klp_callbacks_demo': patching complete [ 301.957708] % echo -19 > /sys/module/test_klp_callbacks_demo/parameters/pre_patch_ret [ 301.983252] % modprobe test_klp_callbacks_mod [ 302.019779] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 302.024723] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 302.033290] livepatch: pre-patch callback failed for object 'test_klp_callbacks_mod' [ 302.037418] livepatch: patch 'test_klp_callbacks_demo' failed for module 'test_klp_callbacks_mod', refusing to load module 'test_klp_callbacks_mod' [ 302.072562] modprobe: ERROR: could not insert 'test_klp_callbacks_mod': No such device [ 302.079497] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 302.086433] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 302.086861] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 302.091382] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 303.804468] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 303.804875] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 303.809926] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 303.867687] % rmmod test_klp_callbacks_demo [ 304.036936] ===== TEST: multiple target modules ===== [ 304.115837] % modprobe test_klp_callbacks_busy block_transition=N [ 304.154737] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 304.160947] test_klp_callbacks_busy: busymod_work_func enter [ 304.165768] test_klp_callbacks_busy: busymod_work_func exit [ 304.256738] % modprobe test_klp_callbacks_demo [ 304.294514] livepatch: enabling patch 'test_klp_callbacks_demo' [ 304.298809] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 304.299175] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 304.303200] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 304.314554] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 305.852484] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 305.852903] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 305.857873] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 305.863149] livepatch: 'test_klp_callbacks_demo': patching complete [ 306.050996] % modprobe test_klp_callbacks_mod [ 306.088110] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 306.092798] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 306.101185] test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 306.111042] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 306.144228] % rmmod test_klp_callbacks_mod [ 306.174756] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 306.180058] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 306.185215] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 306.190901] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 306.230866] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 306.235656] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 306.235980] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 306.240630] test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 306.246273] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 307.836534] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 307.863559] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 307.868448] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 307.874529] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 307.902984] % rmmod test_klp_callbacks_demo [ 307.982825] % rmmod test_klp_callbacks_busy [ 308.010734] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 308.154501] ===== TEST: busy target module ===== [ 308.233012] % modprobe test_klp_callbacks_busy block_transition=Y [ 308.273436] test_klp_callbacks_busy: test_klp_callbacks_busy_init [ 308.278960] test_klp_callbacks_busy: busymod_work_func enter [ 308.363934] % modprobe test_klp_callbacks_demo [ 308.402059] livepatch: enabling patch 'test_klp_callbacks_demo' [ 308.406892] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 308.407396] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 308.411928] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 308.422463] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 308.530157] % modprobe test_klp_callbacks_mod [ 308.565780] livepatch: applying patch 'test_klp_callbacks_demo' to loading module 'test_klp_callbacks_mod' [ 308.571423] test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init [ 308.582247] test_klp_callbacks_mod: test_klp_callbacks_mod_init [ 308.616588] % rmmod test_klp_callbacks_mod [ 308.646596] test_klp_callbacks_mod: test_klp_callbacks_mod_exit [ 308.653059] livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module 'test_klp_callbacks_mod' [ 308.658654] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away [ 308.691071] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 308.697325] livepatch: 'test_klp_callbacks_demo': reversing transition from patching to unpatching [ 308.697870] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 309.826257] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 309.850498] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 309.855365] test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state [ 309.861357] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 310.003688] % rmmod test_klp_callbacks_demo [ 310.074079] % rmmod test_klp_callbacks_busy [ 310.114311] test_klp_callbacks_busy: busymod_work_func exit [ 310.119267] test_klp_callbacks_busy: test_klp_callbacks_busy_exit [ 310.275707] ===== TEST: multiple livepatches ===== [ 310.350394] % modprobe test_klp_callbacks_demo [ 310.388983] livepatch: enabling patch 'test_klp_callbacks_demo' [ 310.392930] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 310.393327] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 310.397516] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 311.805640] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 311.806059] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 311.810841] livepatch: 'test_klp_callbacks_demo': patching complete [ 311.999747] % modprobe test_klp_callbacks_demo2 [ 312.038086] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 312.042476] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 312.042930] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 312.047310] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 313.852725] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 313.853193] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 313.859301] livepatch: 'test_klp_callbacks_demo2': patching complete [ 313.997106] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 314.002204] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 314.002574] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 314.006788] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 314.812727] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 314.813152] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 314.818182] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 314.829238] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled [ 314.834523] livepatch: 'test_klp_callbacks_demo': initializing unpatching transition [ 314.834934] test_klp_callbacks_demo: pre_unpatch_callback: vmlinux [ 314.839514] livepatch: 'test_klp_callbacks_demo': starting unpatching transition [ 315.836711] livepatch: 'test_klp_callbacks_demo': completing unpatching transition [ 315.837109] test_klp_callbacks_demo: post_unpatch_callback: vmlinux [ 315.841682] livepatch: 'test_klp_callbacks_demo': unpatching complete [ 315.919409] % rmmod test_klp_callbacks_demo2 [ 315.997954] % rmmod test_klp_callbacks_demo [ 316.165714] ===== TEST: atomic replace ===== [ 316.243929] % modprobe test_klp_callbacks_demo [ 316.281225] livepatch: enabling patch 'test_klp_callbacks_demo' [ 316.285585] livepatch: 'test_klp_callbacks_demo': initializing patching transition [ 316.285940] test_klp_callbacks_demo: pre_patch_callback: vmlinux [ 316.290054] livepatch: 'test_klp_callbacks_demo': starting patching transition [ 317.820936] livepatch: 'test_klp_callbacks_demo': completing patching transition [ 317.821449] test_klp_callbacks_demo: post_patch_callback: vmlinux [ 317.826459] livepatch: 'test_klp_callbacks_demo': patching complete [ 317.945030] % modprobe test_klp_callbacks_demo2 replace=1 [ 317.984633] livepatch: enabling patch 'test_klp_callbacks_demo2' [ 317.988316] livepatch: 'test_klp_callbacks_demo2': initializing patching transition [ 317.988763] test_klp_callbacks_demo2: pre_patch_callback: vmlinux [ 317.992859] livepatch: 'test_klp_callbacks_demo2': starting patching transition [ 318.844654] livepatch: 'test_klp_callbacks_demo2': completing patching transition [ 318.845112] test_klp_callbacks_demo2: post_patch_callback: vmlinux [ 318.849625] livepatch: 'test_klp_callbacks_demo2': patching complete [ 318.862478] % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo2/enabled [ 318.868262] livepatch: 'test_klp_callbacks_demo2': initializing unpatching transition [ 318.868791] test_klp_callbacks_demo2: pre_unpatch_callback: vmlinux [ 318.872973] livepatch: 'test_klp_callbacks_demo2': starting unpatching transition [ 319.804783] livepatch: 'test_klp_callbacks_demo2': completing unpatching transition [ 319.805244] test_klp_callbacks_demo2: post_unpatch_callback: vmlinux [ 319.809482] livepatch: 'test_klp_callbacks_demo2': unpatching complete [ 319.836469] % rmmod test_klp_callbacks_demo2 [ 319.915962] % rmmod test_klp_callbacks_demo