Re: Debug: sleeping function called from invalid context

From: Andrew Morton (akpm_at_osdl.org)
Date: 08/19/03

  • Next message: Fredrick Knieper: "pdc-ultra promise 150tx2+ driver bug? hard lock/other crashiness"
    Date:	Mon, 18 Aug 2003 20:35:13 -0700
    To: "Randy.Dunlap" <rddunlap@osdl.org>
    
    

    "Randy.Dunlap" <rddunlap@osdl.org> wrote:
    >
    > Debug: sleeping function called with interrupts disabled at
    > include/asm/uaccess.h:473

    OK, now my vague understanding of what's going on is that the app has
    chosen to disable local interupts (via iopl()) and has taken a vm86 trap.
    I guess we'd see the same thing if the app performed some sleeping syscall
    while interrupts are disabled.

    If that is correct then it really is just a false positive.

    It could also point at a bug in the application; it is presumably disabling
    interrupts for some form of locking, atomicity or timing guarantee. But it
    will not lock against other CPUs and the fact that it trapped into the
    kernel indicates tat it may not be getting the atomicity which it desires.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Fredrick Knieper: "pdc-ultra promise 150tx2+ driver bug? hard lock/other crashiness"

    Relevant Pages

    • Re: sony vaio pcg-gr390
      ... PCI-Only Interrupts: none ... Location Bus Device Pin Link IRQs ... penalty: 1050 ... isa_probe_children: disabling PnP devices ...
      (freebsd-current)
    • Re: [RFC/PATCH] Kdump: Disabling PCI interrupts in capture kernel
      ... I know very little about consoles and their working. ... >> console driver needed interrupts to be enabled at the controller. ... looking at disabling the DMA from the devices. ... interrupt disable bit in PCI-PCI bridge is optional and if implemented, ...
      (Linux-Kernel)
    • Re: [RFC] mmiotrace full patch, preview 1
      ... the "first" probe gets selected and executed. ... kmmio_handler, where-ever it was triggered, executes with interrupts ... enable single-stepping. ... or does disabling interrupts guarantee that? ...
      (Linux-Kernel)
    • Re: Guarantee Critical Regions in Portable code. Portable Semaphores?
      ... Disabling interrupts is the kernel level operation. ... You cannot know it's safe for sure, but a single increment or decrement ... How can the FAT driver know when it is safe to disable the interrupts ...
      (comp.arch.embedded)
    • Re: IIgs Debuggers?
      ... Are you directly disabling any interrupts? ... I do disable interrupts on the initial loading of the wavebank into the DOC RAM, but I do so *exactly* as you have mentioned. ... I deliberately chose MIDI Synth sequences that all share the same instruments and wavebank file - thereby eliminating the need to reload them. ...
      (comp.sys.apple2.programmer)