cregit-Linux how code gets into the kernel

Release 4.14 arch/sh/include/asm/stackprotector.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_STACKPROTECTOR_H

#define __ASM_SH_STACKPROTECTOR_H

#include <linux/random.h>
#include <linux/version.h>

extern unsigned long __stack_chk_guard;

/*
 * Initialize the stackprotector canary value.
 *
 * NOTE: this must only be called from functions that never return,
 * and it must always be inlined.
 */

static __always_inline void boot_init_stack_canary(void) { unsigned long canary; /* Try to get a semi random initial value. */ get_random_bytes(&canary, sizeof(canary)); canary ^= LINUX_VERSION_CODE; canary &= CANARY_MASK; current->stack_canary = canary; __stack_chk_guard = current->stack_canary; }

Contributors

PersonTokensPropCommitsCommitProp
Filippo Arcidiacono4191.11%150.00%
Rik Van Riel48.89%150.00%
Total45100.00%2100.00%

#endif /* __ASM_SH_STACKPROTECTOR_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Filippo Arcidiacono6292.54%133.33%
Rik Van Riel45.97%133.33%
Greg Kroah-Hartman11.49%133.33%
Total67100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.