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/[email protected]/
[2]: https://lore.kernel.org/stable/[email protected]/
[3]: https://lore.kernel.org/stable/[email protected]/