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 files65
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kconfig
- Makefile
- chan.h
- chan_kern.c
- chan_user.c
- chan_user.h
- cow.h
- cow_sys.h
- cow_user.c
- daemon.h
- daemon_kern.c
- daemon_user.c
- fd.c
- harddog_kern.c
- harddog_user.c
- hostaudio_kern.c
- line.c
- line.h
- mconsole.h
- mconsole_kern.c
- mconsole_kern.h
- mconsole_user.c
- mmapper_kern.c
- net_kern.c
- net_user.c
- null.c
- pcap_kern.c
- pcap_user.c
- pcap_user.h
- port.h
- port_kern.c
- port_user.c
- pty.c
- random.c
- slip.h
- slip_common.c
- slip_common.h
- slip_kern.c
- slip_user.c
- slirp.h
- slirp_kern.c
- slirp_user.c
- ssl.c
- ssl.h
- stderr_console.c
- stdio_console.c
- stdio_console.h
- tty.c
- ubd.h
- ubd_kern.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/um/drivers/null.c
C · 970 bytes/*
* Copyright (C) 2002 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com)
* Licensed under the GPL
*/
#include <stddef.h>
#include <errno.h>
#include <fcntl.h>
#include "chan_user.h"
#include <os.h>
/* This address is used only as a unique identifier */
static int null_chan;
static void *null_init(char *str, int device, const struct chan_opts *opts)
{
return &null_chan;
}
static int null_open(int input, int output, int primary, void *d,
char **dev_out)
{
int fd;
*dev_out = NULL;
fd = open(DEV_NULL, O_RDWR);
return (fd < 0) ? -errno : fd;
}
static int null_read(int fd, char *c_out, void *unused)
{
return -ENODEV;
}
static void null_free(void *data)
{
}
const struct chan_ops null_ops = {
.type = "null",
.init = null_init,
.open = null_open,
.close = generic_close,
.read = null_read,
.write = generic_write,
.console_write = generic_console_write,
.window_size = generic_window_size,
.free = null_free,
.winch = 0,
};