Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Hardened (http://www.linux-archive.org/gentoo-hardened/)
-   -   BFS (http://www.linux-archive.org/gentoo-hardened/686128-bfs.html)

Alex Efros 07-22-2012 08:46 AM

BFS
 
Hi!

On Sun, Jun 10, 2012 at 04:59:27PM +0300, Alex Efros wrote:
> If anyone interested, I've fixed BFS patch for 3.2.11-hardened:
> http://powerman.name/download/kernel/3.2-hardened-sched-bfs-416.patch

Update for 3.4.2-hardened-r1:
http://powerman.name/download/kernel/3.4-hardened-sched-bfs-424.patch


Here is diff from original patch:
--- /usr/src/3.4-sched-bfs-424.patch 2012-07-22 10:56:58.883010665 +0300
+++ /usr/src/3.4-hardened-sched-bfs-424.patch 2012-07-22 11:23:30.631273337 +0300
@@ -493,12 +493,18 @@
================================================== =================
--- linux-3.4-ck3.orig/include/linux/init_task.h 2012-06-01 21:37:22.000000000 +1000
+++ linux-3.4-ck3/include/linux/init_task.h 2012-07-03 14:00:08.123680821 +1000
-@@ -132,12 +132,70 @@ extern struct cred init_cred;
+@@ -132,18 +132,77 @@ extern struct cred init_cred;
# define INIT_PERF_EVENTS(tsk)
#endif

-#define INIT_TASK_COMM "swapper"
-
+ #ifdef CONFIG_X86
+ #define INIT_TASK_THREAD_INFO .tinfo = INIT_THREAD_INFO,
+ #else
+ #define INIT_TASK_THREAD_INFO
+ #endif
+
/*
* INIT_TASK is used to set up the first task table, touch at
* your own risk!. Base=0, limit=0x1fffff (=2MB)
@@ -534,6 +540,7 @@
+ RCU_INIT_POINTER(.cred, &init_cred),
+ .comm = INIT_TASK_COMM,
+ .thread = INIT_THREAD,
++ INIT_TASK_THREAD_INFO
+ .fs = &init_fs,
+ .files = &init_files,
+ .signal = &init_signals,
@@ -980,9 +987,9 @@
static int max_sched_granularity_ns = NSEC_PER_SEC; /* 1 second */
static int min_wakeup_granularity_ns; /* 0 usecs */
@@ -256,6 +261,7 @@ static int max_extfrag_threshold = 1000;
+ },
#endif

- static struct ctl_table kern_table[] = {
+#ifndef CONFIG_SCHED_BFS
{
.procname = "sched_child_runs_first",

--
WBR, Alex.


All times are GMT. The time now is 02:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.