Re: [PATCH] x86: optionally show last exception from/to register contents

2007-08-13 Thread Keith Owens
Andi Kleen (on Mon, 13 Aug 2007 15:08:45 +0200) wrote: >On Mon, Aug 13, 2007 at 12:33:05PM +0100, Jan Beulich wrote: > > >> >> if (cpu_has_ds) { >> unsigned int l1; >> --- linux-2.6.23-rc3/arch/i386/kernel/traps.c2007-08-13 >> 08:59:45.0 +0200 >> +++

Unbalanced stack usage in arch/i386/math-emu/wm_sqrt.S

2007-08-13 Thread Keith Owens
Originally sent to the maintainer of the i386 math-emu code ([EMAIL PROTECTED]) but that mail was bounced[1]. Is anybody maintaining the math-emu code and do we even care about it anymore? I am doing static code analysis on the kernel and have found a stack imbalance in

Unbalanced stack usage in arch/i386/math-emu/wm_sqrt.S

2007-08-13 Thread Keith Owens
Originally sent to the maintainer of the i386 math-emu code ([EMAIL PROTECTED]) but that mail was bounced[1]. Is anybody maintaining the math-emu code and do we even care about it anymore? I am doing static code analysis on the kernel and have found a stack imbalance in

Re: [PATCH] x86: optionally show last exception from/to register contents

2007-08-13 Thread Keith Owens
Andi Kleen (on Mon, 13 Aug 2007 15:08:45 +0200) wrote: On Mon, Aug 13, 2007 at 12:33:05PM +0100, Jan Beulich wrote: if (cpu_has_ds) { unsigned int l1; --- linux-2.6.23-rc3/arch/i386/kernel/traps.c2007-08-13 08:59:45.0 +0200 +++

Re: [patch 09/23] Add cmpxchg_local, cmpxchg64 and cmpxchg64_local to ia64

2007-08-12 Thread Keith Owens
Mathieu Desnoyers (on Sun, 12 Aug 2007 10:54:43 -0400) wrote: >Add the primitives cmpxchg_local, cmpxchg64 and cmpxchg64_local to ia64. They >use cmpxchg_acq as underlying macro, just like the already existing ia64 >cmpxchg(). > >Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> >CC: [EMAIL

Re: [patch 09/23] Add cmpxchg_local, cmpxchg64 and cmpxchg64_local to ia64

2007-08-12 Thread Keith Owens
Mathieu Desnoyers (on Sun, 12 Aug 2007 10:54:43 -0400) wrote: Add the primitives cmpxchg_local, cmpxchg64 and cmpxchg64_local to ia64. They use cmpxchg_acq as underlying macro, just like the already existing ia64 cmpxchg(). Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] CC: [EMAIL PROTECTED]

Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel

2007-08-11 Thread Keith Owens
Casey Schaufler (on Sat, 11 Aug 2007 10:57:31 -0700) wrote: >Smack is the Simplified Mandatory Access Control Kernel. > > [snip] > >Smack defines and uses these labels: > >"*" - pronounced "star" >"_" - pronounced "floor" >"^" - pronounced "hat" >"?" - pronounced "huh" > >The

Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel

2007-08-11 Thread Keith Owens
Casey Schaufler (on Sat, 11 Aug 2007 12:56:42 -0700 (PDT)) wrote: > >--- Arjan van de Ven <[EMAIL PROTECTED]> wrote: >> > +#include >> > +#include >> > +#include >> > +#include >> > +#include >> > +#include "../../net/netlabel/netlabel_domainhash.h" >> >> can't you move this header to

Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel

2007-08-11 Thread Keith Owens
Casey Schaufler (on Sat, 11 Aug 2007 12:56:42 -0700 (PDT)) wrote: --- Arjan van de Ven [EMAIL PROTECTED] wrote: +#include linux/kernel.h +#include linux/vmalloc.h +#include linux/security.h +#include linux/mutex.h +#include net/netlabel.h +#include

Re: [PATCH] Smack: Simplified Mandatory Access Control Kernel

2007-08-11 Thread Keith Owens
Casey Schaufler (on Sat, 11 Aug 2007 10:57:31 -0700) wrote: Smack is the Simplified Mandatory Access Control Kernel. [snip] Smack defines and uses these labels: * - pronounced star _ - pronounced floor ^ - pronounced hat ? - pronounced huh The access rules enforced by Smack

Re: [RFC] Handling kernel stack overflows

2007-08-04 Thread Keith Owens
Eric W. Biederman (on Fri, 03 Aug 2007 06:36:23 -0600) wrote: > >Well we currently keep a struct thread_info on the stack >which while not as bad as task_struct has it's own uses >and implications which may limit what you are trying >to do. Not an issue. We already copy struct thread_info when

Re: [RFC] Handling kernel stack overflows

2007-08-04 Thread Keith Owens
Eric W. Biederman (on Fri, 03 Aug 2007 06:36:23 -0600) wrote: Well we currently keep a struct thread_info on the stack which while not as bad as task_struct has it's own uses and implications which may limit what you are trying to do. Not an issue. We already copy struct thread_info when

Re: [patch] add kdump_after_notifier

2007-08-03 Thread Keith Owens
Andrew Morton (on Thu, 2 Aug 2007 23:25:02 -0700) wrote: >On Fri, 03 Aug 2007 14:05:47 +1000 Keith Owens <[EMAIL PROTECTED]> wrote: Switching to [EMAIL PROTECTED], I just resigned from SGI. >> I have pretty well given up on RAS code in the Linux kernel. Everybody >>

Re: [patch] add kdump_after_notifier

2007-08-03 Thread Keith Owens
Andrew Morton (on Thu, 2 Aug 2007 23:25:02 -0700) wrote: On Fri, 03 Aug 2007 14:05:47 +1000 Keith Owens [EMAIL PROTECTED] wrote: Switching to [EMAIL PROTECTED], I just resigned from SGI. I have pretty well given up on RAS code in the Linux kernel. Everybody has different ideas

[RFC] Handling kernel stack overflows

2007-08-02 Thread Keith Owens
First a bit of background for people who are not familiar with kernel stack constructs. * Every process has a dedicated kernel stack. In this context, 'process' includes user space processes and threads, plus those processes that only exist inside the kernel (e.g. kswapd, xfslogd). * When a

Re: [patch] add kdump_after_notifier

2007-08-02 Thread Keith Owens
;> Possibly. >> >> > BTW, I use kdb and lkcd now, but I want to use kdb and kdump. I sent a >> > patch to >> > kdb community but it was rejected. kdb maintainer Keith Owens said, >> >> >> Both KDB and crash_kexec should be using the panic_notifier_chain, with

Re: [patch] add kdump_after_notifier

2007-08-02 Thread Keith Owens
or they don't notice this problem yet. I think they will be in trouble if all distributions choose only kdump. Possibly. BTW, I use kdb and lkcd now, but I want to use kdb and kdump. I sent a patch to kdb community but it was rejected. kdb maintainer Keith Owens said, Both KDB

[RFC] Handling kernel stack overflows

2007-08-02 Thread Keith Owens
First a bit of background for people who are not familiar with kernel stack constructs. * Every process has a dedicated kernel stack. In this context, 'process' includes user space processes and threads, plus those processes that only exist inside the kernel (e.g. kswapd, xfslogd). * When a

Re: [PATCH][RFC] getting rid of stupid loop in BUG()

2007-07-24 Thread Keith Owens
Trent Piepho (on Tue, 24 Jul 2007 19:31:36 -0700 (PDT)) wrote: >Adding __builtin_trap after the >asm might be an ok fix. It will emit a spurious int 6, but that won't even be >reached since the asm doesn't return, and it probably be less extra code than >the loop. int 6 is a two byte

Re: [PATCH][RFC] getting rid of stupid loop in BUG()

2007-07-24 Thread Keith Owens
Trent Piepho (on Tue, 24 Jul 2007 19:31:36 -0700 (PDT)) wrote: Adding __builtin_trap after the asm might be an ok fix. It will emit a spurious int 6, but that won't even be reached since the asm doesn't return, and it probably be less extra code than the loop. int 6 is a two byte instruction,

Re: kdb: add rdmsr and wrmsr commands for i386

2007-05-17 Thread Keith Owens
Bernardo Innocenti (on Thu, 17 May 2007 02:36:21 -0400) wrote: >Keith Owens wrote: > >> Before using MSR, you must first check that the cpu supports the >> instruction, rd/wrmsr cause an oops on 486 or earlier. Also using an >> invalid msr number causes an oops, so u

Re: kdb: add rdmsr and wrmsr commands for i386

2007-05-17 Thread Keith Owens
/modules/kdbm_x86.c| 59 ++ 7 files changed, 85 insertions(+), 10 deletions(-) diff -u linux/arch/i386/kdb/ChangeLog linux/arch/i386/kdb/ChangeLog --- linux/arch/i386/kdb/ChangeLog +++ linux/arch/i386/kdb/ChangeLog @@ -1,3 +1,9 @@ +2007-05-17 Kei

Re: kdb: add rdmsr and wrmsr commands for i386

2007-05-17 Thread Keith Owens
/kdb/ChangeLog linux/arch/i386/kdb/ChangeLog --- linux/arch/i386/kdb/ChangeLog +++ linux/arch/i386/kdb/ChangeLog @@ -1,3 +1,9 @@ +2007-05-17 Keith Owens [EMAIL PROTECTED] + + * Update dumpregs comments for rdmsr and wrmsr commands. + Bernardo Innocenti. + * kdb v4.4-2.6.21-i386-3

Re: kdb: add rdmsr and wrmsr commands for i386

2007-05-17 Thread Keith Owens
Bernardo Innocenti (on Thu, 17 May 2007 02:36:21 -0400) wrote: Keith Owens wrote: Before using MSR, you must first check that the cpu supports the instruction, rd/wrmsr cause an oops on 486 or earlier. Also using an invalid msr number causes an oops, so use rd/wrmsr_safe(). I didn't bother

Re: [PATCH 1/10] safe_apic_wait_icr_idle - i386

2007-04-25 Thread Keith Owens
Fernando Luis =?ISO-8859-1?Q?V=E1zquez?= Cao (on Wed, 25 Apr 2007 20:13:28 +0900) wrote: >+static __inline__ unsigned long safe_apic_wait_icr_idle(void) >+{ >+ unsigned long send_status; >+ int timeout; >+ >+ timeout = 0; >+ do { >+ udelay(100); >+

Re: [PATCH 1/10] safe_apic_wait_icr_idle - i386

2007-04-25 Thread Keith Owens
Fernando Luis =?ISO-8859-1?Q?V=E1zquez?= Cao (on Wed, 25 Apr 2007 20:13:28 +0900) wrote: +static __inline__ unsigned long safe_apic_wait_icr_idle(void) +{ + unsigned long send_status; + int timeout; + + timeout = 0; + do { + udelay(100); + send_status

Re: $CHECK can't be overridden

2007-03-21 Thread Keith Owens
Dave Jones (on Thu, 22 Mar 2007 01:37:14 -0400) wrote: >On Thu, Mar 22, 2007 at 04:26:39PM +1100, Keith Owens wrote: > > Dave Jones (on Thu, 22 Mar 2007 01:15:25 -0400) wrote: > > >make help implies that supplying $CHECK on the command line > > >should override spar

Re: $CHECK can't be overridden

2007-03-21 Thread Keith Owens
Dave Jones (on Thu, 22 Mar 2007 01:15:25 -0400) wrote: >make help implies that supplying $CHECK on the command line >should override sparse as the checker used when building with C=1 >Yet, this doesn't seem to be the case. > >This would be useful for cases where for eg, sparse isn't in >the $PATH,

Re: PNPACPI probes serial twice, messes up serial console

2007-03-21 Thread Keith Owens
Bjorn Helgaas (on Wed, 21 Mar 2007 10:35:38 -0600) wrote: >On Tuesday 20 March 2007 08:32, Bjorn Helgaas wrote: >> On Tuesday 20 March 2007 00:46, Keith Owens wrote: >> > Booting with 'console=tty console=ttyS0,9600'. The serial console on >> > ttyS0 (0x3f8, irq 4)

Re: [PATCH] Use X86_EFLAGS_IF in irqflags.h, lguest.

2007-03-21 Thread Keith Owens
Rusty Russell (on Thu, 22 Mar 2007 14:52:29 +1100) wrote: >On Thu, 2007-03-22 at 14:24 +1100, Rusty Russell wrote: >> Belay this: there's a X86_EFLAGS_IF in asm/processor.h which we should >> use. Will send patch. > >How's this. There may be other users, but they're not easy to grep for. One

Re: PNPACPI probes serial twice, messes up serial console

2007-03-21 Thread Keith Owens
Bjorn Helgaas (on Wed, 21 Mar 2007 10:35:38 -0600) wrote: On Tuesday 20 March 2007 08:32, Bjorn Helgaas wrote: On Tuesday 20 March 2007 00:46, Keith Owens wrote: Booting with 'console=tty console=ttyS0,9600'. The serial console on ttyS0 (0x3f8, irq 4) is probed twice, once from

Re: $CHECK can't be overridden

2007-03-21 Thread Keith Owens
Dave Jones (on Thu, 22 Mar 2007 01:15:25 -0400) wrote: make help implies that supplying $CHECK on the command line should override sparse as the checker used when building with C=1 Yet, this doesn't seem to be the case. This would be useful for cases where for eg, sparse isn't in the $PATH,

Re: $CHECK can't be overridden

2007-03-21 Thread Keith Owens
Dave Jones (on Thu, 22 Mar 2007 01:37:14 -0400) wrote: On Thu, Mar 22, 2007 at 04:26:39PM +1100, Keith Owens wrote: Dave Jones (on Thu, 22 Mar 2007 01:15:25 -0400) wrote: make help implies that supplying $CHECK on the command line should override sparse as the checker used when building

Re: [PATCH] Use X86_EFLAGS_IF in irqflags.h, lguest.

2007-03-21 Thread Keith Owens
Rusty Russell (on Thu, 22 Mar 2007 14:52:29 +1100) wrote: On Thu, 2007-03-22 at 14:24 +1100, Rusty Russell wrote: Belay this: there's a X86_EFLAGS_IF in asm/processor.h which we should use. Will send patch. How's this. There may be other users, but they're not easy to grep for. One less set

PNPACPI probes serial twice, messes up serial console

2007-03-19 Thread Keith Owens
Dell SC1425 x86_64 running in i386 mode (the problem also occurs in x86_64 mode). Kernel 2.6.21-rc4, gcc 4.1.0. Config extract at end. Booting with 'console=tty console=ttyS0,9600'. The serial console on ttyS0 (0x3f8, irq 4) is probed twice, once from serial8250_init() and again from

PNPACPI probes serial twice, messes up serial console

2007-03-19 Thread Keith Owens
Dell SC1425 x86_64 running in i386 mode (the problem also occurs in x86_64 mode). Kernel 2.6.21-rc4, gcc 4.1.0. Config extract at end. Booting with 'console=tty console=ttyS0,9600'. The serial console on ttyS0 (0x3f8, irq 4) is probed twice, once from serial8250_init() and again from

Re: [patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-30 Thread Keith Owens
Willy Tarreau (on Fri, 1 Dec 2006 06:26:53 +0100) wrote: >On Fri, Dec 01, 2006 at 04:14:04PM +1100, Keith Owens wrote: >> SuSE's SLES10 ships with gcc 4.1.0. There is nothing to stop a >> distributor from backporting the bug fix from gcc 4.1.1 to 4.1.0, but >> this patch woul

Re: [patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-30 Thread Keith Owens
Andrew Morton (on Thu, 30 Nov 2006 21:05:51 -0800) wrote: >On Wed, 29 Nov 2006 21:14:10 +0100 >Willy Tarreau <[EMAIL PROTECTED]> wrote: > >> Then why not simply check for gcc 4.1.0 in compiler.h and refuse to build >> with 4.1.0 if it's known to produce bad code ? > >Think so. I'll queue this and

Re: [patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-30 Thread Keith Owens
Andrew Morton (on Thu, 30 Nov 2006 21:05:51 -0800) wrote: On Wed, 29 Nov 2006 21:14:10 +0100 Willy Tarreau [EMAIL PROTECTED] wrote: Then why not simply check for gcc 4.1.0 in compiler.h and refuse to build with 4.1.0 if it's known to produce bad code ? Think so. I'll queue this and see how

Re: [patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-30 Thread Keith Owens
Willy Tarreau (on Fri, 1 Dec 2006 06:26:53 +0100) wrote: On Fri, Dec 01, 2006 at 04:14:04PM +1100, Keith Owens wrote: SuSE's SLES10 ships with gcc 4.1.0. There is nothing to stop a distributor from backporting the bug fix from gcc 4.1.1 to 4.1.0, but this patch would not allow the fixed

Re: [patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-28 Thread Keith Owens
David Miller (on Tue, 28 Nov 2006 20:04:53 -0800 (PST)) wrote: >From: Keith Owens >Date: Wed, 29 Nov 2006 14:56:20 +1100 > >> Secondly, I believe that this is a separate problem from bug 22278. >> hpet_readl() is correctly using volatile internally, but its result is >&g

Re: [patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-28 Thread Keith Owens
Nicholas Miell (on Tue, 28 Nov 2006 19:08:25 -0800) wrote: >On Wed, 2006-11-29 at 13:22 +1100, Keith Owens wrote: >> Compiling 2.6.19-rc6 with gcc version 4.1.0 (SUSE Linux), >> wait_hpet_tick is optimized away to a never ending loop and the kernel >> hangs on boot in timer s

[patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-28 Thread Keith Owens
jmp1d This is not a problem with gcc 3.3.5. Adding barrier() calls to wait_hpet_tick does not help, making the variables volatile does. Signed-off-by: Keith Owens --- arch/i386/kernel/time_hpet.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/arch/i386/kernel

[patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-28 Thread Keith Owens
jmp1d wait_hpet_tick+0x3 This is not a problem with gcc 3.3.5. Adding barrier() calls to wait_hpet_tick does not help, making the variables volatile does. Signed-off-by: Keith Owens kaos@ocs.com.au --- arch/i386/kernel/time_hpet.c |2 +- 1 file changed, 1 insertion(+), 1

Re: [patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-28 Thread Keith Owens
Nicholas Miell (on Tue, 28 Nov 2006 19:08:25 -0800) wrote: On Wed, 2006-11-29 at 13:22 +1100, Keith Owens wrote: Compiling 2.6.19-rc6 with gcc version 4.1.0 (SUSE Linux), wait_hpet_tick is optimized away to a never ending loop and the kernel hangs on boot in timer setup. 001a

Re: [patch 2.6.19-rc6] Stop gcc 4.1.0 optimizing wait_hpet_tick away

2006-11-28 Thread Keith Owens
David Miller (on Tue, 28 Nov 2006 20:04:53 -0800 (PST)) wrote: From: Keith Owens kaos@ocs.com.au Date: Wed, 29 Nov 2006 14:56:20 +1100 Secondly, I believe that this is a separate problem from bug 22278. hpet_readl() is correctly using volatile internally, but its result is being assigned

[RFC] Scheduler hooks to support separate ia64 MCA/INIT stacks

2005-09-08 Thread Keith Owens
The new ia64 MCA/INIT handlers[1] (think of them as super NMI) run on separate stacks. 99% of the changes for these new handlers is ia64 only code, however they need a couple of scheduler hooks to support these extra stacks. The complete patch set will be coming through the ia64 tree, this RFC

[RFC] Scheduler hooks to support separate ia64 MCA/INIT stacks

2005-09-08 Thread Keith Owens
The new ia64 MCA/INIT handlers[1] (think of them as super NMI) run on separate stacks. 99% of the changes for these new handlers is ia64 only code, however they need a couple of scheduler hooks to support these extra stacks. The complete patch set will be coming through the ia64 tree, this RFC

Re: [patch 16/16] Add hardware breakpoint support for i386

2005-08-29 Thread Keith Owens
On Mon, 29 Aug 2005 09:12:08 -0700, Tom Rini <[EMAIL PROTECTED]> wrote: > >This adds hardware breakpoint support for i386. This is not as well tested as >software breakpoints, but in some minimal testing appears to be functional. Hardware breakpoints must be per cpu, not global. Also you will

Re: [patch 16/16] Add hardware breakpoint support for i386

2005-08-29 Thread Keith Owens
On Mon, 29 Aug 2005 09:12:08 -0700, Tom Rini [EMAIL PROTECTED] wrote: This adds hardware breakpoint support for i386. This is not as well tested as software breakpoints, but in some minimal testing appears to be functional. Hardware breakpoints must be per cpu, not global. Also you will fall

Announce: kdb v4.4 is available for kernel 2.6.13

2005-08-28 Thread Keith Owens
-v4.4-2.6.12-common-1. 2005-08-29 Keith Owens <[EMAIL PROTECTED]> * kdb v4.4-2.6.13-common-1. 2005-08-24 Keith Owens <[EMAIL PROTECTED]> * kdb v4.4-2.6.13-rc7-common-1. 2005-08-08 Keith Owens <[EMAIL PROTECTED]> * kdb v4.4-2.6.13-rc6-common-1. 2005

Announce: kdb v4.4 is available for kernel 2.6.13

2005-08-28 Thread Keith Owens
-v4.4-2.6.12-common-1. 2005-08-29 Keith Owens [EMAIL PROTECTED] * kdb v4.4-2.6.13-common-1. 2005-08-24 Keith Owens [EMAIL PROTECTED] * kdb v4.4-2.6.13-rc7-common-1. 2005-08-08 Keith Owens [EMAIL PROTECTED] * kdb v4.4-2.6.13-rc6-common-1. 2005-08-02 Keith Owens [EMAIL

Re: 2.6.13-rc7 qla2xxx unaligned accesses

2005-08-24 Thread Keith Owens
On Wed, 24 Aug 2005 11:22:52 -0700, Andrew Vasquez <[EMAIL PROTECTED]> wrote: >On Wed, 24 Aug 2005, Keith Owens wrote: > >> 2.6.13-rc7 + kdb on ia64. The qla2xxx drivers are getting unaligned >> accesses at startup. >> >> qla2300 :01:02.0: Found an ISP231

2.6.13-rc7 qla2xxx unaligned accesses

2005-08-24 Thread Keith Owens
2.6.13-rc7 + kdb on ia64. The qla2xxx drivers are getting unaligned accesses at startup. qla2300 :01:02.0: Found an ISP2312, irq 66, iobase 0xc0080f30 qla2300 :01:02.0: Configuring PCI space... PCI: slot :01:02.0 has incorrect PCI cache line size of 0 bytes, correcting to

[patch 2.6.13-rc7] Export pcibios_bus_to_resource

2005-08-24 Thread Keith Owens
pcibios_bus_to_resource is exported on all architectures except ia64 and sparc. Add exports for the two missing architectures. Needed when Yenta socket support is compiled as a module. Signed-off-by: Keith Owens <[EMAIL PROTECTED]> Index: linux/arch/ia64/pci

Re: 2.6.13-rc7 qla2xxx unaligned accesses

2005-08-24 Thread Keith Owens
On Wed, 24 Aug 2005 11:22:52 -0700, Andrew Vasquez [EMAIL PROTECTED] wrote: On Wed, 24 Aug 2005, Keith Owens wrote: 2.6.13-rc7 + kdb on ia64. The qla2xxx drivers are getting unaligned accesses at startup. qla2300 :01:02.0: Found an ISP2312, irq 66, iobase 0xc0080f30 qla2300

[patch 2.6.13-rc7] Export pcibios_bus_to_resource

2005-08-24 Thread Keith Owens
pcibios_bus_to_resource is exported on all architectures except ia64 and sparc. Add exports for the two missing architectures. Needed when Yenta socket support is compiled as a module. Signed-off-by: Keith Owens [EMAIL PROTECTED] Index: linux/arch/ia64/pci/pci.c

2.6.13-rc7 qla2xxx unaligned accesses

2005-08-24 Thread Keith Owens
2.6.13-rc7 + kdb on ia64. The qla2xxx drivers are getting unaligned accesses at startup. qla2300 :01:02.0: Found an ISP2312, irq 66, iobase 0xc0080f30 qla2300 :01:02.0: Configuring PCI space... PCI: slot :01:02.0 has incorrect PCI cache line size of 0 bytes, correcting to

[patch 2.6.13-rc6] Export pcibios_bus_to_resource on ia64 and sparc64

2005-08-10 Thread Keith Owens
IA64 gets *** Warning: "pcibios_bus_to_resource" [drivers/pcmcia/yenta_socket.ko] undefined!. Trivial fix, export pcibios_bus_to_resource. Also export it on sparc64, which is the only other architecture that defines pcibios_bus_to_resource but does not export it. Signed-off-by: K

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-10 Thread Keith Owens
FYI, the intermittent free after use in sysfs is still there in 2.6.13-rc6. - 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

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-10 Thread Keith Owens
FYI, the intermittent free after use in sysfs is still there in 2.6.13-rc6. - 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

[patch 2.6.13-rc6] Export pcibios_bus_to_resource on ia64 and sparc64

2005-08-10 Thread Keith Owens
IA64 gets *** Warning: pcibios_bus_to_resource [drivers/pcmcia/yenta_socket.ko] undefined!. Trivial fix, export pcibios_bus_to_resource. Also export it on sparc64, which is the only other architecture that defines pcibios_bus_to_resource but does not export it. Signed-off-by: Keith Owens [EMAIL

Re: [patch 1/1] x86_64: Rename KDB_VECTOR to DEBUGGER_VECTOR

2005-08-08 Thread Keith Owens
On Tue, 9 Aug 2005 01:16:37 +0200, Andi Kleen <[EMAIL PROTECTED]> wrote: >On Tue, Aug 09, 2005 at 09:14:52AM +1000, Keith Owens wrote: >> On Mon, 8 Aug 2005 21:28:50 +0200, >> Andi Kleen <[EMAIL PROTECTED]> wrote: >> >On Mon, Aug 08, 2005

Re: [patch 1/1] x86_64: Rename KDB_VECTOR to DEBUGGER_VECTOR

2005-08-08 Thread Keith Owens
On Mon, 8 Aug 2005 21:28:50 +0200, Andi Kleen <[EMAIL PROTECTED]> wrote: >On Mon, Aug 08, 2005 at 12:27:10PM -0700, Tom Rini wrote: >> { >> unsigned int icr = APIC_DM_FIXED | shortcut | vector | dest; >> -if (vector == KDB_VECTOR) >> +if (vector == NMI_VECTOR) >> icr =

Re: OOPS in 2.6.13-rc1-mm1 -- EIP is at sysfs_release+0x49/0xb0

2005-08-08 Thread Keith Owens
On Mon, 8 Aug 2005 10:44:04 -0700, Andrew Morton <[EMAIL PROTECTED]> wrote: >Sonny Rao <[EMAIL PROTECTED]> wrote: >> Modules linked in: cpufreq_userspace cpufreq_stats freq_table >> cpufreq_powersave >> cpufreq_ondemand cpufreq_conservative ipv6 video thermal processor hotkey >> fan co >>

Re: OOPS in 2.6.13-rc1-mm1 -- EIP is at sysfs_release+0x49/0xb0

2005-08-08 Thread Keith Owens
On Mon, 8 Aug 2005 10:44:04 -0700, Andrew Morton [EMAIL PROTECTED] wrote: Sonny Rao [EMAIL PROTECTED] wrote: Modules linked in: cpufreq_userspace cpufreq_stats freq_table cpufreq_powersave cpufreq_ondemand cpufreq_conservative ipv6 video thermal processor hotkey fan co ntainer button

Re: [patch 1/1] x86_64: Rename KDB_VECTOR to DEBUGGER_VECTOR

2005-08-08 Thread Keith Owens
On Mon, 8 Aug 2005 21:28:50 +0200, Andi Kleen [EMAIL PROTECTED] wrote: On Mon, Aug 08, 2005 at 12:27:10PM -0700, Tom Rini wrote: { unsigned int icr = APIC_DM_FIXED | shortcut | vector | dest; -if (vector == KDB_VECTOR) +if (vector == NMI_VECTOR) icr = (icr

Re: [patch 1/1] x86_64: Rename KDB_VECTOR to DEBUGGER_VECTOR

2005-08-08 Thread Keith Owens
On Tue, 9 Aug 2005 01:16:37 +0200, Andi Kleen [EMAIL PROTECTED] wrote: On Tue, Aug 09, 2005 at 09:14:52AM +1000, Keith Owens wrote: On Mon, 8 Aug 2005 21:28:50 +0200, Andi Kleen [EMAIL PROTECTED] wrote: On Mon, Aug 08, 2005 at 12:27:10PM -0700, Tom Rini wrote: { unsigned int icr

Re: [patch 07/15] Basic x86_64 support

2005-08-06 Thread Keith Owens
On Thu, 4 Aug 2005 14:39:00 +0200, Andi Kleen <[EMAIL PROTECTED]> wrote: >> > That doesn't make much sense here. tasklet will only run when interrupts >> > are enabled, and that is much later. You could move it to there. >> >> Where? Keep in mind it's really only x86_64 that isn't able to break

Re: [patch 07/15] Basic x86_64 support

2005-08-06 Thread Keith Owens
On Thu, 4 Aug 2005 14:39:00 +0200, Andi Kleen [EMAIL PROTECTED] wrote: That doesn't make much sense here. tasklet will only run when interrupts are enabled, and that is much later. You could move it to there. Where? Keep in mind it's really only x86_64 that isn't able to break sooner.

Re: question on memory map of process on i386

2005-08-03 Thread Keith Owens
On Wed, 03 Aug 2005 17:28:38 -0600, "Christopher Friesen" <[EMAIL PROTECTED]> wrote: > >On i386, /proc//maps shows the following entry: > >e000-f000 ---p 00:00 0 > >This page of memory is way up above TASK_SIZE (which is 0xc000), so >how is it visible to userspace? > >Just

Re: question on memory map of process on i386

2005-08-03 Thread Keith Owens
On Wed, 03 Aug 2005 17:28:38 -0600, Christopher Friesen [EMAIL PROTECTED] wrote: On i386, /proc/pid/maps shows the following entry: e000-f000 ---p 00:00 0 This page of memory is way up above TASK_SIZE (which is 0xc000), so how is it visible to userspace? Just to

Re: [patch] Real-Time Preemption, -RT-2.6.13-rc4-V0.7.52-01

2005-08-02 Thread Keith Owens
On Tue, 02 Aug 2005 18:12:27 -0700, George Anzinger wrote: >How about something like: > if (current + THREAD_SIZE/sizeof(long) - (regs + sizeof(pt_regs)) > > MAGIC) current points to the current struct task, regs points to the kernel stack. Those two data areas can be completely

Re: Need help regarding kernel threads

2005-08-02 Thread Keith Owens
On Tue, 2 Aug 2005 09:57:51 +0100 (BST), vinay hegde <[EMAIL PROTECTED]> wrote: >How to differentiate kernel threads from normal >processes inside the Linux kernel code? The Linux Kernel Debugger (ftp://oss.sgi.com/projects/kdb/download/v4.4) distinguishes between idle tasks, sleeping system

Re: Need help regarding kernel threads

2005-08-02 Thread Keith Owens
On Tue, 2 Aug 2005 09:57:51 +0100 (BST), vinay hegde [EMAIL PROTECTED] wrote: How to differentiate kernel threads from normal processes inside the Linux kernel code? The Linux Kernel Debugger (ftp://oss.sgi.com/projects/kdb/download/v4.4) distinguishes between idle tasks, sleeping system

Re: [patch] Real-Time Preemption, -RT-2.6.13-rc4-V0.7.52-01

2005-08-02 Thread Keith Owens
On Tue, 02 Aug 2005 18:12:27 -0700, George Anzinger george@mvista.com wrote: How about something like: if (current + THREAD_SIZE/sizeof(long) - (regs + sizeof(pt_regs)) MAGIC) current points to the current struct task, regs points to the kernel stack. Those two data areas can be

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-01 Thread Keith Owens
On Tue, 02 Aug 2005 13:05:50 +1000, Keith Owens <[EMAIL PROTECTED]> wrote: >The vcsnn value varies. I traced the dentry parent chain for the >latest event. From bottom to top the d_name entries are > > dev, vcs16, vc, class, /. > >That makes no sense, why is dev a c

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-01 Thread Keith Owens
On Mon, 1 Aug 2005 12:03:21 -0700, Andrew Morton <[EMAIL PROTECTED]> wrote: >Keith Owens <[EMAIL PROTECTED]> wrote: >> >> On Sat, 30 Jul 2005 02:29:55 -0700, >> Andrew Morton <[EMAIL PROTECTED]> wrote: >> >Keith Owens <[EMAIL PROTECT

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-01 Thread Keith Owens
Another (different) manifestation of use after free in sysfs. It broke on module_put(owner) in sysfs_release(). FWIW this ia64 build is uni-processor, so there is a lot more context switching than normally occurs on udev. fill_kobj_path: path = '/class/vc/vcs2' kobject_hotplug: /sbin/hotplug vc

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-01 Thread Keith Owens
On Sat, 30 Jul 2005 02:29:55 -0700, Andrew Morton <[EMAIL PROTECTED]> wrote: >Keith Owens <[EMAIL PROTECTED]> wrote: >> >> 2.6.13-rc4 + kdb, with lots of CONFIG_DEBUG options. There is an >> intermittent use after free in class_device_attr_show. Reboot with no

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-01 Thread Keith Owens
On Sat, 30 Jul 2005 02:29:55 -0700, Andrew Morton [EMAIL PROTECTED] wrote: Keith Owens [EMAIL PROTECTED] wrote: 2.6.13-rc4 + kdb, with lots of CONFIG_DEBUG options. There is an intermittent use after free in class_device_attr_show. Reboot with no changes and the problem does not always

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-01 Thread Keith Owens
Another (different) manifestation of use after free in sysfs. It broke on module_put(owner) in sysfs_release(). FWIW this ia64 build is uni-processor, so there is a lot more context switching than normally occurs on udev. fill_kobj_path: path = '/class/vc/vcs2' kobject_hotplug: /sbin/hotplug vc

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-01 Thread Keith Owens
On Mon, 1 Aug 2005 12:03:21 -0700, Andrew Morton [EMAIL PROTECTED] wrote: Keith Owens [EMAIL PROTECTED] wrote: On Sat, 30 Jul 2005 02:29:55 -0700, Andrew Morton [EMAIL PROTECTED] wrote: Keith Owens [EMAIL PROTECTED] wrote: 2.6.13-rc4 + kdb, with lots of CONFIG_DEBUG options

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-01 Thread Keith Owens
On Tue, 02 Aug 2005 13:05:50 +1000, Keith Owens [EMAIL PROTECTED] wrote: The vcsnn value varies. I traced the dentry parent chain for the latest event. From bottom to top the d_name entries are dev, vcs16, vc, class, /. That makes no sense, why is dev a child of vcs16? Raw data at the end

2.6.13-rc4 use after free in class_device_attr_show

2005-07-29 Thread Keith Owens
2.6.13-rc4 + kdb, with lots of CONFIG_DEBUG options. There is an intermittent use after free in class_device_attr_show. Reboot with no changes and the problem does not always recur. Starting SSH daemon done Starting sound driver

Re: [PATCH] NMI watch dog notify patch

2005-07-29 Thread Keith Owens
On Fri, 29 Jul 2005 13:55:23 -0700, George Anzinger wrote: > This patch adds a notify to the die_nmi notify that the system > is about to be taken down. If the notify is handled with a > NOTIFY_STOP return, the system is given a new lease on life. > > void die_nmi (struct

Re: Add prefetch switch stack hook in scheduler function

2005-07-29 Thread Keith Owens
On Fri, 29 Jul 2005 00:22:43 -0700, "Chen, Kenneth W" <[EMAIL PROTECTED]> wrote: >On ia64, we have two kernel stacks, one for outgoing task, and one for >incoming task. for outgoing task, we haven't called switch_to() yet. >So the switch stack structure for 'current' will be allocated

Re: Add prefetch switch stack hook in scheduler function

2005-07-29 Thread Keith Owens
On Fri, 29 Jul 2005 09:04:48 +0200, Ingo Molnar <[EMAIL PROTECTED]> wrote: >ok, how about the additional patch below? Does this do the trick on >ia64? It makes complete sense on every architecture to prefetch from >below the current kernel stack, in the expectation of the next task >touching

Re: Add prefetch switch stack hook in scheduler function

2005-07-29 Thread Keith Owens
On Fri, 29 Jul 2005 09:04:48 +0200, Ingo Molnar [EMAIL PROTECTED] wrote: ok, how about the additional patch below? Does this do the trick on ia64? It makes complete sense on every architecture to prefetch from below the current kernel stack, in the expectation of the next task touching the

Re: Add prefetch switch stack hook in scheduler function

2005-07-29 Thread Keith Owens
On Fri, 29 Jul 2005 00:22:43 -0700, Chen, Kenneth W [EMAIL PROTECTED] wrote: On ia64, we have two kernel stacks, one for outgoing task, and one for incoming task. for outgoing task, we haven't called switch_to() yet. So the switch stack structure for 'current' will be allocated immediately below

Re: [PATCH] NMI watch dog notify patch

2005-07-29 Thread Keith Owens
On Fri, 29 Jul 2005 13:55:23 -0700, George Anzinger george@mvista.com wrote: This patch adds a notify to the die_nmi notify that the system is about to be taken down. If the notify is handled with a NOTIFY_STOP return, the system is given a new lease on life. void die_nmi

Re: [PATCH] NMI watch dog notify patch

2005-07-28 Thread Keith Owens
On Thu, 28 Jul 2005 21:16:56 -0700, George Anzinger wrote: >Keith Owens wrote: >> On Thu, 28 Jul 2005 13:31:58 -0700, >> George Anzinger wrote: >> >>>I have been doing some work on kgdb to pull a few of it "fingers" out of >>>various places in

Re: [PATCH] NMI watch dog notify patch

2005-07-28 Thread Keith Owens
On Thu, 28 Jul 2005 13:31:58 -0700, George Anzinger wrote: >I have been doing some work on kgdb to pull a few of it "fingers" out of >various places in the kernel. This is the final location where we have >a kgdb intercept not covered by a notify. I like the idea, but the hook should be in

Re: Add prefetch switch stack hook in scheduler function

2005-07-28 Thread Keith Owens
On Thu, 28 Jul 2005 09:41:18 +0200, Ingo Molnar <[EMAIL PROTECTED]> wrote: > >* david mosberger <[EMAIL PROTECTED]> wrote: > >> Also, should this be called prefetch_stack() or perhaps even just >> prefetch_task()? Not every architecture defines a switch_stack >> structure. > >yeah. I'd too

Re: Add prefetch switch stack hook in scheduler function

2005-07-28 Thread Keith Owens
On Thu, 28 Jul 2005 09:41:18 +0200, Ingo Molnar [EMAIL PROTECTED] wrote: * david mosberger [EMAIL PROTECTED] wrote: Also, should this be called prefetch_stack() or perhaps even just prefetch_task()? Not every architecture defines a switch_stack structure. yeah. I'd too suggest to call it

Re: [PATCH] NMI watch dog notify patch

2005-07-28 Thread Keith Owens
On Thu, 28 Jul 2005 13:31:58 -0700, George Anzinger george@mvista.com wrote: I have been doing some work on kgdb to pull a few of it fingers out of various places in the kernel. This is the final location where we have a kgdb intercept not covered by a notify. I like the idea, but the hook

Re: [PATCH] NMI watch dog notify patch

2005-07-28 Thread Keith Owens
On Thu, 28 Jul 2005 21:16:56 -0700, George Anzinger george@mvista.com wrote: Keith Owens wrote: On Thu, 28 Jul 2005 13:31:58 -0700, George Anzinger george@mvista.com wrote: I have been doing some work on kgdb to pull a few of it fingers out of various places in the kernel

Re: 2.6.13-rc3 udev/hotplug use memory after free

2005-07-26 Thread Keith Owens
On Mon, 25 Jul 2005 15:01:19 -0700, Andrew Morton <[EMAIL PROTECTED]> wrote: >Keith Owens <[EMAIL PROTECTED]> wrote: >> >> 2.6.13-rc3 + kdb (which does not touch udev/hotplug) on IA64 (Altix). >> gcc version 3.3.3 (SuSE Linux). Compiled with DEBUG_SLAB,

Re: 2.6.13-rc3 udev/hotplug use memory after free

2005-07-26 Thread Keith Owens
On Mon, 25 Jul 2005 15:01:19 -0700, Andrew Morton [EMAIL PROTECTED] wrote: Keith Owens [EMAIL PROTECTED] wrote: 2.6.13-rc3 + kdb (which does not touch udev/hotplug) on IA64 (Altix). gcc version 3.3.3 (SuSE Linux). Compiled with DEBUG_SLAB, DEBUG_PREEMPT, DEBUG_SPINLOCK

Re: Why build empty object files in drivers/media?

2005-07-24 Thread Keith Owens
On Fri, 22 Jul 2005 19:46:00 +, Sam Ravnborg <[EMAIL PROTECTED]> wrote: >On Thu, Jul 21, 2005 at 11:06:21PM -0400, Chuck Ebbert wrote: >> >> I have this in my .config file for 2.6.13-rc3: >> >> >> # >> # Multimedia devices >> # >> # CONFIG_VIDEO_DEV is not set >> >> # >> # Digital Video

  1   2   3   4   5   6   7   8   9   10   >