Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files34
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kconfig
- Makefile
- block.c
- cache.c
- decompressor.c
- decompressor.h
- decompressor_multi.c
- decompressor_multi_percpu.c
- decompressor_single.c
- dir.c
- export.c
- file.c
- file_cache.c
- file_direct.c
- fragment.c
- id.c
- inode.c
- lz4_wrapper.c
- lzo_wrapper.c
- namei.c
- page_actor.c
- page_actor.h
- squashfs.h
- squashfs_fs.h
- squashfs_fs_i.h
- squashfs_fs_sb.h
- super.c
- symlink.c
- xattr.c
- xattr.h
- xattr_id.c
- xz_wrapper.c
- zlib_wrapper.c
- zstd_wrapper.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
fs/squashfs/file_cache.c
C · 969 bytes/*
* Copyright (c) 2013
* Phillip Lougher <[email protected]>
*
* This work is licensed under the terms of the GNU GPL, version 2. See
* the COPYING file in the top-level directory.
*/
#include <linux/fs.h>
#include <linux/vfs.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/pagemap.h>
#include <linux/mutex.h>
#include "squashfs_fs.h"
#include "squashfs_fs_sb.h"
#include "squashfs_fs_i.h"
#include "squashfs.h"
/* Read separately compressed datablock and memcopy into page cache */
int squashfs_readpage_block(struct page *page, u64 block, int bsize, int expected)
{
struct inode *i = page->mapping->host;
struct squashfs_cache_entry *buffer = squashfs_get_datablock(i->i_sb,
block, bsize);
int res = buffer->error;
if (res)
ERROR("Unable to read page, block %llx, size %x\n", block,
bsize);
else
squashfs_copy_cache(page, buffer, expected, 0);
squashfs_cache_put(buffer);
return res;
}