Re: [PATCH] objtool: Fix stack overflow in validate_branch()

From: Josh Poimboeuf

Date: Wed Dec 03 2025 - 13:58:35 EST


On Wed, Dec 03, 2025 at 10:54:19AM -0800, Josh Poimboeuf wrote:
> Keep in mind this is a worst case function for objtool: KASAN with tons
> of memory accesses. The vast majority of functions won't come anywhere
> near that level of recursion.

And BTW, supporting that further, the max recursion depth on vmlinux.o
on a defconfig kernel is showing 162.

--
Josh