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 files34
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- Kconfig
- Makefile
- alarmtimer.c
- clockevents.c
- clocksource.c
- hrtimer.c
- itimer.c
- jiffies.c
- ntp.c
- ntp_internal.h
- posix-clock.c
- posix-cpu-timers.c
- posix-stubs.c
- posix-timers.c
- posix-timers.h
- sched_clock.c
- test_udelay.c
- tick-broadcast-hrtimer.c
- tick-broadcast.c
- tick-common.c
- tick-internal.h
- tick-oneshot.c
- tick-sched.c
- tick-sched.h
- time.c
- timeconst.bc
- timeconv.c
- timecounter.c
- timekeeping.c
- timekeeping.h
- timekeeping_debug.c
- timekeeping_internal.h
- timer.c
- timer_list.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
kernel/time/timekeeping_internal.h
Text · 784 bytes/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _TIMEKEEPING_INTERNAL_H
#define _TIMEKEEPING_INTERNAL_H
/*
* timekeeping debug functions
*/
#include <linux/clocksource.h>
#include <linux/time.h>
#ifdef CONFIG_DEBUG_FS
extern void tk_debug_account_sleep_time(const struct timespec64 *t);
#else
#define tk_debug_account_sleep_time(x)
#endif
#ifdef CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE
static inline u64 clocksource_delta(u64 now, u64 last, u64 mask)
{
u64 ret = (now - last) & mask;
/*
* Prevent time going backwards by checking the MSB of mask in
* the result. If set, return 0.
*/
return ret & ~(mask >> 1) ? 0 : ret;
}
#else
static inline u64 clocksource_delta(u64 now, u64 last, u64 mask)
{
return (now - last) & mask;
}
#endif
#endif /* _TIMEKEEPING_INTERNAL_H */