--- Comment #5 from Andrey V. Elsukov <[hidden email]> ---
(In reply to Sergey Anokhin from comment #4)
> (In reply to Andrey V. Elsukov from comment #3)
> There is a mind that if turn off
> options IPSEC_DEBUG
> kernel panic will disappear
Disabling IPSEC_DEBUG also reduces the requirement to kernel stack size.