1 |
Hi! |
2 |
|
3 |
On Sun, Jun 10, 2012 at 04:59:27PM +0300, Alex Efros wrote: |
4 |
> If anyone interested, I've fixed BFS patch for 3.2.11-hardened: |
5 |
> http://powerman.name/download/kernel/3.2-hardened-sched-bfs-416.patch |
6 |
|
7 |
Update for 3.4.2-hardened-r1: |
8 |
http://powerman.name/download/kernel/3.4-hardened-sched-bfs-424.patch |
9 |
|
10 |
|
11 |
Here is diff from original patch: |
12 |
--- /usr/src/3.4-sched-bfs-424.patch 2012-07-22 10:56:58.883010665 +0300 |
13 |
+++ /usr/src/3.4-hardened-sched-bfs-424.patch 2012-07-22 11:23:30.631273337 +0300 |
14 |
@@ -493,12 +493,18 @@ |
15 |
=================================================================== |
16 |
--- linux-3.4-ck3.orig/include/linux/init_task.h 2012-06-01 21:37:22.000000000 +1000 |
17 |
+++ linux-3.4-ck3/include/linux/init_task.h 2012-07-03 14:00:08.123680821 +1000 |
18 |
-@@ -132,12 +132,70 @@ extern struct cred init_cred; |
19 |
+@@ -132,18 +132,77 @@ extern struct cred init_cred; |
20 |
# define INIT_PERF_EVENTS(tsk) |
21 |
#endif |
22 |
|
23 |
-#define INIT_TASK_COMM "swapper" |
24 |
- |
25 |
+ #ifdef CONFIG_X86 |
26 |
+ #define INIT_TASK_THREAD_INFO .tinfo = INIT_THREAD_INFO, |
27 |
+ #else |
28 |
+ #define INIT_TASK_THREAD_INFO |
29 |
+ #endif |
30 |
+ |
31 |
/* |
32 |
* INIT_TASK is used to set up the first task table, touch at |
33 |
* your own risk!. Base=0, limit=0x1fffff (=2MB) |
34 |
@@ -534,6 +540,7 @@ |
35 |
+ RCU_INIT_POINTER(.cred, &init_cred), \ |
36 |
+ .comm = INIT_TASK_COMM, \ |
37 |
+ .thread = INIT_THREAD, \ |
38 |
++ INIT_TASK_THREAD_INFO \ |
39 |
+ .fs = &init_fs, \ |
40 |
+ .files = &init_files, \ |
41 |
+ .signal = &init_signals, \ |
42 |
@@ -980,9 +987,9 @@ |
43 |
static int max_sched_granularity_ns = NSEC_PER_SEC; /* 1 second */ |
44 |
static int min_wakeup_granularity_ns; /* 0 usecs */ |
45 |
@@ -256,6 +261,7 @@ static int max_extfrag_threshold = 1000; |
46 |
+ }, |
47 |
#endif |
48 |
|
49 |
- static struct ctl_table kern_table[] = { |
50 |
+#ifndef CONFIG_SCHED_BFS |
51 |
{ |
52 |
.procname = "sched_child_runs_first", |
53 |
|
54 |
-- |
55 |
WBR, Alex. |