Skip to content

Commit 7d945bf

Browse files
Dapper Secure Kernel Patchset 4.9.69
1 parent 3524752 commit 7d945bf

File tree

7 files changed

+11
-34
lines changed

7 files changed

+11
-34
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.68
2+
KERNEL_VERSION=4.9.69
33

44
echo "Setting up rebase directory..."
55
mkdir rebase

kernel/patch-4.9.69.xz

1.18 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.68
3+
KERNEL_VERSION=4.9.69
44

55
echo "Setting up release directory..."
66
mkdir release

patches/a_arch_arm_include_asm_uaccess.h.patch

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ index 1f59ea05..81245f0 100644
124124
#define access_ok(type, addr, size) (__range_ok(addr, size) == 0)
125125

126126
#define user_addr_max() \
127-
@@ -474,10 +506,10 @@ do { \
127+
@@ -474,10 +474,10 @@ do { \
128128

129129

130130
#ifdef CONFIG_MMU
@@ -134,7 +134,7 @@ index 1f59ea05..81245f0 100644
134134

135135
-static inline unsigned long __must_check
136136
+static inline unsigned long __must_check __size_overflow(3)
137-
__copy_from_user(void *to, const void __user *from, unsigned long n)
137+
__arch_copy_from_user(void *to, const void __user *from, unsigned long n)
138138
{
139139
unsigned int __ua_flags;
140140
@@ -489,9 +521,9 @@ __copy_from_user(void *to, const void __user *from, unsigned long n)
@@ -161,24 +161,3 @@ index 1f59ea05..81245f0 100644
161161
__clear_user_std(void __user *addr, unsigned long n);
162162

163163
static inline unsigned long __must_check
164-
@@ -534,6 +566,10 @@ __clear_user(void __user *addr, unsigned long n)
165-
static inline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n)
166-
{
167-
unsigned long res = n;
168-
+
169-
+ if ((long)n < 0)
170-
+ return n;
171-
+
172-
if (likely(access_ok(VERIFY_READ, from, n)))
173-
res = __copy_from_user(to, from, n);
174-
if (unlikely(res))
175-
@@ -543,6 +579,9 @@ static inline unsigned long __must_check copy_from_user(void *to, const void __u
176-
177-
static inline unsigned long __must_check copy_to_user(void __user *to, const void *from, unsigned long n)
178-
{
179-
+ if ((long)n < 0)
180-
+ return n;
181-
+
182-
if (access_ok(VERIFY_WRITE, to, n))
183-
n = __copy_to_user(to, from, n);
184-
return n;

patches/a_arch_x86_platform_uv_tlb_uv.c.patch

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,14 @@ index 9e42842..fad7e1d 100644
9191

9292
/*
9393
* Pre UV4, the gnode is required to locate the payload queue
94-
@@ -1846,9 +1846,9 @@ static void pq_init(int node, int pnode)
94+
@@ -1846,8 +1846,8 @@ static void pq_init(int node, int pnode)
9595
write_mmr_payload_tail(pnode, tail);
9696
}
9797

9898
- ops.write_payload_first(pnode, first);
9999
- ops.write_payload_last(pnode, last);
100-
- ops.write_g_sw_ack(pnode, 0xffffUL);
101100
+ ops->write_payload_first(pnode, first);
102101
+ ops->write_payload_last(pnode, last);
103-
+ ops->write_g_sw_ack(pnode, 0xffffUL);
104102

105103
/* in effect, all msg_type's are set to MSG_NOOP */
106104
memset(pqp, 0, sizeof(struct bau_pq_entry) * DEST_Q_SIZE);

patches/a_scripts_package_Makefile.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ diff --git a/scripts/package/Makefile b/scripts/package/Makefile
22
index 71b4a8a..dcb89c5 100644
33
--- a/scripts/package/Makefile
44
+++ b/scripts/package/Makefile
5-
@@ -40,7 +40,7 @@ if test "$(objtree)" != "$(srctree)"; then \
5+
@@ -39,7 +39,7 @@ if test "$(objtree)" != "$(srctree)"; then \
6+
false; \
67
fi ; \
78
$(srctree)/scripts/setlocalversion --save-scmversion; \
8-
ln -sf $(srctree) $(2); \
99
-tar -cz $(RCS_TAR_IGNORE) -f $(2).tar.gz \
10-
+tar --owner=root --group=root -cz $(RCS_TAR_IGNORE) -f $(2).tar.gz \
11-
$(addprefix $(2)/,$(TAR_CONTENT) $(3)); \
12-
rm -f $(2) $(objtree)/.scmversion
10+
++tar --owner=root --group=root -cz $(RCS_TAR_IGNORE) -f $(2).tar.gz \
11+
--transform 's:^:$(2)/:S' $(TAR_CONTENT) $(3); \
12+
rm -f $(objtree)/.scmversion
1313

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.68
3+
KERNEL_VERSION=4.9.69
44

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

0 commit comments

Comments
 (0)