Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files79
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- syscalls/
- vdso32/
- vdso64/
- .gitignore
- Makefile
- alternative.c
- asm-offsets.c
- audit.c
- audit.h
- base.S
- cache.c
- compat_audit.c
- compat_linux.c
- compat_linux.h
- compat_ptrace.h
- compat_signal.c
- compat_wrapper.c
- cpcmd.c
- crash_dump.c
- debug.c
- diag.c
- dis.c
- dumpstack.c
- early.c
- early_nobss.c
- early_printk.c
- ebcdic.c
- entry.S
- entry.h
- fpu.c
- ftrace.c
- guarded_storage.c
- head64.S
- idle.c
- ipl.c
- irq.c
- jump_label.c
- kdebugfs.c
- kexec_elf.c
- kexec_image.c
- kprobes.c
- lgr.c
- machine_kexec.c
- machine_kexec_file.c
- mcount.S
- module.c
- nmi.c
- nospec-branch.c
- nospec-sysfs.c
- os_info.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/s390/kernel/early_printk.c
C · 824 bytes// SPDX-License-Identifier: GPL-2.0
/*
* Copyright IBM Corp. 2017
*/
#include <linux/console.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <asm/sclp.h>
static void sclp_early_write(struct console *con, const char *s, unsigned int len)
{
__sclp_early_printk(s, len, 0);
}
static struct console sclp_early_console = {
.name = "earlysclp",
.write = sclp_early_write,
.flags = CON_PRINTBUFFER | CON_BOOT,
.index = -1,
};
static int __init setup_early_printk(char *buf)
{
if (early_console)
return 0;
/* Accept only "earlyprintk" and "earlyprintk=sclp" */
if (buf && strncmp(buf, "sclp", 4))
return 0;
if (!sclp.has_linemode && !sclp.has_vt220)
return 0;
early_console = &sclp_early_console;
register_console(early_console);
return 0;
}
early_param("earlyprintk", setup_early_printk);