Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files20
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Makefile
- clock-sh3.c
- clock-sh7705.c
- clock-sh7706.c
- clock-sh7709.c
- clock-sh7710.c
- clock-sh7712.c
- entry.S
- ex.S
- pinmux-sh7720.c
- probe.c
- serial-sh770x.c
- serial-sh7710.c
- serial-sh7720.c
- setup-sh3.c
- setup-sh7705.c
- setup-sh770x.c
- setup-sh7710.c
- setup-sh7720.c
- swsusp.S
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/sh/kernel/cpu/sh3/serial-sh7710.c
C · 590 bytes// SPDX-License-Identifier: GPL-2.0
#include <linux/serial_sci.h>
#include <linux/serial_core.h>
#include <linux/io.h>
#include <cpu/serial.h>
#define PACR 0xa4050100
#define PBCR 0xa4050102
static void sh7710_sci_init_pins(struct uart_port *port, unsigned int cflag)
{
if (port->mapbase == 0xA4400000) {
__raw_writew(__raw_readw(PACR) & 0xffc0, PACR);
__raw_writew(__raw_readw(PBCR) & 0x0fff, PBCR);
} else if (port->mapbase == 0xA4410000)
__raw_writew(__raw_readw(PBCR) & 0xf003, PBCR);
}
struct plat_sci_port_ops sh7710_sci_port_ops = {
.init_pins = sh7710_sci_init_pins,
};