diff options
| author | Heyi Guo <[email protected]> | 2019-12-02 11:37:02 +0000 |
|---|---|---|
| committer | Catalin Marinas <[email protected]> | 2019-12-06 14:11:31 +0000 |
| commit | de858040ee80e6f41bf0b40090f1c71f966a61b3 (patch) | |
| tree | 5da0192b34f3ccb1cb3fa738839a42a7fe65c37b /net/unix/af_unix.c | |
| parent | arm64: ftrace: fix ifdeffery (diff) | |
| download | kernel-de858040ee80e6f41bf0b40090f1c71f966a61b3.tar.gz kernel-de858040ee80e6f41bf0b40090f1c71f966a61b3.zip | |
arm64: entry: refine comment of stack overflow check
Stack overflow checking can be done by testing sp & (1 << THREAD_SHIFT)
only for the stacks are aligned to (2 << THREAD_SHIFT) with size of
(1 << THREAD_SIZE), and this is the case when CONFIG_VMAP_STACK is set.
Fix the code comment to avoid confusion.
Cc: Will Deacon <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Signed-off-by: Heyi Guo <[email protected]>
[[email protected]: Updated comment following Mark's suggestion]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
