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 files33
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- asm/
- os-Linux/
- shared/
- vdso/
- Kconfig
- Makefile
- bugs_32.c
- bugs_64.c
- checksum_32.S
- delay.c
- elfcore.c
- fault.c
- ldt.c
- mem_32.c
- mem_64.c
- ptrace_32.c
- ptrace_64.c
- ptrace_user.c
- setjmp_32.S
- setjmp_64.S
- signal.c
- stub_32.S
- stub_64.S
- stub_segv.c
- sys_call_table_32.c
- sys_call_table_64.c
- syscalls_32.c
- syscalls_64.c
- sysrq_32.c
- sysrq_64.c
- tls_32.c
- tls_64.c
- user-offsets.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/x86/um/tls_64.c
C · 425 bytes// SPDX-License-Identifier: GPL-2.0
#include <linux/sched.h>
#include <asm/ptrace-abi.h>
void clear_flushed_tls(struct task_struct *task)
{
}
int arch_copy_tls(struct task_struct *t)
{
/*
* If CLONE_SETTLS is set, we need to save the thread id
* (which is argument 5, child_tid, of clone) so it can be set
* during context switches.
*/
t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)];
return 0;
}