Skip to content

Instantly share code, notes, and snippets.

View Bot-wxt1221's full-sized avatar
😃
Working

Bot_wxt1221 Bot-wxt1221

😃
Working
View GitHub Profile
[ 1.507874] i915 0000:07:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[ 1.526188] i915 0000:07:00.0: Direct firmware load for i915/kbl_dmc_ver1_04.bin failed with error -2
[ 1.526218] i915 0000:07:00.0: [drm] Failed to load DMC firmware i915/kbl_dmc_ver1_04.bin (-ENOENT). Disabling runtime power management.
[ 1.526225] i915 0000:07:00.0: [drm] DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
[ 1.591079] i915 0000:07:00.0: [drm] *ERROR* Failed to disable SAGV (-110)
[ 1.591344] ------------[ cut here ]------------
[ 1.591346] i915 0000:07:00.0: drm_WARN_ON(i915->display.sagv.status == I915_SAGV_UNKNOWN)
[ 1.591388] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/i915/display/skl_watermark.c:123 skl_wm_init+0x2af/0x660
[ 1.591420] Modules linked in:
[ 1.591429] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.10.0-rc2 #10
@Bot-wxt1221
Bot-wxt1221 / c
Last active February 5, 2024 07:12
example
#include <sys/syscall.h>
#include <linux/mount.h>
#include <sys/types.h>
#include <linux/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
typedef unsigned long long u64;
@Bot-wxt1221
Bot-wxt1221 / __send_signal.c
Last active January 23, 2024 12:21
__send_signal
static int __send_signal(int sig, struct kernel_siginfo *info, struct task_struct *t,
enum pid_type type, bool force)
{
struct sigpending *pending;
struct sigqueue *q;
int override_rlimit;
int ret = 0, result;
assert_spin_locked(&t->sighand->siglock);
@Bot-wxt1221
Bot-wxt1221 / core_hook.c
Last active January 23, 2024 08:12
core_hook.c
#include "linux/capability.h"
#include "linux/cred.h"
#include "linux/dcache.h"
#include "linux/err.h"
#include "linux/init.h"
#include "linux/init_task.h"
#include "linux/kernel.h"
#include "linux/kprobes.h"
#include "linux/lsm_hooks.h"
#include "linux/nsproxy.h"