Simplify Livepatch Callbacks Shadow Variables and States handling
summary
Proposal changes kernel livepatch internals to tie callback lifetime and shadow-variable garbage collection to versioned states, so transitions and downgrades work predictably. It actually moves callbacks into state metadata and renames them to setup(), enable(), disable(), remove(), adds an explicit add @shadow_dtor for freeing obsolete shadow vars and an @is_shadow flag plus @block_disable to prevent unsafe downgrades. API breaks userspace but makes state-driven cleanup and downgrade-safe behavior provable and implementable.
AI-written summary · about
chapters (8)
- 0:00Introduction to Livepatch
- 1:28Shadow variables and callbacks
- 4:28Livepatch structure and states
- 7:44Simplifying callbacks and states
- 11:28State restrictions and limitations
- 13:28State practicality and transitions
- 14:10Shadow variables and states association
- 17:49Summary and Q&A
related talks
33mLinux Kernel Live Patching
38mDeep Dive Into Linux Kernel Livepatch
39mLet's meet the kernel livepatch feature
29mDeep Dive Into Linux Kernel Livepatch
33mHow We Learned to Fix Planes Midflight
31mHardware Friendly Vhost vDPA: Towards an Efficient and Migratable Device Model
01h 02mAdvanced Levelization Techniques (part 2 of 3)
24mConsolidating representations of the physical memory
