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 files87
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- tests/
- Kconfig
- Makefile
- acl.c
- async-thread.c
- async-thread.h
- backref.c
- backref.h
- btrfs_inode.h
- check-integrity.c
- check-integrity.h
- compression.c
- compression.h
- ctree.c
- ctree.h
- dedupe.h
- delayed-inode.c
- delayed-inode.h
- delayed-ref.c
- delayed-ref.h
- dev-replace.c
- dev-replace.h
- dir-item.c
- disk-io.c
- disk-io.h
- export.c
- export.h
- extent-tree.c
- extent_io.c
- extent_io.h
- extent_map.c
- extent_map.h
- file-item.c
- file.c
- free-space-cache.c
- free-space-cache.h
- free-space-tree.c
- free-space-tree.h
- inode-item.c
- inode-map.c
- inode-map.h
- inode.c
- ioctl.c
- locking.c
- locking.h
- lzo.c
- math.h
- ordered-data.c
- ordered-data.h
- orphan.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fs/btrfs/rcu-string.h
Text · 998 bytes/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2012 Red Hat. All rights reserved.
*/
#ifndef BTRFS_RCU_STRING_H
#define BTRFS_RCU_STRING_H
struct rcu_string {
struct rcu_head rcu;
char str[0];
};
static inline struct rcu_string *rcu_string_strdup(const char *src, gfp_t mask)
{
size_t len = strlen(src) + 1;
struct rcu_string *ret = kzalloc(sizeof(struct rcu_string) +
(len * sizeof(char)), mask);
if (!ret)
return ret;
strncpy(ret->str, src, len);
return ret;
}
static inline void rcu_string_free(struct rcu_string *str)
{
if (str)
kfree_rcu(str, rcu);
}
#define printk_in_rcu(fmt, ...) do { \
rcu_read_lock(); \
printk(fmt, __VA_ARGS__); \
rcu_read_unlock(); \
} while (0)
#define printk_ratelimited_in_rcu(fmt, ...) do { \
rcu_read_lock(); \
printk_ratelimited(fmt, __VA_ARGS__); \
rcu_read_unlock(); \
} while (0)
#define rcu_str_deref(rcu_str) ({ \
struct rcu_string *__str = rcu_dereference(rcu_str); \
__str->str; \
})
#endif