From: Chris Wright Date: Mon, 17 Mar 2008 23:27:51 +0000 (-0700) Subject: fix mode bits for sched_nr_migrate X-Git-Tag: v2.6.24.4~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50482d99da71bd545950a04287c67676808178cb;p=thirdparty%2Fkernel%2Fstable-queue.git fix mode bits for sched_nr_migrate --- diff --git a/queue-2.6.24/sched_nr_migrate-wrong-mode-bits.patch b/queue-2.6.24/sched_nr_migrate-wrong-mode-bits.patch new file mode 100644 index 00000000000..b598afbab80 --- /dev/null +++ b/queue-2.6.24/sched_nr_migrate-wrong-mode-bits.patch @@ -0,0 +1,36 @@ +From stable-bounces@linux.kernel.org Mon Mar 17 16:22:36 2008 +Date: Tue, 18 Mar 2008 00:13:16 +0100 +From: Michal Schmidt +To: stable@kernel.org +Message-ID: <20080318001316.25c6a440@hammerfall> +Cc: Peter Zijlstra +Subject: sched_nr_migrate wrong mode bits + +sched_nr_migrate has strange permission bits: + + $ ls -l /proc/sys/kernel/sched_nr_migrate + --w----r-T 1 root root 0 2008-03-17 23:31 /proc/sys/kernel/sched_nr_migrate + +The bug is an obvious decimal/octal confusion. + +Fixed (collaterally) in Linus's tree by Peter Zijlstra with commit fa85ae241 +"sched: rt time limit" (in 2.6.25-rc1). + +Signed-off-by: Michal Schmidt +Acked-by: Peter Zijlstra +Signed-off-by: Chris Wright +--- + kernel/sysctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/kernel/sysctl.c ++++ b/kernel/sysctl.c +@@ -306,7 +306,7 @@ static struct ctl_table kern_table[] = { + .procname = "sched_nr_migrate", + .data = &sysctl_sched_nr_migrate, + .maxlen = sizeof(unsigned int), +- .mode = 644, ++ .mode = 0644, + .proc_handler = &proc_dointvec, + }, + #endif diff --git a/queue-2.6.24/series b/queue-2.6.24/series index b2f143f47d3..79961cb0971 100644 --- a/queue-2.6.24/series +++ b/queue-2.6.24/series @@ -62,3 +62,4 @@ scsi-gdth-fix-to-internal-commands-execution.patch scsi-mpt-fusion-don-t-oops-if-numphys-0.patch sched-fix-race-in-schedule.patch nfsd-fix-oops-on-access-from-high-numbered-ports.patch +sched_nr_migrate-wrong-mode-bits.patch