Skip to content

Commit 21fecbd

Browse files
Dapper Secure Kernel Patchset Stable 4.9.122
1 parent de1901d commit 21fecbd

File tree

8 files changed

+76
-3
lines changed

8 files changed

+76
-3
lines changed

init_rebase.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
KERNEL_MAJOR_VERSION=4.9
2-
KERNEL_VERSION=4.9.121
2+
KERNEL_VERSION=4.9.122
33

44
echo "Setting up rebase directory..."
55
rm -rf rebase

kernel/patch-4.9.122.xz

2.05 MB
Binary file not shown.

make_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DATE=`date +%Y-%m-%d`
22
KERNEL_MAJOR_VERSION=4.9
3-
KERNEL_VERSION=4.9.121
3+
KERNEL_VERSION=4.9.122
44

55
echo "Setting up release directory..."
66
mkdir release
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/Makefile b/Makefile
2+
index e54a126841a9..1f44343a1e04 100644
3+
--- a/Makefile
4+
+++ b/Makefile
5+
@@ -1,6 +1,6 @@
6+
VERSION = 4
7+
PATCHLEVEL = 9
8+
-SUBLEVEL = 121
9+
+SUBLEVEL = 122
10+
EXTRAVERSION =
11+
NAME = Roaring Lionus
12+

omitted-patches/omit-4.9.122.patch

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/arch/x86/include/asm/pgtable-invert.h b/arch/x86/include/asm/pgtable-invert.h
2+
index 44b1203ece12..a0c1525f1b6f 100644
3+
--- a/arch/x86/include/asm/pgtable-invert.h
4+
+++ b/arch/x86/include/asm/pgtable-invert.h
5+
@@ -4,9 +4,18 @@
6+
7+
#ifndef __ASSEMBLY__
8+
9+
+/*
10+
+ * A clear pte value is special, and doesn't get inverted.
11+
+ *
12+
+ * Note that even users that only pass a pgprot_t (rather
13+
+ * than a full pte) won't trigger the special zero case,
14+
+ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
15+
+ * set. So the all zero case really is limited to just the
16+
+ * cleared page table entry case.
17+
+ */
18+
static inline bool __pte_needs_invert(u64 val)
19+
{
20+
- return !(val & _PAGE_PRESENT);
21+
+ return val && !(val & _PAGE_PRESENT);
22+
}
23+
24+
/* Get a mask to xor with the page table entry to get the correct pfn. */

omitted-patches/omit-patches.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
# ADD NEWEST FIRST
66

7+
patch -F 0 -R -p1 < ../../omitted-patches/omit-4.9.122.patch
78
patch -F 0 -R -p1 < ../../omitted-patches/omit-4.9.121.patch
89
patch -F 0 -R -p1 < ../../omitted-patches/omit-4.9.120.patch
910
# 4.9.119 does not need any omissions
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
diff --git a/Makefile b/Makefile
2+
index e54a126841a9..1f44343a1e04 100644
3+
--- a/Makefile
4+
+++ b/Makefile
5+
@@ -1,6 +1,6 @@
6+
VERSION = 4
7+
PATCHLEVEL = 9
8+
-SUBLEVEL = 121
9+
+SUBLEVEL = 122
10+
EXTRAVERSION =
11+
NAME = Roaring Lionus
12+
13+
diff --git a/arch/x86/include/asm/pgtable-invert.h b/arch/x86/include/asm/pgtable-invert.h
14+
index 44b1203ece12..a0c1525f1b6f 100644
15+
--- a/arch/x86/include/asm/pgtable-invert.h
16+
+++ b/arch/x86/include/asm/pgtable-invert.h
17+
@@ -4,9 +4,18 @@
18+
19+
#ifndef __ASSEMBLY__
20+
21+
+/*
22+
+ * A clear pte value is special, and doesn't get inverted.
23+
+ *
24+
+ * Note that even users that only pass a pgprot_t (rather
25+
+ * than a full pte) won't trigger the special zero case,
26+
+ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
27+
+ * set. So the all zero case really is limited to just the
28+
+ * cleared page table entry case.
29+
+ */
30+
static inline bool __pte_needs_invert(u64 val)
31+
{
32+
- return !(val & _PAGE_PRESENT);
33+
+ return val && !(val & _PAGE_PRESENT);
34+
}
35+
36+
/* Get a mask to xor with the page table entry to get the correct pfn. */

test_patch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DATE=`date +%Y-%m-%d`
22
KERNEL_MAJOR_VERSION=4.9
3-
KERNEL_VERSION=4.9.121
3+
KERNEL_VERSION=4.9.122
44

55
echo "Removing old kernels..."
66
rm -rf test

0 commit comments

Comments
 (0)