Modify /etc/security/limits.conf
Add * soft stack 102400
Then set the default login user as root wsl config --default-user root
After logging in, switch to your user su username
ulimit -s view takes effect
If this is not the case, it will be invalid ...