Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:4.3 commit in: /
Date: Fri, 11 Dec 2015 00:31:35
Message-Id: 1449793877.69c780db4978344f372352a5887d76d8c3ef0ea6.mpagano@gentoo
1 commit: 69c780db4978344f372352a5887d76d8c3ef0ea6
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 11 00:31:17 2015 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 11 00:31:17 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=69c780db
7
8 Linux patch 4.3.2
9
10 0000_README | 8 +++++++-
11 1001_linux-4.3.2.patch | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
12 2 files changed, 56 insertions(+), 1 deletion(-)
13
14 diff --git a/0000_README b/0000_README
15 index eb12e02..5fc79da 100644
16 --- a/0000_README
17 +++ b/0000_README
18 @@ -43,7 +43,13 @@ EXPERIMENTAL
19 Individual Patch Descriptions:
20 --------------------------------------------------------------------------
21
22 -Patch: 1000_linux-4.3.1.patch From: http://www.kernel.org Desc: Linux 4.3.1
23 +Patch: 1000_linux-4.3.1.patch
24 +From: http://www.kernel.org
25 +Desc: Linux 4.3.1
26 +
27 +Patch: 1001_linux-4.3.2.patch
28 +From: http://www.kernel.org
29 +Desc: Linux 4.3.2
30
31 Patch: 1500_XATTR_USER_PREFIX.patch
32 From: https://bugs.gentoo.org/show_bug.cgi?id=470644
33
34 diff --git a/1001_linux-4.3.2.patch b/1001_linux-4.3.2.patch
35 new file mode 100644
36 index 0000000..c3c1b19
37 --- /dev/null
38 +++ b/1001_linux-4.3.2.patch
39 @@ -0,0 +1,49 @@
40 +diff --git a/Makefile b/Makefile
41 +index 266eeacc1490..1a4953b3e10f 100644
42 +--- a/Makefile
43 ++++ b/Makefile
44 +@@ -1,6 +1,6 @@
45 + VERSION = 4
46 + PATCHLEVEL = 3
47 +-SUBLEVEL = 1
48 ++SUBLEVEL = 2
49 + EXTRAVERSION =
50 + NAME = Blurry Fish Butt
51 +
52 +diff --git a/crypto/asymmetric_keys/x509_cert_parser.c b/crypto/asymmetric_keys/x509_cert_parser.c
53 +index af71878dc15b..021d39c0ba75 100644
54 +--- a/crypto/asymmetric_keys/x509_cert_parser.c
55 ++++ b/crypto/asymmetric_keys/x509_cert_parser.c
56 +@@ -531,7 +531,11 @@ int x509_decode_time(time64_t *_t, size_t hdrlen,
57 + if (*p != 'Z')
58 + goto unsupported_time;
59 +
60 +- mon_len = month_lengths[mon];
61 ++ if (year < 1970 ||
62 ++ mon < 1 || mon > 12)
63 ++ goto invalid_time;
64 ++
65 ++ mon_len = month_lengths[mon - 1];
66 + if (mon == 2) {
67 + if (year % 4 == 0) {
68 + mon_len = 29;
69 +@@ -543,14 +547,12 @@ int x509_decode_time(time64_t *_t, size_t hdrlen,
70 + }
71 + }
72 +
73 +- if (year < 1970 ||
74 +- mon < 1 || mon > 12 ||
75 +- day < 1 || day > mon_len ||
76 +- hour < 0 || hour > 23 ||
77 +- min < 0 || min > 59 ||
78 +- sec < 0 || sec > 59)
79 ++ if (day < 1 || day > mon_len ||
80 ++ hour > 23 ||
81 ++ min > 59 ||
82 ++ sec > 59)
83 + goto invalid_time;
84 +-
85 ++
86 + *_t = mktime64(year, mon, day, hour, min, sec);
87 + return 0;
88 +