]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix mode bits for sched_nr_migrate
authorChris Wright <chrisw@sous-sol.org>
Mon, 17 Mar 2008 23:27:51 +0000 (16:27 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 17 Mar 2008 23:27:51 +0000 (16:27 -0700)
queue-2.6.24/sched_nr_migrate-wrong-mode-bits.patch [new file with mode: 0644]
queue-2.6.24/series

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 (file)
index 0000000..b598afb
--- /dev/null
@@ -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 <mschmidt@redhat.com>
+To: stable@kernel.org
+Message-ID: <20080318001316.25c6a440@hammerfall>
+Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
+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 <mschmidt@redhat.com>
+Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
+Signed-off-by: Chris Wright <chrisw@sous-sol.org>
+---
+ 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
index b2f143f47d346e2a0ef13346e35ac3fb29e8da6d..79961cb09715a40a191a97cb54ce0b15ef3840da 100644 (file)
@@ -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