[PATCH v2] LoongArch: Optimize the implementation of stack check.

2022-11-12 Thread Lulu Cheng
The old stack check was performed before the stack was dropped, which would cause the detection tool to report a memory leak. The current stack check scheme is as follows: '-fstack-clash-protection': 1. When the frame->total_size is smaller than the guard page size, the stack is dropped accord

[PATCH v2] LoongArch: Optimize the implementation of stack check.

2022-10-13 Thread Lulu Cheng
The old stack stack was performed before the stack was dropped, which would cause the detection tool to report a memory leak. The current stack check scheme is as follows: '-fstack-clash-protection': 1. When the frame->total_size is smaller than the guard page size, the stack is dropped accord