Skip to content

Instantly share code, notes, and snippets.

View ptr1337's full-sized avatar
🐢
Working on CachyOS

Peter Jung ptr1337

🐢
Working on CachyOS
View GitHub Profile
@joanbm
joanbm / nvidia-470xx-fix-linux-6.3.patch
Created March 5, 2023 23:14
Tentative fix for NVIDIA 470.161.03 driver for Linux 6.3-rc1
From a77f2da778f4a62695a6c7d26bba674d59ad9170 Mon Sep 17 00:00:00 2001
From: Joan Bruguera <joanbrugueram@gmail.com>
Date: Sat, 25 Feb 2023 10:57:09 +0000
Subject: [PATCH] Tentative fix for NVIDIA 470.161.03 driver for Linux 6.3-rc1
---
common/inc/nv-linux.h | 13 +++++++++++++
nvidia-drm/nvidia-drm-gem-user-memory.c | 7 ++++---
nvidia-uvm/uvm.c | 2 +-
nvidia/nv-mmap.c | 12 ++++++------
@jrelo
jrelo / gcc-security.txt
Last active July 5, 2024 19:12
GCC security related flags reference.
Source material:
http://security.stackexchange.com/questions/24444/what-is-the-most-hardened-set-of-options-for-gcc-compiling-c-c
https://wiki.gentoo.org/wiki/Hardened_Gentoo
https://wiki.debian.org/Hardening
================================================================================================================>
GCC Security related flags and options:
CFLAGS="-fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-z,now -Wl,-z,relro"