[PATCH 5.10/5.15 0/1] kprobes: Fix to handle forcibly unoptimized kprobes on freeing_list

From: Fedor Pchelkin
Date: Mon Jan 22 2024 - 06:40:41 EST


The `WARNING in kprobe_optimizer` is reproduced on 5.10/5.15 stable
branches.

The problem ([1], link included in original commit description) has been
fixed by the following patch which can be cleanly applied to 5.10/5.15.
The fix is already present in all stable branches starting from 6.1.

Link to the "failed to apply to 5.15" report [2].
Link to the "failed to apply to 5.10" report [3].

[1]: https://lore.kernel.org/all/Y8URdIfVr3pq2X8w@xxxxxxxxxxxxxxxx/
[2]: https://lore.kernel.org/stable/16781827629218@xxxxxxxxx/
[3]: https://lore.kernel.org/stable/16781827635613@xxxxxxxxx/