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 files73
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- xfs_ag.c
- xfs_ag.h
- xfs_ag_resv.c
- xfs_ag_resv.h
- xfs_alloc.c
- xfs_alloc.h
- xfs_alloc_btree.c
- xfs_alloc_btree.h
- xfs_attr.c
- xfs_attr.h
- xfs_attr_leaf.c
- xfs_attr_leaf.h
- xfs_attr_remote.c
- xfs_attr_remote.h
- xfs_attr_sf.h
- xfs_bit.c
- xfs_bit.h
- xfs_bmap.c
- xfs_bmap.h
- xfs_bmap_btree.c
- xfs_bmap_btree.h
- xfs_btree.c
- xfs_btree.h
- xfs_cksum.h
- xfs_da_btree.c
- xfs_da_btree.h
- xfs_da_format.c
- xfs_da_format.h
- xfs_defer.c
- xfs_defer.h
- xfs_dir2.c
- xfs_dir2.h
- xfs_dir2_block.c
- xfs_dir2_data.c
- xfs_dir2_leaf.c
- xfs_dir2_node.c
- xfs_dir2_priv.h
- xfs_dir2_sf.c
- xfs_dquot_buf.c
- xfs_errortag.h
- xfs_format.h
- xfs_fs.h
- xfs_ialloc.c
- xfs_ialloc.h
- xfs_ialloc_btree.c
- xfs_ialloc_btree.h
- xfs_iext_tree.c
- xfs_inode_buf.c
- xfs_inode_buf.h
- xfs_inode_fork.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fs/xfs/libxfs/xfs_ag_resv.h
Text · 1,460 bytes// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2016 Oracle. All Rights Reserved.
* Author: Darrick J. Wong <[email protected]>
*/
#ifndef __XFS_AG_RESV_H__
#define __XFS_AG_RESV_H__
int xfs_ag_resv_free(struct xfs_perag *pag);
int xfs_ag_resv_init(struct xfs_perag *pag, struct xfs_trans *tp);
bool xfs_ag_resv_critical(struct xfs_perag *pag, enum xfs_ag_resv_type type);
xfs_extlen_t xfs_ag_resv_needed(struct xfs_perag *pag,
enum xfs_ag_resv_type type);
void xfs_ag_resv_alloc_extent(struct xfs_perag *pag, enum xfs_ag_resv_type type,
struct xfs_alloc_arg *args);
void xfs_ag_resv_free_extent(struct xfs_perag *pag, enum xfs_ag_resv_type type,
struct xfs_trans *tp, xfs_extlen_t len);
/*
* RMAPBT reservation accounting wrappers. Since rmapbt blocks are sourced from
* the AGFL, they are allocated one at a time and the reservation updates don't
* require a transaction.
*/
static inline void
xfs_ag_resv_rmapbt_alloc(
struct xfs_mount *mp,
xfs_agnumber_t agno)
{
struct xfs_alloc_arg args = { NULL };
struct xfs_perag *pag;
args.len = 1;
pag = xfs_perag_get(mp, agno);
xfs_ag_resv_alloc_extent(pag, XFS_AG_RESV_RMAPBT, &args);
xfs_perag_put(pag);
}
static inline void
xfs_ag_resv_rmapbt_free(
struct xfs_mount *mp,
xfs_agnumber_t agno)
{
struct xfs_perag *pag;
pag = xfs_perag_get(mp, agno);
xfs_ag_resv_free_extent(pag, XFS_AG_RESV_RMAPBT, NULL, 1);
xfs_perag_put(pag);
}
#endif /* __XFS_AG_RESV_H__ */