https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124949

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|1                           |0
             Status|WAITING                     |UNCONFIRMED

--- Comment #15 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Lukas Wunner from comment #14) 
> As said, disabling CONFIG_KASAN_STACK makes the issue disappear.

Note it is a little more complex than what you think.
So inlining has an estimate of what the stack will be for each function. Note I
said estimate because it is not 100% accurate. And then tries to limit based on
that estimate. It is just with -fsanitize=kernel-address, the stack goes up and
might not be taken that into account for the estimate that the inlining uses.
Since the stack for ecc_point_mult is close already to 1280 bytes limit without
inlining, any inlining of one thing more will increase the stack usage slightly
above.

1360 is only 80 bytes above 1280 even. So that is one array of u64 that is 10
in length (not including the redzone).
Like for an example apply_z has almost exactly that:
 u64 t1[(((521) + (64) - 1) / (64))];

it is `u64 t[9];`.

Reply via email to