Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files156
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kbuild
- adc.h
- addrspace.h
- alignment.h
- asm-offsets.h
- atomic-grb.h
- atomic-irq.h
- atomic-llsc.h
- atomic.h
- barrier.h
- bitops-cas.h
- bitops-grb.h
- bitops-llsc.h
- bitops-op32.h
- bitops.h
- bl_bit.h
- bl_bit_32.h
- bl_bit_64.h
- bug.h
- bugs.h
- cache.h
- cache_insns.h
- cache_insns_32.h
- cache_insns_64.h
- cacheflush.h
- checksum.h
- checksum_32.h
- clock.h
- cmpxchg-cas.h
- cmpxchg-grb.h
- cmpxchg-irq.h
- cmpxchg-llsc.h
- cmpxchg-xchg.h
- cmpxchg.h
- device.h
- dma-register.h
- dma.h
- dmabrg.h
- dwarf.h
- elf.h
- entry-macros.S
- extable.h
- fb.h
- fixmap.h
- flat.h
- fpu.h
- freq.h
- ftrace.h
- futex-cas.h
- futex-irq.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/sh/include/asm/stackprotector.h
Text · 711 bytes/* 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;
}
#endif /* __ASM_SH_STACKPROTECTOR_H */