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 files116
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- libxfs/
- scrub/
- Kconfig
- Makefile
- kmem.c
- kmem.h
- mrlock.h
- xfs.h
- xfs_acl.c
- xfs_acl.h
- xfs_aops.c
- xfs_aops.h
- xfs_attr_inactive.c
- xfs_attr_list.c
- xfs_bmap_item.c
- xfs_bmap_item.h
- xfs_bmap_util.c
- xfs_bmap_util.h
- xfs_buf.c
- xfs_buf.h
- xfs_buf_item.c
- xfs_buf_item.h
- xfs_dir2_readdir.c
- xfs_discard.c
- xfs_discard.h
- xfs_dquot.c
- xfs_dquot.h
- xfs_dquot_item.c
- xfs_dquot_item.h
- xfs_error.c
- xfs_error.h
- xfs_export.c
- xfs_export.h
- xfs_extent_busy.c
- xfs_extent_busy.h
- xfs_extfree_item.c
- xfs_extfree_item.h
- xfs_file.c
- xfs_filestream.c
- xfs_filestream.h
- xfs_fsmap.c
- xfs_fsmap.h
- xfs_fsops.c
- xfs_fsops.h
- xfs_globals.c
- xfs_icache.c
- xfs_icache.h
- xfs_icreate_item.c
- xfs_icreate_item.h
- xfs_inode.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fs/xfs/xfs_sysfs.h
Text · 1,188 bytes// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2014 Red Hat, Inc.
* All Rights Reserved.
*/
#ifndef __XFS_SYSFS_H__
#define __XFS_SYSFS_H__
extern struct kobj_type xfs_mp_ktype; /* xfs_mount */
extern struct kobj_type xfs_dbg_ktype; /* debug */
extern struct kobj_type xfs_log_ktype; /* xlog */
extern struct kobj_type xfs_stats_ktype; /* stats */
static inline struct xfs_kobj *
to_kobj(struct kobject *kobject)
{
return container_of(kobject, struct xfs_kobj, kobject);
}
static inline void
xfs_sysfs_release(struct kobject *kobject)
{
struct xfs_kobj *kobj = to_kobj(kobject);
complete(&kobj->complete);
}
static inline int
xfs_sysfs_init(
struct xfs_kobj *kobj,
struct kobj_type *ktype,
struct xfs_kobj *parent_kobj,
const char *name)
{
init_completion(&kobj->complete);
return kobject_init_and_add(&kobj->kobject, ktype,
&parent_kobj->kobject, "%s", name);
}
static inline void
xfs_sysfs_del(
struct xfs_kobj *kobj)
{
kobject_del(&kobj->kobject);
kobject_put(&kobj->kobject);
wait_for_completion(&kobj->complete);
}
int xfs_error_sysfs_init(struct xfs_mount *mp);
void xfs_error_sysfs_del(struct xfs_mount *mp);
#endif /* __XFS_SYSFS_H__ */