Skip to content

Instantly share code, notes, and snippets.

diff --git a/pinguinsite/settings.py b/pinguinsite/settings.py
index 011d1f0..4b46f47 100644
--- a/pinguinsite/settings.py
+++ b/pinguinsite/settings.py
@@ -10,15 +10,11 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""
+import os
from pathlib import Path
MX-VERIFY-CGI run for ``kpsingh@chromium.org''
Doing resolver lookup for T=MX domain=``chromium.org''
DNS yields following MX entries
chromium.org (40799s) IN MX 10 aspmx.l.google.com
chromium.org (40799s) IN MX 20 alt2.aspmx.l.google.com
chromium.org (40799s) IN MX 20 alt1.aspmx.l.google.com
chromium.org (40799s) IN MX 30 aspmx3.googlemail.com
chromium.org (40799s) IN MX 30 aspmx4.googlemail.com
chromium.org (40799s) IN MX 30 aspmx5.googlemail.com
chromium.org (40799s) IN MX 30 aspmx2.googlemail.com
@sinkap
sinkap / ima.patch
Last active September 16, 2020 13:24
Subject: [PATCH] ima: Fix NULL pointer dereference in ima_file_hash
Date: Wed, 16 Sep 2020 12:05:48 +0000
Message-Id: <20200916120548.364892-1-kpsingh@chromium.org>
X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
From: KP Singh <kpsingh@google.com>
ima_file_hash can be called when there is no iint->ima_hash available
diff --git a/include/linux/bpf_lsm.h b/include/linux/bpf_lsm.h
index af74712af585..2499ff451857 100644
--- a/include/linux/bpf_lsm.h
+++ b/include/linux/bpf_lsm.h
@@ -17,9 +17,23 @@
#include <linux/lsm_hook_defs.h>
#undef LSM_HOOK
+struct bpf_lsm_storage {
+ struct bpf_local_storage __rcu *storage;
* { background:#212121 !important; color:#ccc !important }
/*
* Underlined links add visual noise which make them hard-to-read.
* Use colors to make them stand out, instead.
*/
a { color:#29b6f6 !important; text-decoration:none !important }
a:visited { color:#7e57c2 !important }
/* quoted text in emails gets a different color */
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.6.0 Kernel Configuration
#
#
# Compiler: gcc (Debian 9.2.1-19) 9.2.1 20191109
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90201
cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 10/10 #P:4
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c
index 34818dfbde50..bf798ff09c4e 100644
--- a/arch/x86/net/bpf_jit_comp.c
+++ b/arch/x86/net/bpf_jit_comp.c
@@ -1361,11 +1361,9 @@ static void restore_regs(const struct btf_func_model *m, u8 **prog, int nr_args,
-(stack_size - i * 8));
}
-
static int invoke_bpf_prog(const struct btf_func_model *m, u8 **pprog,
@sinkap
sinkap / Fixes
Last active February 29, 2020 08:24
fmod_ret
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c
index 79cdb323d4d7..e97204310cb0 100644
--- a/arch/x86/net/bpf_jit_comp.c
+++ b/arch/x86/net/bpf_jit_comp.c
@@ -1503,6 +1503,14 @@ int arch_prepare_bpf_trampoline(void *image, void *image_end,
save_regs(m, &prog, nr_args, stack_size);
+ /* The sequence of events is:
+ *
### Keybase proof
I hereby claim:
* I am sinkap on github.
* I am kpsingh (https://keybase.io/kpsingh) on keybase.
* I have a public key ASA85AgdWFtkqaMuFw2qf04L8hU2qL7zWZLMowKbalvokgo
To claim this, I am signing this object: