Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files89
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- .gitignore
- Makefile
- arch_timer.c
- armksyms.c
- asm-offsets.c
- atags.h
- atags_compat.c
- atags_parse.c
- atags_proc.c
- bios32.c
- bugs.c
- cpuidle.c
- crash_dump.c
- debug.S
- devtree.c
- dma-isa.c
- dma.c
- early_printk.c
- efi.c
- elf.c
- entry-armv.S
- entry-common.S
- entry-ftrace.S
- entry-header.S
- entry-v7m.S
- fiq.c
- fiqasm.S
- ftrace.c
- head-common.S
- head-inflate-data.c
- head-nommu.S
- head.S
- hibernate.c
- hw_breakpoint.c
- hyp-stub.S
- insn.c
- io.c
- irq.c
- isa.c
- iwmmxt.S
- jump_label.c
- kgdb.c
- machine_kexec.c
- module-plts.c
- module.c
- module.lds
- opcodes.c
- paravirt.c
- patch.c
- perf_callchain.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arm/kernel/jump_label.c
C · 816 bytes// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h>
#include <linux/jump_label.h>
#include <asm/patch.h>
#include <asm/insn.h>
static void __arch_jump_label_transform(struct jump_entry *entry,
enum jump_label_type type,
bool is_static)
{
void *addr = (void *)entry->code;
unsigned int insn;
if (type == JUMP_LABEL_JMP)
insn = arm_gen_branch(entry->code, entry->target);
else
insn = arm_gen_nop();
if (is_static)
__patch_text_early(addr, insn);
else
patch_text(addr, insn);
}
void arch_jump_label_transform(struct jump_entry *entry,
enum jump_label_type type)
{
__arch_jump_label_transform(entry, type, false);
}
void arch_jump_label_transform_static(struct jump_entry *entry,
enum jump_label_type type)
{
__arch_jump_label_transform(entry, type, true);
}