[IrDA] Oops with NULL deref in irda_device_set_media_busy

From: Michal Rokos (michal_at_rokos.info)
Date: 04/05/05

  • Next message: Paul Mackerras: "Re: 2.6.12-rc2-mm1"
    To: Jean Tourrilhes <jt@hpl.hp.com>, linux-kernel@vger.kernel.org
    Date:	Tue, 5 Apr 2005 11:02:26 +0200
    
    

    Hello,

    I've problems with IrDA - when debug is off, I'm getting oops for obvious
    reason...
    (I don't have a log, this is just rewrite from screen:
    EIP: irda_device_set_media_busy+0x15/0x40 [irda]
    ali_ircc_sir_receive+0x4a/0x70
    ali_ircc_sir_interrupt+0x66/0x70
    ali_ircc_interrupt+0x5e/0x80
    .....
    )
    When I turn debug on, I get just
    Assertion failed! net/irda/irda_device.c:irda_device_set_media_busy:128
    self != NULL

    The obvious reason is that I don't have irlap module in that inits
    dev->atalk_ptr, so I'm getting assertion exception in irda_device.c:489.

    A few info that could be handy:

    $ uname -a # It's yesterday bk snapshot
    Linux csas 2.6.12-rc1-mr #14 Mon Apr 4 13:42:14 CEST 2005 i686 GNU/Linux

    $ lsmod | grep ir
    ircomm_tty 39176 3
    ircomm 22404 1 ircomm_tty
    ali_ircc 26032 0
    irda 192316 3 ircomm_tty,ircomm,ali_ircc
    crc_ccitt 2176 2 ppp_async,irda

    $ grep IR .config
    CONFIG_IRDA=m
    # CONFIG_IRLAN is not set
    CONFIG_IRNET=m
    CONFIG_IRCOMM=m
    CONFIG_IRDA_ULTRA=y
    CONFIG_IRDA_CACHE_LAST_LSAP=y
    CONFIG_IRDA_FAST_RR=y
    CONFIG_IRDA_DEBUG=y
    # SIR device drivers
    # CONFIG_IRTTY_SIR is not set
    # Old SIR device drivers
    # CONFIG_IRPORT_SIR is not set
    # FIR device drivers
    # CONFIG_USB_IRDA is not set
    # CONFIG_SIGMATEL_FIR is not set
    # CONFIG_NSC_FIR is not set
    # CONFIG_WINBOND_FIR is not set
    # CONFIG_TOSHIBA_FIR is not set
    # CONFIG_SMC_IRCC_FIR is not set
    CONFIG_ALI_FIR=m
    # CONFIG_VLSI_FIR is not set
    # CONFIG_VIA_FIR is not set
    # CONFIG_USB_SERIAL_IR is not set

     Michal
    -
    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: Paul Mackerras: "Re: 2.6.12-rc2-mm1"

    Relevant Pages

    • Re: NUMA aware slab allocator V2
      ... > Could we boot the box without quiet so that we can get better debug ... For some reason the console output ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [RFC][Patch 2.6.0-test6] Console hack change
      ... With 2.6.0-test6 and spinlock debugging I get the following debug ... Call Trace: ... Reason is, that console_init is called before IRQs are enabled. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: understanding dependency between dll and vobs
      ... All these dll's are debug versions... ... reason why I can debug them? ... project) being copied in exe directory. ... Visual Studio hanging then it could be some resource file or some other file ...
      (microsoft.public.dotnet.general)
    • Re: CreateFileMapping/MapViewOfFile and 0xC0000005 (ACCESS_DENIED)
      ... Debug is Broken, Release is OK. ... is no reason you should not be able to study what is going on in the program. ... The Access Violation occurs within the range of '.text Start'/'.text ... PVOID pMappedFile = NULL; ...
      (microsoft.public.vc.mfc)
    • Re: OnDraw only draws a blank page...
      ... Or a too large bitmap, ... As you will have to correct the code anyway, trying to debug it with the ... help on one of the 1%-problem users would of course be a tremendous help. ... > I am assuming that the CDC is invalid, could that be the reason? ...
      (microsoft.public.vc.mfc)