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 files144
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- xen/
- Kbuild
- acenv.h
- acpi.h
- alternative.h
- arch_gicv3.h
- arch_timer.h
- arm-cci.h
- arm_dsu_pmu.h
- asm-bug.h
- asm-offsets.h
- asm-uaccess.h
- assembler.h
- atomic.h
- atomic_ll_sc.h
- atomic_lse.h
- barrier.h
- bitops.h
- bitrev.h
- boot.h
- brk-imm.h
- bug.h
- cache.h
- cacheflush.h
- checksum.h
- clocksource.h
- cmpxchg.h
- compat.h
- compiler.h
- cpu.h
- cpu_ops.h
- cpucaps.h
- cpufeature.h
- cpuidle.h
- cputype.h
- current.h
- daifflags.h
- dcc.h
- debug-monitors.h
- device.h
- dma-mapping.h
- dmi.h
- efi.h
- elf.h
- esr.h
- exception.h
- exec.h
- extable.h
- fb.h
- fixmap.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/arm64/include/asm/jump_label.h
Text · 1,721 bytes/*
* Copyright (C) 2013 Huawei Ltd.
* Author: Jiang Liu <[email protected]>
*
* Based on arch/arm/include/asm/jump_label.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __ASM_JUMP_LABEL_H
#define __ASM_JUMP_LABEL_H
#ifndef __ASSEMBLY__
#include <linux/types.h>
#include <asm/insn.h>
#define JUMP_LABEL_NOP_SIZE AARCH64_INSN_SIZE
static __always_inline bool arch_static_branch(struct static_key *key, bool branch)
{
asm_volatile_goto("1: nop\n\t"
".pushsection __jump_table, \"aw\"\n\t"
".align 3\n\t"
".quad 1b, %l[l_yes], %c0\n\t"
".popsection\n\t"
: : "i"(&((char *)key)[branch]) : : l_yes);
return false;
l_yes:
return true;
}
static __always_inline bool arch_static_branch_jump(struct static_key *key, bool branch)
{
asm_volatile_goto("1: b %l[l_yes]\n\t"
".pushsection __jump_table, \"aw\"\n\t"
".align 3\n\t"
".quad 1b, %l[l_yes], %c0\n\t"
".popsection\n\t"
: : "i"(&((char *)key)[branch]) : : l_yes);
return false;
l_yes:
return true;
}
typedef u64 jump_label_t;
struct jump_entry {
jump_label_t code;
jump_label_t target;
jump_label_t key;
};
#endif /* __ASSEMBLY__ */
#endif /* __ASM_JUMP_LABEL_H */