Skip to content

Commit 90f82d2

Browse files
committedDec 10, 2016
linux: add patch to fix CVE-2016-8655
See https://lwn.net/Articles/708319/ for more information. (cherry picked from commit 9074d98)
1 parent 87c227f commit 90f82d2

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed
 

Diff for: ‎pkgs/os-specific/linux/kernel/patches.nix

+9-1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,14 @@ rec {
146146
url = "https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git"
147147
+ "/patch/drivers/lguest/x86/core.c?id=cdd77e87eae52";
148148
sha256 = "04xlx6al10cw039av6jkby7gx64zayj8m1k9iza40sw0fydcfqhc";
149+
};
150+
};
151+
152+
packet_fix_race_condition_CVE_2016_8655 =
153+
{ name = "packet_fix_race_condition_CVE_2016_8655.patch";
154+
patch = fetchpatch {
155+
url = "https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/patch/?id=84ac7260236a49c79eede91617700174c2c19b0c";
156+
sha256 = "19viqjjgq8j8jiz5yhgmzwhqvhwv175q645qdazd1k69d25nv2ki";
157+
};
149158
};
150-
};
151159
}

Diff for: ‎pkgs/top-level/all-packages.nix

+22-4
Original file line numberDiff line numberDiff line change
@@ -11162,6 +11162,7 @@ in
1116211162
kernelPatches =
1116311163
[ kernelPatches.bridge_stp_helper
1116411164
kernelPatches.hiddev_CVE_2016_5829
11165+
kernelPatches.packet_fix_race_condition_CVE_2016_8655
1116511166
]
1116611167
++ lib.optionals ((platform.kernelArch or null) == "mips")
1116711168
[ kernelPatches.mips_fpureg_emu
@@ -11171,11 +11172,18 @@ in
1117111172
};
1117211173

1117311174
linux_rpi = callPackage ../os-specific/linux/kernel/linux-rpi.nix {
11174-
kernelPatches = [ kernelPatches.bridge_stp_helper ];
11175+
kernelPatches = with kernelPatches; [
11176+
bridge_stp_helper
11177+
packet_fix_race_condition_CVE_2016_8655
11178+
];
1117511179
};
1117611180

1117711181
linux_3_10 = callPackage ../os-specific/linux/kernel/linux-3.10.nix {
11178-
kernelPatches = with kernelPatches; [ bridge_stp_helper lguest_entry-linkage ]
11182+
kernelPatches = with kernelPatches;
11183+
[ bridge_stp_helper
11184+
lguest_entry-linkage
11185+
packet_fix_race_condition_CVE_2016_8655
11186+
]
1117911187
++ lib.optionals ((platform.kernelArch or null) == "mips")
1118011188
[ kernelPatches.mips_fpureg_emu
1118111189
kernelPatches.mips_fpu_sigill
@@ -11184,7 +11192,11 @@ in
1118411192
};
1118511193

1118611194
linux_3_12 = callPackage ../os-specific/linux/kernel/linux-3.12.nix {
11187-
kernelPatches = with kernelPatches; [ bridge_stp_helper crc_regression ]
11195+
kernelPatches = with kernelPatches;
11196+
[ bridge_stp_helper
11197+
crc_regression
11198+
packet_fix_race_condition_CVE_2016_8655
11199+
]
1118811200
++ lib.optionals ((platform.kernelArch or null) == "mips")
1118911201
[ kernelPatches.mips_fpureg_emu
1119011202
kernelPatches.mips_fpu_sigill
@@ -11202,7 +11214,10 @@ in
1120211214
};
1120311215

1120411216
linux_3_18 = callPackage ../os-specific/linux/kernel/linux-3.18.nix {
11205-
kernelPatches = [ kernelPatches.bridge_stp_helper ]
11217+
kernelPatches =
11218+
[ kernelPatches.bridge_stp_helper
11219+
kernelPatches.packet_fix_race_condition_CVE_2016_8655
11220+
]
1120611221
++ lib.optionals ((platform.kernelArch or null) == "mips")
1120711222
[ kernelPatches.mips_fpureg_emu
1120811223
kernelPatches.mips_fpu_sigill
@@ -11213,6 +11228,7 @@ in
1121311228
linux_4_1 = callPackage ../os-specific/linux/kernel/linux-4.1.nix {
1121411229
kernelPatches =
1121511230
[ kernelPatches.bridge_stp_helper
11231+
kernelPatches.packet_fix_race_condition_CVE_2016_8655
1121611232
]
1121711233
++ lib.optionals ((platform.kernelArch or null) == "mips")
1121811234
[ kernelPatches.mips_fpureg_emu
@@ -11225,6 +11241,7 @@ in
1122511241
kernelPatches =
1122611242
[ kernelPatches.bridge_stp_helper
1122711243
kernelPatches.cpu-cgroup-v2."4.4"
11244+
kernelPatches.packet_fix_race_condition_CVE_2016_8655
1122811245
]
1122911246
++ lib.optionals ((platform.kernelArch or null) == "mips")
1123011247
[ kernelPatches.mips_fpureg_emu
@@ -11241,6 +11258,7 @@ in
1124111258
# !!! 4.7 patch doesn't apply, 4.8 patch not up yet, will keep checking
1124211259
# kernelPatches.cpu-cgroup-v2."4.7"
1124311260
kernelPatches.modinst_arg_list_too_long
11261+
kernelPatches.packet_fix_race_condition_CVE_2016_8655
1124411262
]
1124511263
++ lib.optionals ((platform.kernelArch or null) == "mips")
1124611264
[ kernelPatches.mips_fpureg_emu

0 commit comments

Comments
 (0)
Please sign in to comment.