Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-25 Thread James Pearson
James Pearson wrote: > Arvin Moezzi wrote: > >> I think that's not true. 'count' is changing through the iteration. >> The difference in the mem_read(): >> >> * while (count > 0) { >> * int this_len, retval; >> * >> * this_len = (count

Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-25 Thread James Pearson
James Pearson wrote: Arvin Moezzi wrote: I think that's not true. 'count' is changing through the iteration. The difference in the mem_read(): * while (count 0) { * int this_len, retval; * * this_len = (count PAGE_SIZE) ? PAGE_SIZE : count; * retval = access_process_vm

Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-21 Thread James Pearson
fix through your iteration but 'count' is changing. Or am i missing something? Yes, you are correct ... Thanks James Pearson - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vge

Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-21 Thread James Pearson
Arvin Moezzi wrote: 2007/9/19, James Pearson <[EMAIL PROTECTED]>: + while (count > 0) { + int this_len, retval; + + this_len = mm->env_end - (mm->env_start + src); + + if (this_len <= 0) +

Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-21 Thread James Pearson
Andrew Morton wrote: On Wed, 19 Sep 2007 14:35:29 +0100 "James Pearson" <[EMAIL PROTECTED]> wrote: From: James Pearson <[EMAIL PROTECTED]> /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. patch needs to be c

Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-21 Thread James Pearson
Arvin Moezzi wrote: 2007/9/19, James Pearson [EMAIL PROTECTED]: + while (count 0) { + int this_len, retval; + + this_len = mm-env_end - (mm-env_start + src); + + if (this_len = 0) + break; + + if (this_len

Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-21 Thread James Pearson
Andrew Morton wrote: On Wed, 19 Sep 2007 14:35:29 +0100 James Pearson [EMAIL PROTECTED] wrote: From: James Pearson [EMAIL PROTECTED] /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. patch needs to be carefully reviewed from the security POV

Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-21 Thread James Pearson
iteration but 'count' is changing. Or am i missing something? Yes, you are correct ... Thanks James Pearson - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-19 Thread James Pearson
From: James Pearson <[EMAIL PROTECTED]> /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Signed-off-by: James Pearson <[EMAIL PROTECTED]> --- Patch against 2.6.23-rc6-mm1 --- ./fs/proc/base.c.dist 2007-09-19 12:29:46.244

[PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

2007-09-19 Thread James Pearson
From: James Pearson [EMAIL PROTECTED] /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Signed-off-by: James Pearson [EMAIL PROTECTED] --- Patch against 2.6.23-rc6-mm1 --- ./fs/proc/base.c.dist 2007-09-19 12:29:46.244929651 +0100 +++ ./fs

Re: 4096 byte limit to /proc/PID/environ ?

2007-09-06 Thread James Pearson
H. Peter Anvin wrote: > > Right, also please use use checkpatch.pl. > OK - how about: /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Patch against 2.6.23-rc5 Signed-off-by: James Pearson <[EMAIL PROTECTED]> --- ./fs/p

Re: 4096 byte limit to /proc/PID/environ ?

2007-09-06 Thread James Pearson
Alexey Dobriyan wrote: On Wed, Sep 05, 2007 at 06:00:57PM +0100, James Pearson wrote: H. Peter Anvin wrote: Anton Arapov wrote: Hey guys, the future of this patch is important for me. What do you think, has this patch any chances to be committed to upstream? James Pearson <[EM

Re: 4096 byte limit to /proc/PID/environ ?

2007-09-06 Thread James Pearson
to my mail app mangled the patch - I'll re-submit it 'cleanly' ... Thanks James Pearson - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: 4096 byte limit to /proc/PID/environ ?

2007-09-06 Thread James Pearson
H. Peter Anvin wrote: Right, also please use use checkpatch.pl. OK - how about: /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Patch against 2.6.23-rc5 Signed-off-by: James Pearson [EMAIL PROTECTED] --- ./fs/proc/base.c.dist 2007

Re: 4096 byte limit to /proc/PID/environ ?

2007-09-05 Thread James Pearson
H. Peter Anvin wrote: Anton Arapov wrote: Hey guys, the future of this patch is important for me. What do you think, has this patch any chances to be committed to upstream? James Pearson <[EMAIL PROTECTED]> writes: H. Peter Anvin wrote: There isn't that much that is dupl

Re: 4096 byte limit to /proc/PID/environ ?

2007-09-05 Thread James Pearson
H. Peter Anvin wrote: Anton Arapov wrote: Hey guys, the future of this patch is important for me. What do you think, has this patch any chances to be committed to upstream? James Pearson [EMAIL PROTECTED] writes: H. Peter Anvin wrote: There isn't that much that is duplicated

Re: 4096 byte limit to /proc/PID/environ ?

2007-08-30 Thread James Pearson
H. Peter Anvin wrote: Guy Streeter wrote: On 6/1/06, James Pearson <[EMAIL PROTECTED]> wrote: H. Peter Anvin wrote: I think this is the wrong approach. Many of these should probably be converted to seq_file, but in the particular case of environ, the right approach is to observe th

Re: 4096 byte limit to /proc/PID/environ ?

2007-08-30 Thread James Pearson
H. Peter Anvin wrote: Guy Streeter wrote: On 6/1/06, James Pearson [EMAIL PROTECTED] wrote: H. Peter Anvin wrote: I think this is the wrong approach. Many of these should probably be converted to seq_file, but in the particular case of environ, the right approach is to observe the fact

Re: [PATCH] Don't truncate /proc/PID/environ at 4096 characters

2007-05-08 Thread James Pearson
Eric Dumazet wrote: On Fri, 04 May 2007 15:30:57 +0100 James Pearson <[EMAIL PROTECTED]> wrote: /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Signed-off-by: James Pearson <[EMAIL PROTECTED]> What about latency when read

Re: [PATCH] Don't truncate /proc/PID/environ at 4096 characters

2007-05-08 Thread James Pearson
Eric Dumazet wrote: On Fri, 04 May 2007 15:30:57 +0100 James Pearson [EMAIL PROTECTED] wrote: /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Signed-off-by: James Pearson [EMAIL PROTECTED] What about latency when reading one *big* environ

[PATCH] Don't truncate /proc/PID/environ at 4096 characters

2007-05-04 Thread James Pearson
/proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Signed-off-by: James Pearson <[EMAIL PROTECTED]> --- ./fs/proc/base.c.dist 2007-04-26 04:08:32.0 +0100 +++ ./fs/proc/base.c2007-04-27 16:32:44.277664457 +0100 @@ -196,22

[PATCH] Don't truncate /proc/PID/environ at 4096 characters

2007-05-04 Thread James Pearson
/proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Signed-off-by: James Pearson [EMAIL PROTECTED] --- ./fs/proc/base.c.dist 2007-04-26 04:08:32.0 +0100 +++ ./fs/proc/base.c2007-04-27 16:32:44.277664457 +0100 @@ -196,22 +196,6

Re: X display shift with disabled console blanking

2007-05-01 Thread James Pearson
Antonino A. Daplas wrote: On Tue, 2007-05-01 at 13:17 +0100, James Pearson wrote: Antonino A. Daplas wrote: On Mon, 2007-04-30 at 13:58 +0100, James Pearson wrote: Antonino A. Daplas wrote: On Fri, 2007-04-27 at 18:08 +0100, James Pearson wrote: It does indeed seem

Re: X display shift with disabled console blanking

2007-05-01 Thread James Pearson
Antonino A. Daplas wrote: On Mon, 2007-04-30 at 13:58 +0100, James Pearson wrote: Antonino A. Daplas wrote: On Fri, 2007-04-27 at 18:08 +0100, James Pearson wrote: I have a problem whereby the X display 'shifts' to left when anything writes to /dev/console - where console screen blanking

Re: X display shift with disabled console blanking

2007-05-01 Thread James Pearson
Antonino A. Daplas wrote: On Mon, 2007-04-30 at 13:58 +0100, James Pearson wrote: Antonino A. Daplas wrote: On Fri, 2007-04-27 at 18:08 +0100, James Pearson wrote: I have a problem whereby the X display 'shifts' to left when anything writes to /dev/console - where console screen blanking

Re: X display shift with disabled console blanking

2007-05-01 Thread James Pearson
Antonino A. Daplas wrote: On Tue, 2007-05-01 at 13:17 +0100, James Pearson wrote: Antonino A. Daplas wrote: On Mon, 2007-04-30 at 13:58 +0100, James Pearson wrote: Antonino A. Daplas wrote: On Fri, 2007-04-27 at 18:08 +0100, James Pearson wrote: It does indeed seem

Re: X display shift with disabled console blanking

2007-04-30 Thread James Pearson
Antonino A. Daplas wrote: On Fri, 2007-04-27 at 18:08 +0100, James Pearson wrote: I have a problem whereby the X display 'shifts' to left when anything writes to /dev/console - where console screen blanking has been disabled i.e. doing something like: boot to run level 3 If not root

Re: X display shift with disabled console blanking

2007-04-30 Thread James Pearson
Antonino A. Daplas wrote: On Fri, 2007-04-27 at 18:08 +0100, James Pearson wrote: I have a problem whereby the X display 'shifts' to left when anything writes to /dev/console - where console screen blanking has been disabled i.e. doing something like: boot to run level 3 If not root

X display shift with disabled console blanking

2007-04-27 Thread James Pearson
and running X, but something isn't right somewhere ... Any ideas? Thanks James Pearson - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Pleas

X display shift with disabled console blanking

2007-04-27 Thread James Pearson
, but something isn't right somewhere ... Any ideas? Thanks James Pearson - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org

Understanding cpufreq?

2007-01-09 Thread James Pearson
something/some setting(s) that can do this in a multi-CPU machine? Thanks James Pearson - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please r

Understanding cpufreq?

2007-01-09 Thread James Pearson
setting(s) that can do this in a multi-CPU machine? Thanks James Pearson - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: Kernel BUG in khubd with 2.4.30 x86_64

2005-04-19 Thread James Pearson
I've worked out what the problem is - this machine has more than 4GB memory and I didn't have IOMMU compiled in - rebuilding the kernel with this set and the problem goes away. James Pearson James Pearson wrote: I'm using a Dell PowerEdge 2850 with dual 3.6Ghz Xeon EM64T CPUs. Using a vanilla

Re: Kernel BUG in khubd with 2.4.30 x86_64

2005-04-19 Thread James Pearson
I've worked out what the problem is - this machine has more than 4GB memory and I didn't have IOMMU compiled in - rebuilding the kernel with this set and the problem goes away. James Pearson James Pearson wrote: I'm using a Dell PowerEdge 2850 with dual 3.6Ghz Xeon EM64T CPUs. Using a vanilla

Kernel BUG in khubd with 2.4.30 x86_64

2005-04-18 Thread James Pearson
I'm using a Dell PowerEdge 2850 with dual 3.6Ghz Xeon EM64T CPUs. Using a vanilla 2.4.30 SMP x86_64 kernel, when I try to modprobe usb-uhci I get: kernel BUG in header file at line 160 Kernel BUG at panic:149 invalid operand: dmesg and ksymoops output below. Thanks James Pearson dmesg

Kernel BUG in khubd with 2.4.30 x86_64

2005-04-18 Thread James Pearson
I'm using a Dell PowerEdge 2850 with dual 3.6Ghz Xeon EM64T CPUs. Using a vanilla 2.4.30 SMP x86_64 kernel, when I try to modprobe usb-uhci I get: kernel BUG in header file at line 160 Kernel BUG at panic:149 invalid operand: dmesg and ksymoops output below. Thanks James Pearson dmesg