Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files153
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- trace/
- vdso32/
- vdso64/
- .gitignore
- Makefile
- align.c
- asm-offsets.c
- audit.c
- btext.c
- cacheinfo.c
- cacheinfo.h
- compat_audit.c
- cpu_setup_44x.S
- cpu_setup_6xx.S
- cpu_setup_fsl_booke.S
- cpu_setup_pa6t.S
- cpu_setup_power.S
- cpu_setup_ppc970.S
- cputable.c
- crash.c
- crash_dump.c
- dbell.c
- dma-iommu.c
- dma-swiotlb.c
- dma.c
- dt_cpu_ftrs.c
- eeh.c
- eeh_cache.c
- eeh_dev.c
- eeh_driver.c
- eeh_event.c
- eeh_pe.c
- eeh_sysfs.c
- entry_32.S
- entry_64.S
- epapr_hcalls.S
- epapr_paravirt.c
- exceptions-64e.S
- exceptions-64s.S
- fadump.c
- firmware.c
- fpu.S
- fsl_booke_entry_mapping.S
- head_32.S
- head_40x.S
- head_44x.S
- head_64.S
- head_8xx.S
- head_booke.h
- head_fsl_booke.S
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/powerpc/kernel/swsusp.c
C · 860 bytes/*
* Common powerpc suspend code for 32 and 64 bits
*
* Copyright 2007 Johannes Berg <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#include <linux/sched.h>
#include <linux/suspend.h>
#include <asm/current.h>
#include <asm/mmu_context.h>
#include <asm/switch_to.h>
void save_processor_state(void)
{
/*
* flush out all the special registers so we don't need
* to save them in the snapshot
*/
flush_all_to_thread(current);
#ifdef CONFIG_PPC64
hard_irq_disable();
#endif
}
void restore_processor_state(void)
{
#ifdef CONFIG_PPC32
switch_mmu_context(current->active_mm, current->active_mm, NULL);
#endif
}