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 >> +++ 2.6.23-rc3-

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 arch/i386/math-emu/wm_sqrt

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 PROT

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

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 include

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 sw

Re: [patch] add kdump_after_notifier

2007-08-02 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 d

[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_notif

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-16 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-16 Thread Keith Owens
|3 -- kdb/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,

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); >+ sen

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 (0x3

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 les

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 serial_pnp

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

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-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

[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 co

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 f

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

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-23 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 128

[patch 2.6.13-rc7] Export pcibios_bus_to_resource

2005-08-23 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

[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-09 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 http://www.

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 >> ntain

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: 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 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 separate

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 dae

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 chil

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]

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

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 pt_r

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

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 th

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 di

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

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: Why build empty object files in drivers/media?

2005-07-23 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 Br

Re: [PATCH] reset VGA adapters via BIOS on resume... (non-fbdev/con)

2005-07-23 Thread Keith Owens
On Sat, 23 Jul 2005 08:53:00 +0200, Stefan Smietanowski <[EMAIL PROTECTED]> wrote: >Pavel Machek wrote: >> Well, we have debugged with beeps, but... It would be cool if someone >> got usb debug mode working but... and there are hardware debuggers. > >If kdb is your thing then SGI has gotten kdb wo

Re: kdb v4.4 supports OHCI keyboard in 2.6

2005-07-21 Thread Keith Owens
On Thu, 21 Jul 2005 12:11:21 +0100, Sid Boyce <[EMAIL PROTECTED]> wrote: > CHK include/linux/version.h >make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. > CHK include/linux/compile.h > CHK usr/initramfs_list > CC arch/i386/kernel/traps.o >arch/i386/kernel/traps.c:8

kdb v4.4 supports OHCI keyboard in 2.6

2005-07-20 Thread Keith Owens
The 2.6.13-rc3 version of KDB (Linux Kernel Debugger) supports a USB keyboard (CONFIG_KDB_USB). At the moment it only supports the OHCI interface, this is what SGI hardware uses. If anybody has hardware that uses the UHCI interface for the keyboard and can create a kdb patch, that patch will be g

2.6.13-rc3 udev/hotplug use memory after free

2005-07-19 Thread Keith Owens
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, DEBUG_SPINLOCK_SLEEP, DEBUG_KOBJECT. There is a use after free somewhere above class_device_attr_show. <7>fill_kobj_path: path = '/class/

Re: Regarding KDB for REDHAT9.0

2005-07-18 Thread Keith Owens
On Mon, 18 Jul 2005 11:29:39 +0530 (IST), Subbu <[EMAIL PROTECTED]> wrote: > I have REDHAT 9.0 (kernel version 2.4.20-8) and i want to have KDB. >please tell me which version of KDB i can use with redhat 9.0 and above >mentioned kernel version. Sorry, not available. RedHat do not want kdb so SGI

2.6.12-rc2 in_atomic() picks up preempt_disable()

2005-04-07 Thread Keith Owens
2.6.12-rc2, with CONFIG_PREEMPT and CONFIG_PREEMPT_DEBUG. The in_atomic() macro thinks that preempt_disable() indicates an atomic region so calls to __might_sleep() result in a stack trace. preempt_count() returns 1, no soft or hard irqs are running and no spinlocks are held. It looks like there

Re: Kernel OOOPS in 2.6.11.6

2005-03-28 Thread Keith Owens
On Mon, 28 Mar 2005 18:06:08 -0800, Chris Wedgwood <[EMAIL PROTECTED]> wrote: >On Mon, Mar 28, 2005 at 04:24:15PM -0800, Chris Wright wrote: > >> Imperfect stack trace decoding. > >Is this with CONFIG_4K_STACKS? does it happen w/o it? i386 needs unwind data plus a kernel unwinder to get accurate

Re: upgrading modutils may have fixed: unresolved symbols still in 2.4.30-rc2 (usbserial needs symbol tty_ldisc_ref and tty_ldisc_deref which are EXPORT_SYMBOL_GPL)

2005-03-28 Thread Keith Owens
On Mon, 28 Mar 2005 13:37:31 +0200, Willy TARREAU <[EMAIL PROTECTED]> wrote: >On Mon, Mar 28, 2005 at 09:00:59PM +1000, Keith Owens wrote: >> You need modutils >= 2.4.14 to use the combination of >> CONFIG_MODVERSIONS with EXPORT_SYMBOL_GPL() on 2.4 kernels. > >

Re: upgrading modutils may have fixed: unresolved symbols still in 2.4.30-rc2 (usbserial needs symbol tty_ldisc_ref and tty_ldisc_deref which are EXPORT_SYMBOL_GPL)

2005-03-28 Thread Keith Owens
On Mon, 28 Mar 2005 06:20:01 +0200, Willy Tarreau <[EMAIL PROTECTED]> wrote: >I believe it's because of genksyms during the build process, I had the >exact same problem a few weeks ago on a machine with old modutils. So >you should have cleaned everything and rebuilt from scratch after >installing

Re: [patch 2.6.11-rc5] Add target debug_kallsyms

2005-03-14 Thread Keith Owens
On Mon, 14 Mar 2005 22:43:41 +0100, Sam Ravnborg <[EMAIL PROTECTED]> wrote: >On Sat, Feb 26, 2005 at 09:50:02PM +1100, Keith Owens wrote: >> Make it easier to generate maps for debugging kallsyms problems. >> debug_kallsyms is only a debugging target so no help or silent mo

Re: [PATCH] buildcheck: reduce DEBUG_INFO noise from reference* scripts

2005-03-14 Thread Keith Owens
On Mon, 14 Mar 2005 11:02:09 -0800, "Randy.Dunlap" <[EMAIL PROTECTED]> wrote: > >Reduce noise in 'make buildcheck' that is caused by CONFIG_DEBUG_INFO=y. > >Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]> > >diffstat:= > scripts/reference_discarded.pl |3 +++ > scripts/reference_init.pl |

Announce: kdb v4.4 is available for kernel 2.6.11

2005-03-02 Thread Keith Owens
kdb-v4.4-2.6.11-ia64-1.bz2 kdb-v4.4-2.6.9-rc2-x86-64-1.bz2 (may or may not work with 2.6.11). Changelog extract since kdb-v4.4-2.6.10-common-1. 2005-03-03 Keith Owens <[EMAIL PROTECTED]> * Add kdb to drivers/serial/8250_early.c. Francois Wellenreiter, Bull. * kd

[patch 2.6.11-rc5] Add target debug_kallsyms

2005-02-26 Thread Keith Owens
Make it easier to generate maps for debugging kallsyms problems. debug_kallsyms is only a debugging target so no help or silent mode. Signed-off-by: Keith Owens Index: linux/Makefile === --- linux.orig/Makefile 2005-02-25 16:21

Re: Inconsistent kallsyms data (since 2.6.11-rc3 or so)

2005-02-26 Thread Keith Owens
On Fri, 25 Feb 2005 11:33:48 +0100 (CET), Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > >One of my m68k configs has been giving > >| Inconsistent kallsyms data >| Try setting CONFIG_KALLSYMS_EXTRA_PASS > >since 2.6.11-rc3 or so. Setting CONFIG_KALLSYMS_EXTRA_PASS, or applying Keith >Owen's patch

Re: Inconsistent kallsyms data (since 2.6.11-rc3 or so)

2005-02-25 Thread Keith Owens
On Fri, 25 Feb 2005 11:33:48 +0100 (CET), Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > >One of my m68k configs has been giving > >| Inconsistent kallsyms data >| Try setting CONFIG_KALLSYMS_EXTRA_PASS > >since 2.6.11-rc3 or so. Setting CONFIG_KALLSYMS_EXTRA_PASS, or applying Keith >Owen's patch

Re: Configure mangles hex values

2005-01-25 Thread Keith Owens
On Tue, 25 Jan 2005 09:25:57 -0800, Nick Pollitt <[EMAIL PROTECTED]> wrote: >Hello. I'm thinking that the 0x was stripped for purely cosmetic reasons >rather than anything functional. I had originally thought that the readln >function might need the formatting, but taking a closer look at it n

Re: Announce: kdb v4.4 is available for kernel 2.6.10

2005-01-24 Thread Keith Owens
On Tue, 25 Jan 2005 09:55:55 +0530, Saravanan s <[EMAIL PROTECTED]> wrote: >Hi Keith, > >> I have no hardware to test on, so I have >> to rely on HP to keep the USB patches in KDB up to date. > >Does that mean that there is USB support for KDBv4.4 for kernel 2.6 >for i386 machines? Or the patch

Re: inter_module_get and __symbol_get

2005-01-24 Thread Keith Owens
On Mon, 24 Jan 2005 14:58:29 -0800, David Mosberger <[EMAIL PROTECTED]> wrote: >>>>>> On Tue, 25 Jan 2005 09:54:36 +1100, Keith Owens said: > > Keith> Does DRM support this model? > > Keith> * Start DRM without AGP. > Keith> * AGP is loa

Re: inter_module_get and __symbol_get

2005-01-24 Thread Keith Owens
On Mon, 24 Jan 2005 14:52:06 -0800, David Mosberger <[EMAIL PROTECTED]> wrote: >>>>>> On Tue, 25 Jan 2005 09:44:18 +1100, Keith Owens said: > > Keith> Does the kernel code really need optional dynamic references > Keith> between modules or kernel -&

Re: inter_module_get and __symbol_get

2005-01-24 Thread Keith Owens
On Mon, 24 Jan 2005 14:36:10 -0800, David Mosberger <[EMAIL PROTECTED]> wrote: >Keith, > >I didn't see any followup to your message. My apologies if I missed >something. > >You wrote: > > Keith> inter_module_* and __symbol_* solve these class of problems: > > Keith> Module A can use module B if B

Re: Announce: kdb v4.4 is available for kernel 2.6.10

2005-01-24 Thread Keith Owens
On Mon, 24 Jan 2005 15:21:08 -, [EMAIL PROTECTED] wrote: >All: >I tried to get Kdb working on SuSe 9 ia64 box (kernel version >2.6.5-7.111.19). Turns out that the keyboard/machine goes into a hang state. >I have a usb keyboard! > >Googling around I found that Keith had disabled the USB keyboar

Re: [discuss] booting a kernel compiled with -mregparm=0

2005-01-18 Thread Keith Owens
On Mon, 17 Jan 2005 09:30:17 + (GMT), Tigran Aivazian <[EMAIL PROTECTED]> wrote: >Hmmm, interesting, then -g compiled Linux kernel should also be useable, >with perhaps some tweaks to kdb to decode these frames correctly, right? kdb on i386 uses heuristics to guess at what parameters have be

Re: [patch 0/3] kallsyms: Add gate page and all symbols support

2005-01-18 Thread Keith Owens
On Tue, 18 Jan 2005 18:52:55 +1100, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: >On Tue, 2004-12-28 at 22:17 +0100, Sam Ravnborg wrote: > >> > 2 Add in_gate_area_no_task() for use from places where no task is valid. > >Can you back that out ? Or at least explain why you need to add this >"no

[patch] scripts/reference*.pl - treat built-in.o as conglomerate

2005-01-16 Thread Keith Owens
scripts/reference*.pl - treat built-in.o as conglomerate. Ignore references from altinstructions to init text/data. Signed-off-by: Keith Owens Index: 2.6.10/scripts/reference_discarded.pl === --- 2.6.10.orig/scripts

Re: conglomerate objects in reference*.pl

2005-01-16 Thread Keith Owens
On Sun, 16 Jan 2005 11:45:33 -0800, "Randy.Dunlap" <[EMAIL PROTECTED]> wrote: >Keith Owens wrote: >> On Sat, 15 Jan 2005 20:49:33 -0800, >> "Randy.Dunlap" <[EMAIL PROTECTED]> wrote: >>>I'm seeing some drivers/*/built-in.o that sho

Re: conglomerate objects in reference*.pl

2005-01-15 Thread Keith Owens
On Sat, 15 Jan 2005 20:49:33 -0800, "Randy.Dunlap" <[EMAIL PROTECTED]> wrote: >Hi Keith, > >I'm seeing some drivers/*/built-in.o that should be ignored AFAIK, >but they are not ignored. Any ideas? > >This is 2.6.11-rc1-bk3 on i386 with allmodconfig >(except DEBUG_INFO=n) and gcc 3.3.3. > >Error:

Re: modules/ksyms/filenames

2001-07-19 Thread Keith Owens
On Thu, 19 Jul 2001 15:54:00 -0600, "Peter J. Braam" <[EMAIL PROTECTED]> wrote: >I'm trying to export a symbol (journal_begin/end) from >fs/reiserfs/journal.c. To export the symbols I added to the Makefile: >export-objs := journal.o > >There is also a file fs/jbd/journal.c which exports symbols.

Re: linux-2.4.6-pre6: numerous dep_{bool,tristate} $CONFIG_ARCH_xxx bugs

2001-06-29 Thread Keith Owens
On Fri, 29 Jun 2001 07:10:51 -0700, "Adam J. Richter" <[EMAIL PROTECTED]> wrote: > The Config.in files in linux-2.4.6-pre6 have at least 28 cases >where a dep_bool or dep_tristate of the following form: > dep_bool CONFIG_SOMETHING $CONFIG_ARCH_somearch > I will put together patc

Re: [PATCH] 2.4.6-pre6 fix drivers/net/Config.in error

2001-06-28 Thread Keith Owens
On Thu, 28 Jun 2001 10:45:55 +0200 (MET DST), Andrzej Krzysztofowicz <[EMAIL PROTECTED]> wrote: >Keith Owens wrote: >> Index: 6-pre6.1/drivers/net/Config.in >> - dep_bool ' EISA, VLB, PCI and on board controllers' CONFIG_NET_PCI >> + if [ "$CO

Re: Reg Kernel Debugger kdb

2001-06-25 Thread Keith Owens
On Mon, 25 Jun 2001 12:41:53 +0530 (IST), "SATHISH.J" <[EMAIL PROTECTED]> wrote: >I would like to use a kernel debugger to set some breakpoints in some >of the kernel functions. In SVR4 and unixware we use kdb. What is its >equivalent in linux? Please tell me where the kernel debugger can be >dow

Re: Patch: ARM show_trace_task and show_task cleanup

2001-06-24 Thread Keith Owens
On Sun, 24 Jun 2001 14:33:56 +0100, Russell King <[EMAIL PROTECTED]> wrote: >The following patch adds ARM support for show_trace_task() and changes >die() to display the instruction trace as ksymoops expects it (code >line last). Thanks. >-#if defined(CONFIG_X86) || defined(CONFIG_SPARC64) >+#i

Re: missing symbol do_softirq in net moduels for pre-2

2001-06-09 Thread Keith Owens
On Sat, 9 Jun 2001 11:13:46 -0700, Wayne Whitney <[EMAIL PROTECTED]> wrote: >I have verified that the versioning of the do_softirq symbol above is >the source of the problems in 2.4.6-pre2 Resend, the first patch never appeared. The problem is the call to do_softirq inside an asm string where c

Re: missing symbol do_softirq in net moduels for pre-2

2001-06-09 Thread Keith Owens
On Sat, 9 Jun 2001 11:07:52 -0400, Ed Tomlinson <[EMAIL PROTECTED]> wrote: >Built -pre2 and noticed most of the modules in net/* are getting >a missing symbol for do_softirq. http://www.tux.org/lkml/#s8-8 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: es1371 compile issue in 2.4.5-ac9

2001-06-07 Thread Keith Owens
On Wed, 6 Jun 2001 14:45:10 -0700 (PDT), Alan Olsen <[EMAIL PROTECTED]> wrote: >I rebuilt from clean source and patch for 2.4.5-ac9 and neglected to add >in anything using the joystick. > >ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext ... > -o vmlinux >drivers/sound/soundd

Re: strange network hangs using kdb

2001-06-05 Thread Keith Owens
On Tue, 5 Jun 2001 12:20:25 -0400, John Jasen <[EMAIL PROTECTED]> wrote: >On Wed, 6 Jun 2001, Keith Owens wrote: >> On Tue, 5 Jun 2001 11:20:26 -0400, >> John Jasen <[EMAIL PROTECTED]> wrote: >> >When we use kdb on one of the systems, the other system stops re

Re: Exporting new functions from kernel 2.2.14

2001-06-05 Thread Keith Owens
On Tue, 05 Jun 2001 10:10:26 -0700, Stephen Wille Padnos <[EMAIL PROTECTED]> wrote: >Arthur had pointed out that modules.h should be included, then kernel.h. Is >there a place where I can find out more about header file order dependencies? With the existing design for module symbol versions, mo

Re: [PATCH] for Linux IRDA initialisation bug 2.4.5

2001-06-01 Thread Keith Owens
On Fri, 1 Jun 2001 23:32:46 +1000, Matt Chapman <[EMAIL PROTECTED]> wrote: >I've found that if you compile IRDA into the kernel, irda_proto_init >gets called twice - once at do_initcalls time, and once explicitly >in do_basic_setup - eventually resulting in a hang (as >register_netdevice_notifier

Re: Linux 2.4.5-ac6

2001-06-01 Thread Keith Owens
ftp://oss.sgi.com/projects/kdb/download/ix86/kdb-v1.8-2.4.5-ac6.gz is available. - 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 2.2.18 oops

2001-05-30 Thread Keith Owens
On Wed, 30 May 2001 12:17:55 +0100 (BST), Stephen Cornell <[EMAIL PROTECTED]> wrote: >ksymoops doesn't seem to have done its job correctly ksymoops did the best it could when fed with data that has been stamped on by klogd. Always run klogd as "klogd -x" so it keeps its sticky fingers off the o

Re: [PATCH] net #3

2001-05-30 Thread Keith Owens
On Wed, 30 May 2001 12:53:36 +0200 (MET DST), Andrzej Krzysztofowicz <[EMAIL PROTECTED]> wrote: >When __init for modules will be implemented ? When I can persuade myself that discarding code pages but retaining the associated exception tables and any arch dependent data for the discarded module

Re: [CHECKER] 4 security holes in 2.4.4-ac8

2001-05-30 Thread Keith Owens
On 30 May 2001 11:38:13 +0200, Andi Kleen <[EMAIL PROTECTED]> wrote: >"David S. Miller" <[EMAIL PROTECTED]> writes: > >> Dawson Engler writes: >> > Is there any way to automatically find these? E.g., is any routine >> > with "asmlinkage" callable from user space? >> >> This is only universall

Re: unresolved symbols printk ?

2001-05-29 Thread Keith Owens
On Tue, 29 May 2001 15:54:36 +0200, Nico Schottelius <[EMAIL PROTECTED]> wrote: >Just a small question, what could be the reason I have a broken >Makefile ? >This seems to happen frequently, if there is a need >to name it into the lkml. I am surprised >a makefile gets screwed up ? It is the make

Re: how to crash 2.4.4 w/SBLive

2001-05-28 Thread Keith Owens
On 28 May 2001 19:38:59 -0400, Bill Pringlemeir <[EMAIL PROTECTED]> wrote: >ps, There is no FAQ entry on how to generate a single object with `-g'. I >ended up recompiling my whole tree! I would say "read the source, Luke" but Makefile and Rules.make is so convoluted and twisted that it gives y

Re: 2.4.5 + ReiserFS + SMP + umount = oops

2001-05-26 Thread Keith Owens
On Sun, 27 May 2001 06:04:28 +0200 (CEST), Rene <[EMAIL PROTECTED]> wrote: >hmm I feel quite certain that I am using /dev/tty - is there some way I >can check this? /etc/inittab, lines for mingetty, getty or agetty. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in th

Re: 2.4.5 + ReiserFS + SMP + umount = oops

2001-05-26 Thread Keith Owens
On Sun, 27 May 2001 05:10:30 +0200 (CEST), Rene <[EMAIL PROTECTED]> wrote: >Problem #2 >Certain keystrokes like ctrl+c does not work when logged in from the >console Are you using /dev/console or /dev/tty for the console session? /dev/console does not support control-C, use /dev/tty for a VGA se

Re: FWD: [RHSA-2000:108-02] Updated modutils fixing local root

2001-05-26 Thread Keith Owens
On Sat, 27 May 2001 21:11:25, [EMAIL PROTECTED] (Joseph S Price) wrote: > Red Hat, Inc. Security Advisory >Synopsis: Updated modutils fixing local root security bug available >Advisory ID: RHSA-2000:108-02 >Issue date:2000-11-16 >Updated on:2000-11

Re: new aic7xxx oopses with AHA2940

2001-05-26 Thread Keith Owens
On Sat, 26 May 2001 18:05:29 +0200, Marc Schiffbauer <[EMAIL PROTECTED]> wrote: >I have problems with the new aic7xxx-Driver. These problems exist >with vanilla (2.4.4, 2.5.5, other d.k.) and -ac >May 26 17:52:33 homer kernel: EIP: >0010:[usbcore:usb_devfs_handle_Re9c5f87f+161255/198895517] >

Re: [CHECKER] large stack variables (>=1K) in 2.4.4 and 2.4.4-ac8

2001-05-25 Thread Keith Owens
On Fri, 25 May 2001 08:31:24 -0700 (PDT), dean gaudet <[EMAIL PROTECTED]> wrote: >another possibility for a debugging mode for the kernel would be to hack >gcc to emit something like the following in the prologue of every function >(after the frame is allocated): IKD already does that, via the C

Re: [CHECKER] large stack variables (>=1K) in 2.4.4 and 2.4.4-ac8

2001-05-25 Thread Keith Owens
On Fri, 25 May 2001 10:27:53 +0200, Andi Kleen <[EMAIL PROTECTED]> wrote: >On Fri, May 25, 2001 at 06:25:57PM +1000, Keith Owens wrote: >> Nothing in arch/i386/kernel/traps.c uses a task gate, they are all >> interrupt, trap, system or call gates. I guarantee that kdb on

  1   2   3   4   5   6   7   8   >