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 files47
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- sched/
- unaligned/
- atomic.h
- bitmap.h
- bitops.h
- bits.h
- bug.h
- compiler-gcc.h
- compiler.h
- coresight-pmu.h
- debug_locks.h
- delay.h
- err.h
- export.h
- filter.h
- ftrace.h
- gfp.h
- hardirq.h
- hash.h
- hashtable.h
- interrupt.h
- irqflags.h
- jhash.h
- kallsyms.h
- kern_levels.h
- kernel.h
- linkage.h
- list.h
- lockdep.h
- log2.h
- module.h
- mutex.h
- nmi.h
- overflow.h
- poison.h
- proc_fs.h
- rbtree.h
- rbtree_augmented.h
- rcu.h
- refcount.h
- seq_file.h
- spinlock.h
- stacktrace.h
- string.h
- stringify.h
- time64.h
- types.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/include/linux/bits.h
Text · 833 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __LINUX_BITS_H
#define __LINUX_BITS_H
#include <asm/bitsperlong.h>
#define BIT(nr) (1UL << (nr))
#define BIT_ULL(nr) (1ULL << (nr))
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
#define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
#define BIT_ULL_MASK(nr) (1ULL << ((nr) % BITS_PER_LONG_LONG))
#define BIT_ULL_WORD(nr) ((nr) / BITS_PER_LONG_LONG)
#define BITS_PER_BYTE 8
/*
* Create a contiguous bitmask starting at bit position @l and ending at
* position @h. For example
* GENMASK_ULL(39, 21) gives us the 64bit vector 0x000000ffffe00000.
*/
#define GENMASK(h, l) \
(((~0UL) - (1UL << (l)) + 1) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
#define GENMASK_ULL(h, l) \
(((~0ULL) - (1ULL << (l)) + 1) & \
(~0ULL >> (BITS_PER_LONG_LONG - 1 - (h))))
#endif /* __LINUX_BITS_H */