Exploit database

GH-b6f78b211ff4ea5e7b3ebffe1f088758

abrarkhan/linux-4.19.72_cve-2020-24490

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2020-24490

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files253Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

arch/sparc/include/asm/spinlock_types.h

Text · 549 bytes
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __SPARC_SPINLOCK_TYPES_H
#define __SPARC_SPINLOCK_TYPES_H

#ifdef CONFIG_QUEUED_SPINLOCKS
#include <asm-generic/qspinlock_types.h>
#else

typedef struct {
	volatile unsigned char lock;
} arch_spinlock_t;

#define __ARCH_SPIN_LOCK_UNLOCKED	{ 0 }
#endif /* CONFIG_QUEUED_SPINLOCKS */

#ifdef CONFIG_QUEUED_RWLOCKS
#include <asm-generic/qrwlock_types.h>
#else
typedef struct {
	volatile unsigned int lock;
} arch_rwlock_t;

#define __ARCH_RW_LOCK_UNLOCKED		{ 0 }
#endif /* CONFIG_QUEUED_RWLOCKS */
#endif