current->stack_canary = canary;#ifdefCONFIG_X86_64this_cpu_write(irq_stack_union.stack_canary, canary);#elsethis_cpu_write(stack_canary.canary, canary);#endif} 该函数主要用于初始化“金丝雀“——canary的值。 用于防止栈溢出攻击。 关于栈溢出攻击,有两篇非常好的文章:http://www.ibm.com/develop...
1 /*2 * Set up the the initial canary ASAP:3 */4 boot_init_stack_canary();in arch/arm/include/asm/stackprotector.h1 /* 2 * Initialize the stackprotector canary value. 3 * 4 * NOTE: this must only be called from functions that never return,...