Kees Cook 6ec6a34288 xfrm: remove VLA usage in __xfrm6_sort()
In the quest to remove all stack VLA usage removed from the kernel[1],
just use XFRM_MAX_DEPTH as already done for the "class" array. In one
case, it'll do this loop up to 5, the other caller up to 6.

[1] https://lkml.org/lkml/2018/3/7/621

Co-developed-by: Andreas Christoforou <andreaschristofo@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2021-07-31 10:54:54 +05:30
..
2020-05-20 08:17:12 +02:00
2019-12-05 15:38:15 +01:00
2021-07-31 10:54:49 +05:30
2020-01-17 19:45:49 +01:00
2020-06-03 13:37:46 +02:00