Miroslav Benes <mbenes@xxxxxxx> writes: > On Wed, 30 Sep 2020, Evgenii Shatokhin wrote: >> Is that so? Are there any workarounds? > > Petr, do you remember the crazy workarounds we talked about? My head is > empty now. And I am sure, Nicolai could come up with something. There might be some clever tricks ycou could play, but that depends on the diff you want to turn into a livepatch. For example, sometimes it's possible to livepatch a callee and make it trick the unpatchable caller into the desired behaviour. However, in your case it might be easier to simply kill the running kthread and start it again, e.g. from a ->post_patch() callback. Note that KLP's callbacks are a bit subtle though, at a minimum you'd probably also want to implement ->pre_unpatch() to roll everything back and perhaps also disable (->replace) downgrades by means of the klp_state API. You can find some good docs on callbacks and klp_state at Documentation/livepatch/. Thanks, Nicolai -- SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg), GF: Felix Imendörffer