| 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | |
| 3 | |
| 4 | |
| 5 | extern unsigned long __stack_chk_guard; |
| 6 | |
| 7 | /* |
| 8 | * Initialize the stackprotector canary value. |
| 9 | * |
| 10 | * NOTE: this must only be called from functions that never return, |
| 11 | * and it must always be inlined. |
| 12 | */ |
| 13 | static __always_inline void |
| 14 | |
| 15 | unsigned long canary = ; |
| 16 | |
| 17 | current->stack_canary = canary; |
| 18 | __stack_chk_guard = current->stack_canary; |
| 19 | |
| 20 | |
| 21 | /* __ASM_SH_STACKPROTECTOR_H */ |