This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// gcc cve-2024-50257.c -lpthread | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#include <fcntl.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import sys | |
def main(jsonfile): | |
with open(jsonfile) as f: | |
all_data = json.loads(f.read()) | |
cve_data = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KERNDIR := /lib/modules/`uname -r`/build | |
BUILD_DIR := $(shell pwd) | |
VERBOSE = 0 | |
obj-m := uname-livepatch.o | |
smallmod-objs := uname-livepatch.o | |
all: | |
make -C $(KERNDIR) M=$(BUILD_DIR) KBUILD_VERBOSE=$(VERBOSE) modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Before run this script, get authengication token via google authenticator app or other tool | |
if [ $# != 1 ]; then | |
echo "usage: $0 [token]" | |
exit 1 | |
fi | |
tokencode=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/auxv.h> | |
#include <unistd.h> | |
static void *find_vdso_start_address(void) | |
{ | |
return (void *) getauxval(AT_SYSINFO_EHDR); | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import sys | |
import time | |
import signal | |
def sigint_handler(signalnum, handler): | |
sys.exit(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/refcount.h> | |
#include <linux/smp.h> | |
#include <linux/slab.h> | |
MODULE_DESCRIPTION("refcount api test"); | |
MODULE_AUTHOR("masami256"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 8e223e0..9f4bd0c 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -1024,6 +1024,7 @@ endif | |
prepare2: prepare3 prepare-compiler-check outputmakefile asm-generic | |
prepare1: prepare2 $(version_h) include/generated/utsrelease.h \ | |
+ include/generated/utscodename.h \ | |
include/config/auto.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | |
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/livepatch.h> | |
#include <linux/seq_file.h> | |
#include <linux/string.h> | |
#include <linux/sched.h> | |
#include <linux/pid_namespace.h> |
NewerOlder