Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files45
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kbuild
- assembler.h
- barrier.h
- bitops.h
- bug.h
- cache.h
- cacheflush.h
- checksum.h
- cmpxchg.h
- cpu-single.h
- cputype.h
- delay.h
- dma-mapping.h
- dma.h
- elf.h
- fpstate.h
- fpu-ucf64.h
- gpio.h
- hwcap.h
- hwdef-copro.h
- io.h
- irq.h
- irqflags.h
- linkage.h
- memblock.h
- memory.h
- mmu.h
- mmu_context.h
- page.h
- pci.h
- pgalloc.h
- pgtable-hwdef.h
- pgtable.h
- processor.h
- ptrace.h
- stacktrace.h
- string.h
- suspend.h
- switch_to.h
- thread_info.h
- timex.h
- tlb.h
- tlbflush.h
- traps.h
- uaccess.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/unicore32/include/asm/bitops.h
Text · 1,258 bytes/*
* linux/arch/unicore32/include/asm/bitops.h
*
* Code specific to PKUnity SoC and UniCore ISA
*
* Copyright (C) 2001-2010 GUAN Xue-tao
*
* 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.
*/
#ifndef __UNICORE_BITOPS_H__
#define __UNICORE_BITOPS_H__
#define _ASM_GENERIC_BITOPS_FLS_H_
#define _ASM_GENERIC_BITOPS___FLS_H_
#define _ASM_GENERIC_BITOPS_FFS_H_
#define _ASM_GENERIC_BITOPS___FFS_H_
/*
* On UNICORE, those functions can be implemented around
* the cntlz instruction for much better code efficiency.
*/
static inline int fls(int x)
{
int ret;
asm("cntlz\t%0, %1" : "=r" (ret) : "r" (x) : "cc");
ret = 32 - ret;
return ret;
}
#define __fls(x) (fls(x) - 1)
#define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
#define __ffs(x) (ffs(x) - 1)
#include <asm-generic/bitops.h>
/* following definitions: to avoid using codes in lib/find_*.c */
#define find_next_bit find_next_bit
#define find_next_zero_bit find_next_zero_bit
#define find_first_bit find_first_bit
#define find_first_zero_bit find_first_zero_bit
#include <asm-generic/bitops/find.h>
#endif /* __UNICORE_BITOPS_H__ */