Linux Kernel Mailing List | 1 Jan 2006 02:59

sysctl: make sure to terminate strings with a NUL

tree ef7805d1e03e8648fbaca3713d1a749c27770339
parent 35f349ee082de0be45eb23926d9fc7569f5011f0
author Linus Torvalds <torvalds <at> g5.osdl.org> Sun, 01 Jan 2006 09:00:29 -0800
committer Linus Torvalds <torvalds <at> g5.osdl.org> Sun, 01 Jan 2006 09:00:29 -0800

sysctl: make sure to terminate strings with a NUL

This is a slightly more complete fix for the previous minimal sysctl
string fix.  It always terminates the returned string with a NUL, even
if the full result wouldn't fit in the user-supplied buffer.

The returned length is the full untruncated length, so that you can
tell when truncation has occurred.

Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 kernel/sysctl.c |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index e5102ea..b53115b 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
 <at>  <at>  -2192,27 +2192,32  <at>  <at>  int sysctl_string(ctl_table *table, int 
 		  void __user *oldval, size_t __user *oldlenp,
 		  void __user *newval, size_t newlen, void **context)
 {
-	size_t l, len;
-	
 	if (!table->data || !table->maxlen) 
(Continue reading)

Linux Kernel Mailing List | 1 Jan 2006 03:59

[PATCH] x86: teach dump_task_regs() about the -8 offset.

tree f0056d09f2a2fc3bb2ea427aa189351b07400a52
parent de9e007d9105bf8fa613a89810feff32a43add03
author Stas Sergeev <stsp <at> aknet.ru> Sun, 01 Jan 2006 04:18:52 +0300
committer Linus Torvalds <torvalds <at> g5.osdl.org> Sun, 01 Jan 2006 10:01:57 -0800

[PATCH] x86: teach dump_task_regs() about the -8 offset.

This should fix multi-threaded core-files

Signed-off-by: stsp <at> aknet.ru
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 arch/i386/kernel/process.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/i386/kernel/process.c b/arch/i386/kernel/process.c
index df6c2bc..2333aea 100644
--- a/arch/i386/kernel/process.c
+++ b/arch/i386/kernel/process.c
 <at>  <at>  -554,7 +554,9  <at>  <at>  int dump_task_regs(struct task_struct *t
 	struct pt_regs ptregs;
 	
 	ptregs = *(struct pt_regs *)
-		((unsigned long)tsk->thread_info+THREAD_SIZE - sizeof(ptregs));
+		((unsigned long)tsk->thread_info +
+		/* see comments in copy_thread() about -8 */
+		THREAD_SIZE - sizeof(ptregs) - 8);
 	ptregs.xcs &= 0xffff;
 	ptregs.xds &= 0xffff;
 	ptregs.xes &= 0xffff;
(Continue reading)

Linux Kernel Mailing List | 2 Jan 2006 18:02

[PATCH] powerpc: more g5 overtemp problem fix

tree bd086b38c2a3d3de8d765f52d0bbaae7035bab08
parent 557962a926c62a9c4bd79d6b36df873d4f8c51ef
author Benjamin Herrenschmidt <benh <at> kernel.crashing.org> Mon, 02 Jan 2006 13:04:44 +1100
committer Linus Torvalds <torvalds <at> g5.osdl.org> Tue, 03 Jan 2006 00:38:37 -0800

[PATCH] powerpc: more g5 overtemp problem fix

Some G5s still occasionally experience shutdowns due to overtemp
conditions despite the recent fix. After analyzing logs from such
machines, it appears that the overtemp code is a bit too quick at
shutting the machine down when reaching the critical temperature (tmax +
8) and doesn't leave the fan enough time to actually cool it down. This
happens if the temperature of a CPU suddenly rises too high in a very
short period of time, or occasionally on boot (that is the CPUs are
already overtemp by the time the driver loads).

This patches makes the code a bit more relaxed, leaving a few seconds to
the fans to do their job before kicking the machine shutown.

Signed-off-by: Benjamin Herrenschmidt <benh <at> kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 drivers/macintosh/therm_pm72.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/macintosh/therm_pm72.c b/drivers/macintosh/therm_pm72.c
index 5bb3627..190878e 100644
--- a/drivers/macintosh/therm_pm72.c
+++ b/drivers/macintosh/therm_pm72.c
 <at>  <at>  -923,7 +923,7  <at>  <at>  static void do_monitor_cpu_combined(void
(Continue reading)

Linux Kernel Mailing List | 2 Jan 2006 18:02

[PATCH] Avoid namespace pollution in <asm/param.h>

tree f0d89e7d946a7ed9b57bb29e93bae4ce25d2cbc2
parent f12f4d90308a22396ac87f6c3a7b2620589614c3
author Dag-Erling Smørgrav <des <at> linpro.no> Mon, 02 Jan 2006 15:57:06 +0100
committer Linus Torvalds <torvalds <at> g5.osdl.org> Tue, 03 Jan 2006 00:38:38 -0800

[PATCH] Avoid namespace pollution in <asm/param.h>

In commit 3D59121003721a8fad11ee72e646fd9d3076b5679c, the x86 and x86-64
<asm/param.h> was changed to include <linux/config.h> for the
configurable timer frequency.

However, asm/param.h is sometimes used in userland (it is included
indirectly from <sys/param.h>), so your commit pollutes the userland
namespace with tons of CONFIG_FOO macros.  This greatly confuses
software packages (such as BusyBox) which use CONFIG_FOO macros
themselves to control the inclusion of optional features.

After a short exchange, Christoph approved this patch

Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 include/asm-i386/param.h   |    3 +--
 include/asm-x86_64/param.h |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/asm-i386/param.h b/include/asm-i386/param.h
index fa02e67..095580f 100644
--- a/include/asm-i386/param.h
+++ b/include/asm-i386/param.h
 <at>  <at>  -1,9 +1,8  <at>  <at> 
(Continue reading)

Linux Kernel Mailing List | 3 Jan 2006 04:59

Linux v2.6.15

tree 96a0b5842e24d6736c698cdbd820a3ad9d8d9f10
parent 8f493d797bc1fe470377adc9d8775845427e240e
author Linus Torvalds <torvalds <at> g5.osdl.org> Tue, 03 Jan 2006 11:21:10 -0800
committer Linus Torvalds <torvalds <at> g5.osdl.org> Tue, 03 Jan 2006 11:21:10 -0800

Linux v2.6.15

Hey, it's fifteen years today since I bought the machine that got Linux
started.  January 2nd is a good date.

 Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index f937f1f..497884d 100644
--- a/Makefile
+++ b/Makefile
 <at>  <at>  -1,7 +1,7  <at>  <at> 
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 15
-EXTRAVERSION =-rc7
+EXTRAVERSION =
 NAME=Sliding Snow Leopard

 # *DOCUMENTATION*
Linux Kernel Mailing List | 3 Jan 2006 04:59

[PATCH] Make sure interleave masks have at least one node set

tree 08f4555a0064185152a51ed707e9571dbeedddc7
parent abe842eb98c45e2b77c5868ef106616ca828a3e4
author Andi Kleen <ak <at> suse.de> Tue, 03 Jan 2006 00:07:28 +0100
committer Linus Torvalds <torvalds <at> g5.osdl.org> Tue, 03 Jan 2006 09:01:42 -0800

[PATCH] Make sure interleave masks have at least one node set

Otherwise a bad mem policy system call can confuse the interleaving
code into referencing undefined nodes.

Originally reported by Doug Chapman

I was told it's CVE-2005-3358
(one has to love these security people - they make everything sound important)

Signed-off-by: Andi Kleen <ak <at> suse.de>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 mm/mempolicy.c |    4 ++++
 1 files changed, 4 insertions(+)

diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index bec88c8..72f402c 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
 <at>  <at>  -161,6 +161,10  <at>  <at>  static struct mempolicy *mpol_new(int mo
 	switch (mode) {
 	case MPOL_INTERLEAVE:
 		policy->v.nodes = *nodes;
+		if (nodes_weight(*nodes) == 0) {
(Continue reading)

Linux Kernel Mailing List | 5 Jan 2006 03:21

[CPUFREQ] Improve Error reporting in powernow-k8

tree 3de7b27c168c1f34a7db3e394a590fa44a9656ca
parent db93a82fa9d8b4d6e31c227922eaae829253bb88
author Jacob Shin <jacob.shin <at> amd.com> Mon, 21 Nov 2005 23:23:08 -0800
committer Dave Jones <davej <at> redhat.com> Mon, 21 Nov 2005 23:23:08 -0800

[CPUFREQ] Improve Error reporting in powernow-k8

This patch cleans up some error messages in the
powernow-k8 driver and makes them more understandable.

Signed-off-by: Jacob Shin <jacob.shin <at> amd.com>
Signed-off-by: Mark Langsdorf <mark.langsdorf <at> amd.com>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 arch/i386/kernel/cpu/cpufreq/powernow-k8.c |   31 ++++++++++++++++++-----------
 1 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
index 68a1fc8..3497827 100644
--- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
+++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
 <at>  <at>  -45,7 +45,7  <at>  <at> 

 #define PFX "powernow-k8: "
 #define BFX PFX "BIOS error: "
-#define VERSION "version 1.50.4"
+#define VERSION "version 1.50.5"
 #include "powernow-k8.h"

 /* serialize freq changes  */
(Continue reading)

Linux Kernel Mailing List | 5 Jan 2006 03:21

[PATCH] cpufreq_conservative/ondemand: invert meaning of 'ignore nice'

tree 99e25fb9dc8f525a66c9e04d9109e008b3141200
parent 6df8900676c3f5c133328332fb8ad889fd0cc9e3
author Alexander Clouter <alex <at> digriz.org.uk> Thu, 01 Dec 2005 17:09:25 -0800
committer Dave Jones <davej <at> redhat.com> Thu, 01 Dec 2005 17:23:23 -0800

[PATCH] cpufreq_conservative/ondemand: invert meaning of 'ignore nice'

The use of the 'ignore_nice' sysfs file is confusing to anyone using it.
This removes the sysfs file 'ignore_nice' and in its place creates a
'ignore_nice_load' entry that defaults to '0'; meaning nice'd processes
_are_ counted towards the 'business' calculation.

WARNING: this obvious breaks any userland tools that expected ignore_nice'
to exist, to draw attention to this fact it was concluded on the mailing
list that the entry should be removed altogether so the userland app breaks
and so the author can build simple to detect workaround.  Having said that
it seems currently very few tools even make use of this functionality; all
I could find was a Gentoo Wiki entry.

Signed-off-by: Alexander Clouter <alex-kernel <at> digriz.org.uk>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 drivers/cpufreq/cpufreq_conservative.c |   10 +++++-----
 drivers/cpufreq/cpufreq_ondemand.c     |   10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c
index 2ed5c43..39543a2 100644
--- a/drivers/cpufreq/cpufreq_conservative.c
(Continue reading)

Linux Kernel Mailing List | 5 Jan 2006 03:21

[PATCH] cpufreq: documentation for 'ondemand' and 'conservative'

tree 109b9760f337e3c9fdf46166960292cccf370f5c
parent 001893cda2f280ab882164737a0b608208524809
author Alexander Clouter <alex-kernel <at> digriz.org.uk> Thu, 01 Dec 2005 17:09:23 -0800
committer Dave Jones <davej <at> redhat.com> Thu, 01 Dec 2005 17:23:23 -0800

[PATCH] cpufreq: documentation for 'ondemand' and 'conservative'

Added a more verbose entry for the 'ondemend' governor and an entry for the
'conservative' governor to the documentation.

Signed-off-by: Alexander Clouter <alex-kernel <at> digriz.org.uk>
Signed-off-by: Andrew Morton <akpm <at> osdl.org>
Signed-off-by: Dave Jones <davej <at> redhat.com>

 Documentation/cpu-freq/governors.txt |   60 +++++++++++++++++++++++++++++++++--
 1 files changed, 58 insertions(+), 2 deletions(-)

diff --git a/Documentation/cpu-freq/governors.txt b/Documentation/cpu-freq/governors.txt
index 933fae7..f4b8dc4 100644
--- a/Documentation/cpu-freq/governors.txt
+++ b/Documentation/cpu-freq/governors.txt
 <at>  <at>  -27,6 +27,7  <at>  <at>  Contents:
 2.2  Powersave
 2.3  Userspace
 2.4  Ondemand
+2.5  Conservative

 3.   The Governor Interface in the CPUfreq Core

 <at>  <at>  -110,9 +111,64  <at>  <at>  directory.
(Continue reading)

Linux Kernel Mailing List | 5 Jan 2006 03:21

Relax the rw_verify_area() error checking.

tree bea9af22a98ea2988a38f5e9fc2467ccbbf3ae70
parent a020ff412f0ecbb1e4aae1681b287e5785dd77b5
author Linus Torvalds <torvalds <at> g5.osdl.org> Thu, 05 Jan 2006 08:20:40 -0800
committer Linus Torvalds <torvalds <at> g5.osdl.org> Thu, 05 Jan 2006 08:20:40 -0800

Relax the rw_verify_area() error checking.

In particular, allow over-large read- or write-requests to be downgraded
to a more reasonable range, rather than considering them outright errors.

We want to protect lower layers from (the sadly all too common) overflow
conditions, but prefer to do so by chopping the requests up, rather than
just refusing them outright.

Cc: Peter Anvin <hpa <at> zytor.com>
Cc: Ulrich Drepper <drepper <at> redhat.com>
Cc: Andi Kleen <ak <at> suse.de>
Cc: Al Viro <viro <at> ftp.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds <at> osdl.org>

 arch/mips/kernel/linux32.c |    4 ++--
 fs/compat.c                |    2 +-
 fs/read_write.c            |   34 +++++++++++++++++++++++++---------
 3 files changed, 28 insertions(+), 12 deletions(-)

diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c
index 330cf84..60353f5 100644
--- a/arch/mips/kernel/linux32.c
+++ b/arch/mips/kernel/linux32.c
 <at>  <at>  -420,7 +420,7  <at>  <at>  asmlinkage ssize_t sys32_pread(unsigned 
(Continue reading)


Gmane