Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files75
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- blocklayout/
- filelayout/
- flexfilelayout/
- Kconfig
- Makefile
- cache_lib.c
- cache_lib.h
- callback.c
- callback.h
- callback_proc.c
- callback_xdr.c
- client.c
- delegation.c
- delegation.h
- dir.c
- direct.c
- dns_resolve.c
- dns_resolve.h
- export.c
- file.c
- fscache-index.c
- fscache.c
- fscache.h
- getroot.c
- inode.c
- internal.h
- io.c
- iostat.h
- mount_clnt.c
- namespace.c
- netns.h
- nfs.h
- nfs2super.c
- nfs2xdr.c
- nfs3_fs.h
- nfs3acl.c
- nfs3client.c
- nfs3proc.c
- nfs3super.c
- nfs3xdr.c
- nfs42.h
- nfs42proc.c
- nfs42xdr.c
- nfs4_fs.h
- nfs4client.c
- nfs4file.c
- nfs4getroot.c
- nfs4idmap.c
- nfs4idmap.h
- nfs4namespace.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fs/nfs/iostat.h
Text · 1,870 bytes/* SPDX-License-Identifier: GPL-2.0 */
/*
* linux/fs/nfs/iostat.h
*
* Declarations for NFS client per-mount statistics
*
* Copyright (C) 2005, 2006 Chuck Lever <[email protected]>
*
*/
#ifndef _NFS_IOSTAT
#define _NFS_IOSTAT
#include <linux/percpu.h>
#include <linux/cache.h>
#include <linux/nfs_iostat.h>
struct nfs_iostats {
unsigned long long bytes[__NFSIOS_BYTESMAX];
#ifdef CONFIG_NFS_FSCACHE
unsigned long long fscache[__NFSIOS_FSCACHEMAX];
#endif
unsigned long events[__NFSIOS_COUNTSMAX];
} ____cacheline_aligned;
static inline void nfs_inc_server_stats(const struct nfs_server *server,
enum nfs_stat_eventcounters stat)
{
this_cpu_inc(server->io_stats->events[stat]);
}
static inline void nfs_inc_stats(const struct inode *inode,
enum nfs_stat_eventcounters stat)
{
nfs_inc_server_stats(NFS_SERVER(inode), stat);
}
static inline void nfs_add_server_stats(const struct nfs_server *server,
enum nfs_stat_bytecounters stat,
long addend)
{
this_cpu_add(server->io_stats->bytes[stat], addend);
}
static inline void nfs_add_stats(const struct inode *inode,
enum nfs_stat_bytecounters stat,
long addend)
{
nfs_add_server_stats(NFS_SERVER(inode), stat, addend);
}
#ifdef CONFIG_NFS_FSCACHE
static inline void nfs_add_fscache_stats(struct inode *inode,
enum nfs_stat_fscachecounters stat,
long addend)
{
this_cpu_add(NFS_SERVER(inode)->io_stats->fscache[stat], addend);
}
static inline void nfs_inc_fscache_stats(struct inode *inode,
enum nfs_stat_fscachecounters stat)
{
this_cpu_inc(NFS_SERVER(inode)->io_stats->fscache[stat]);
}
#endif
static inline struct nfs_iostats __percpu *nfs_alloc_iostats(void)
{
return alloc_percpu(struct nfs_iostats);
}
static inline void nfs_free_iostats(struct nfs_iostats __percpu *stats)
{
if (stats != NULL)
free_percpu(stats);
}
#endif /* _NFS_IOSTAT */