[#4649] Kernel crashes after install and remove module blackfin_cam for several times

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4649] Kernel crashes after install and remove module blackfin_cam for several times

Submitted By: Vivi Li

Open Date

2008-11-18 04:24:43     Close Date

2009-01-20 01:35:11

Priority:

Medium High     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1 2008_Nov_13

App binary format:

N/A     

Summary: Kernel crashes after install and remove module blackfin_cam for several times

Details:

 

Install module blackfin_cam and remove it for several times, kernel will crash.

 

Attached is the kernel config. Bellow is the log:

--

root:/> lsmod

Module                  Size  Used by

root:/> modprobe blackfin_cam

Linux video capture interface: v2.00

VS6624: detecting client on address 0x20

VS6624: Firmware Version 0.12

VS6624: Patch Version 0.0

VS6624: V4L driver Blackfin CMOS Camera now ready

VS6624: i2c driver ready

root:/> lsmod

Module                  Size  Used by

blackfin_cam            9556  0

videodev               27580  1 blackfin_cam

v4l1_compat            11308  1 videodev

vs6624                  6320  1 blackfin_cam

root:/> modprobe -r blackfin_cam

root:/> modprobe blackfin_cam

Linux video capture interface: v2.00

VS6624: detecting client on address 0x20

VS6624: Firmware Version 0.12

VS6624: Patch Version 0.0

------------[ cut here ]------------

WARNING: at fs/sysfs/file.c:354 _sysfs_open_file+0x156/0x1b4()

missing sysfs attribute operations for kobject: <NULL>

Modules linked in: blackfin_cam(+) videodev v4l1_compat vs6624 [last unloaded: vs6624]

Hardware Trace:

   0 Target : <0x001038b4> { _dump_stack + 0x0 }

     Source : <0x0010d31c> { _warn_slowpath + 0x58 } CALL pcrel

   1 Target : <0x0010d31c> { _warn_slowpath + 0x58 }

     Source : <0x00128352> { _print_modules + 0x7a } RTS

   2 Target : <0x0012834c> { _print_modules + 0x74 }

     Source : <0x0010d9d6> { _printk + 0x16 } RTS

   3 Target : <0x0010d9d2> { _printk + 0x12 }

     Source : <0x0010e1fc> { _vprintk + 0x130 } RTS

   4 Target : <0x0010e1dc> { _vprintk + 0x110 }

     Source : <0x0010e320> { _vprintk + 0x254 } JUMP.S

   5 Target : <0x0010e320> { _vprintk + 0x254 }

     Source : <0x0010d846> { _wake_up_klogd + 0x1a } RTS

   6 Target : <0x0010d846> { _wake_up_klogd + 0x1a }

     Source : <0x0010d838> { _wake_up_klogd + 0xc } IF !CC JUMP

   7 Target : <0x0010d82c> { _wake_up_klogd + 0x0 }

     Source : <0x0010dc5c> { _release_console_sem + 0x1ac } JUMP.L

   8 Target : <0x0010dc54> { _release_console_sem + 0x1a4 }

     Source : <0x0010dc48> { _release_console_sem + 0x198 } IF !CC JUMP

   9 Target : <0x0010dc44> { _release_console_sem + 0x194 }

     Source : <0x0010dc36> { _release_console_sem + 0x186 } IF !CC JUMP

  10 Target : <0x0010dc30> { _release_console_sem + 0x180 }

     Source : <0x00120ce4> { _up + 0x3c } RTS

  11 Target : <0x00120cde> { _up + 0x36 }

     Source : <0x00120cd0> { _up + 0x28 } IF !CC JUMP

  12 Target : <0x00120ca8> { _up + 0x0 }

     Source : <0x0010dc2c> { _release_console_sem + 0x17c } CALL pcrel

  13 Target : <0x0010dc18> { _release_console_sem + 0x168 }

     Source : <0x0010db02> { _release_console_sem + 0x52 } IF !CC JUMP

  14 Target : <0x0010dad2> { _release_console_sem + 0x22 }

     Source : <0x0010dbfa> { _release_console_sem + 0x14a } IF !CC JUMP

  15 Target : <0x0010dbf4> { _release_console_sem + 0x144 }

     Source : <0x0010d796> { __call_console_drivers + 0x7e } RTS

Stack info:

NULL pointer access

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=insmod PID=228

CPU = 0

TEXT = 0x00300000-0x0034e8dc        DATA = 0x037b08dc-0x037b417c

BSS = 0x037b417c-0x005c0000  USER-STACK = 0x005dfe50

 

return address: [0x001a635a]; contents of:

0x001a6330:  5801  3006  e300  06e2  0c04  1806  3006  6480

0x001a6340:  300c  e303  5a89  320e  e50a  0047  0c42  1a36

0x001a6350:  0000  e121  0078  e125  0040 [a2d0] 5008  e303

0x001a6360:  678d  320e  e120  0100  5006  e50a  0047  a2d1

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00062027  IPEND: 8030  SYSCFG: 0006

  EXCAUSE   : 0x27

  physical IVG15 asserted : <0xffa00dd0> { _evt_system_call + 0x0 }

  logical irq   6 mapped  : <0xffa00390> { _timer_interrupt + 0x0 }

  logical irq  10 mapped  : <0x001b7394> { _bfin_rtc_interrupt + 0x0 }

  logical irq  16 mapped  : <0x001b9aac> { _bfin_twi_interrupt_entry + 0x0 }

  logical irq  18 mapped  : <0x001a4fc4> { _bfin_serial_dma_rx_int + 0x0 }

  logical irq  19 mapped  : <0x001a4d34> { _bfin_serial_dma_tx_int + 0x0 }

  logical irq  24 mapped  : <0x001ae158> { _bfin_mac_interrupt + 0x0 }

RETE: <0x00000000> { _do_one_initcall + 0xfff00000 }

RETN: <0x004cbc28> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x001a6338> { _device_add + 0x390 }

PC  : <0x001a635a> { _device_add + 0x3b2 }

DCPLB_FAULT_ADDR: <0x00000028> /* Maybe null pointer? */

ICPLB_FAULT_ADDR: <0x001a635a> { _device_add + 0x3b2 }

 

PROCESSOR STATE:

R0 : 005e5804    R1 : 00000078    R2 : 00000001    R3 : 00000000

R4 : 00000000    R5 : 00000040    R6 : 005e5804    R7 : 00000000

P0 : 00694780    P1 : 005e5804    P2 : ffffffff    P3 : 00000002

P4 : 004c6544    P5 : 004c65c8    FP : 00000000    SP : 004cbb4c

LB0: ffa01820    LT0: ffa0181e    LC0: 00000000

LB1: 001bf2ca    LT1: 001bf2c6    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : b7ff9001

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000005

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 00000000   A0.x: 00000000   A1.w: 00000000   A1.x: 00000000

USP : 005dfce4  ASTAT: 02003005

 

Hardware Trace:

 

Kernel Stack

Stack info:

SP: [0x004cbad4] <0x004cbad4> /* kernel dynamic memory */

FP: (0x004cbacc)

Memory from 0x004cbad0 to 004cc000

004cbad0:<00108c5c>[00000000] 037e9060  0072e040  009ce1e0  004cbb0c <ffa01572> 00000000

004cbaf0: 037e9060  009ce1e0  00000000  ffffffff  00000001  004ca000  004ca000  004cbb88

004cbb10:<00212f98> 004ca000  004ca000  004cbbbc  7fffffff  00000000 <ffa006fe> ffa00c74

004cbb30: ffe02014  00000000  0000ffff  00000040  0024f2d8  00000000 <00274d98> 00000480

004cbb50: 00008030  00062027  00000000  004cbc28  00000480  001a635a <001a6338> 005e5804

004cbb70: 02003005  001bf2ca  ffa01820  001bf2c6  ffa0181e  00000000  00000000  00000000

004cbb90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

004cbbb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

004cbbd0: 00000000  00000005  b7ff9001  005dfce4  00000000  004c65c8  004c6544  00000002

004cbbf0: ffffffff  005e5804  00694780  00000000  005e5804  00000040  00000000  00000000

004cbc10: 00000001  00000078  005e5804  005e5804  00694780  00000006 <001b854a> 00000000

004cbc30: 00000051  00000000  004c658c  303a3138  00000000  004c673c  005e5804  00000000

004cbc50:<004c04e0> 005e5800  00000000  004c673c  005e5804  004c6b3c  005e5930  05100000

004cbc70:<0059e2ec> 037df83c  004c491c  00000000  004c491c  004ce530 <004c0656> 00000002

004cbc90: 005e5c00  004ce530  00000090  0010d9c0  0011d554  037df83c <004cca58> 009d78e0

004cbcb0: 0027f138  ffffffff <004ccad6> 037df87c  004cd348  00000020  004cd320 <001b841e>

004cbcd0: 00000010  00000002  037df83c  00000000  ffffffff  00000010 <00191314> 00000010

004cbcf0: 00424010  00000000  00000000  00000000  00000000 <001b9434> 004ce0a4  00000000

004cbd10: 00000001  004cc8c0  004cd434  037c18a0  00000000 <00211642> 004cc8c0  005dfcf0

004cbd30:<001b8cf4> 004ce034  009bb0a0  005b0df8  037df83c  00000000  004ce034  00000000

004cbd50: 037df83c  0023fd04  004cd770 <001a84fe> 001b8cd8  004cbd7c  004ce060  005b0df8

004cbd70: 00590004  00000000  00000000  0073f9b0  037df97c  00000000 <001b88b4> 004ce034

004cbd90: 00000000  000043f0  00000000  ffa01820  ffa0181e  00000000  001b8cd8 <009bb0fa>

004cbdb0: 004ce030  00590004  005e5ba0  004ca000  004ce400 <00100028> 00268294  00590004

004cbdd0: 004ce448  004cbde8  00000000  00000000  00000000  00000001  009a2458  00000000

004cbdf0: 00000000  00000001 <0017339a> 005e5bf0  009a2458  00000000  0000000a  004ce40c

004cbe10:<00138926> 005e5ba0  00000124  009a2458  005e5bf4 <0012a052> 005e5bc8  005e5a00

004cbe30:<0012a2dc> 005e5bc8  00000015  00000000  02200000  004cbeb0  004cd778  00000007

004cbe50: 00000000  004cbeb4  004cbe58  02202448  02202380  02202420  004cd778  02202128

004cbe70: 02202080  0043d500  022028e0  00000013  00000000  00000047  00000047  001b87f0

004cbe90: 02202128  00000000  00000000  00000000  00000000  00000000  00000000  00000000

004cbeb0: 00000000 <00121118> 004ce400  00590004  000043f0 <0012a432> 004ce400  00000080

004cbed0: 00590004  000043f0  005b0638  00000000  2cd29c00 <0013d24e> 037806a0  03558ea0

004cbef0: ffffe000 <ffa008cc> 0012a3c0  00000000  ffffe000  000000eb <00307e6a> 02239028

004cbf10: 02239120  02239120  000043f0 <00307e6a> 000000eb  0060cf50  00008000  00002000

004cbf30: 00000000  004cc000  0060cf50  0060cf50 <0030a080><ffa00e34> 02003025  009c5853

004cbf50: 009c63d1  009c5852  009c63c4  00000000  00000000  00000000  00000000  00000000

004cbf70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

004cbf90: 00000000 <037843a4><0378439c> 00479adc  00000000  00000000  00000000  0034e8b8

004cbfb0: 005dfedc  005dfce4  005dfcf0  005dfe5c  005dff49  005b0df8  0059c464  0060cf40

004cbfd0: 00000080  037b1d78  005b0638  000000eb <00307e6a> 000043f0  005b0638  000043f0

004cbff0: 00590004  00590004  00000080  00000006  ffc0e14a

Return addresses in stack:

    address : <0x00108c5c> { _deactivate_task + 0x28 }

    address : <0xffa01572> { _schedule + 0x182 }

    address : <0x00212f98> { _schedule_timeout + 0x70 }

    address : <0xffa006fe> { _exception_to_level5 + 0xa2 }

    address : <0x00274d98> /* kernel dynamic memory */

    address : <0x001a6338> { _device_add + 0x390 }

    address : <0x001b854a> { _i2c_master_send + 0x2a }

    address : <0x004c04e0> { :videodev:_video_register_device_index + 0x34c }

    address : <0x0059e2ec> { :vs6624:_get_camops + 0x2ec }

    address : <0x004c0656> { :videodev:_video_register_device + 0x12 }

    address : <0x004cca58> { :blackfin_cam:_bcap_reg_reset + 0xa58 }

    address : <0x004ccad6> { :blackfin_cam:_bcap_reg_reset + 0xad6 }

    address : <0x001b841e> { _i2c_probe_address + 0x36 }

    address : <0x00191314> { _kobject_uevent_env + 0x298 }

    address : <0x001b9434> { _i2c_probe + 0x160 }

    address : <0x00211642> { _klist_next + 0x4e }

    address : <0x001b8cf4> { ___attach_adapter + 0x1c }

    address : <0x001a84fe> { _class_for_each_device + 0x42 }

    address : <0x001b88b4> { _i2c_register_driver + 0xc4 }

    address : <0x009bb0fa> { :blackfin_cam:_init_module + 0x5a }

    address : <0x00100028> { _do_one_initcall + 0x28 }

    address : <0x0017339a> { _internal_create_group + 0xbe }

    address : <0x00138926> { _kstrdup + 0x1e }

    address : <0x0012a052> { _load_module + 0xd56 }

    address : <0x0012a2dc> { _load_module + 0xfe0 }

    address : <0x00121118> { _blocking_notifier_call_chain + 0x10 }

    address : <0x0012a432> { _sys_init_module + 0x72 }

    address : <0x0013d24e> { _sys_close + 0x66 }

    address : <0xffa008cc> { _system_call + 0x68 }

    address : <0x00307e6a> [ /bin/busybox + 0x7e6a ]

    address : <0x00307e6a> [ /bin/busybox + 0x7e6a ]

    address : <0x0030a080> [ /bin/busybox + 0xa080 ]

    address : <0xffa00e34> { _evt_system_call + 0x64 }

    address : <0x037843a4> [ modprobe + 0x3a4 ]

    address : <0x0378439c> [ modprobe + 0x39c ]

    address : <0x00307e6a> [ /bin/busybox + 0x7e6a ]

Modules linked in: blackfin_cam(+) videodev v4l1_compat vs6624 [last unloaded: vs6624]

Kernel panic - not syncing: Kernel exception

--

 

Follow-ups

 

--- Michael Hennerich                                        2009-01-09 10:14:48

fixed on trunk.

-Michael

 

--- Vivi Li                                                  2009-01-20 01:35:10

OK. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.kernel_camera    application/octet-stream    33517    Vivi Li

Attachments

Outcomes