Kernel crashing while initializing scsi device
I'm currently working on Broadcom 7405 chip-set. The default kernel provided with the reference software is 2.6.18. 
I was trying to build kernel 2.6.37 for this 7405 chip-set, but was getting crashed with the following logs.

    ata1.00: ATA-8: WDC WD3200AVVS-56L2B0, 01.03A01, max UDMA/133
    ata1.00: 625142448 sectors, multi 16: LBA48 NCQ (depth 0/32)
    ata1.00: ata_dev_set_mode : configured for UDMA/133
    scsi 0:0:0:0: Direct-Access     ATA      WDC WD3200AVVS-5 01.0 PQ: 0 ANSI: 5
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    CPU 1 Unable to handle kernel paging request at virtual address 000031ac, epc ==
     800fe854, ra == 800fe6a8
    Oops[#1]:
    Cpu 1
    $ 0   : 00000000 10008b00 00000017 8050b364
    $ 4   : 80b28128 10008b00 00000150 00001e6e
    $ 8   : 00000010 0000000a 00000001 00000000
    $12   : 0000001e 83d4101c ffffffff 83120b88
    $16   : 00000020 8316c000 8328dbd4 00000001
    $20   : 00000000 8316c000 8316c000 83284800
    $24   : 00000018 8028ea30
    $28   : 83146000 83147b60 00000002 800fe6a8
    Hi    : 00000000
    Lo    : 00000000
    epc   : 800fe854 bio_copy_user_iov+0x204/0x578
        Not tainted
    ra    : 800fe6a8 bio_copy_user_iov+0x58/0x578
    Status: 10008b03    KERNEL EXL IE
    Cause : 00800008
    BadVA : 000031ac
    PrId  : 0002a044 (Broadcom BMIPS4380)
    Modules linked in:
    Process kworker/u:2 (pid: 319, threadinfo=83146000, task=83cf71f8, tls=00000000)
    Stack : 83147bb4 00000001 0000014e 00001e5a 8328dbd4 83147d18 00000000 8316c000
            8316c000 83284800 00000020 8316c000 8328dbd4 83147d18 00000000 8316c000
            8316c000 83284800 00000002 800fec24 8328dbd4 00000000 83147bc8 00000020
            00000001 00000010 8316c000 00000020 00000000 8043d084 8316c000 83177d0c
            83284800 800fec8c 00000020 83284800 83147d18 00000000 00000001 00000010
            ...
    Call Trace:
    [<800fe854>] bio_copy_user_iov+0x204/0x578
    [<800fec24>] bio_copy_user+0x5c/0x74
    [<800fec8c>] bio_copy_kern+0x50/0x16c
    [<802329fc>] blk_rq_map_kern+0xa0/0x168
    [<802ac8f4>] scsi_execute+0x6c/0x194
    [<802acab4>] scsi_execute_req+0x98/0x118
    [<802b66d0>] read_capacity_16+0x100/0x574
    [<802b6f0c>] sd_revalidate_disk+0x3c8/0x1a30
    [<802b864c>] sd_probe_async+0xd8/0x1fc
    [<80063154>] async_run_entry_fn+0x98/0x294
    [<80050a24>] process_one_work+0x194/0x5e0
    [<8005361c>] worker_thread+0x1dc/0x57c
    [<80059188>] kthread+0x88/0x90
    [<800079e4>] kernel_thread_helper+0x10/0x18
    
    
    Code: 00400000  fe00003e  00000000 <800231ac> 00000000  800233a0  00000000  8004
    06cc  00009f49
    Disabling lock debugging due to kernel taint
    CPU 1 Unable to handle kernel paging request at virtual address fffffffc, epc ==
     8005949c, ra == 800542f8
    Oops[#2]:
    Cpu 1
    $ 0   : 00000000 10008b00 00000000 00000000
    $ 4   : 83cf71f8 00000001 832906c0 83cf6ecc
    $ 8   : 00000010 8024b7a0 83ca2cd8 00000000
    $12   : 6564206b 831477b8 0000000f 67677562
    $16   : 8120d380 83cf71f8 80b1f380 80b21580
    $20   : 00000001 00010000 80b2fc30 00000004
    $24   : 00000000 8028ea30
    $28   : 83146000 831478d0 83cf735c 800542f8
    Hi    : 003ffd82
    Lo    : 77460c30
    epc   : 8005949c kthread_data+0x4/0xc
        Tainted: G      D
    ra    : 800542f8 wq_worker_sleeping+0x14/0x150
    Status: 10008b02    KERNEL EXL
    Cause : 80800008
    BadVA : fffffffc
    PrId  : 0002a044 (Broadcom BMIPS4380)
    Modules linked in:
    Process kworker/u:2 (pid: 319, threadinfo=83146000, task=83cf71f8, tls=00000000)
    Stack : 00123d75 83292ee0 83284400 8023a700 00000001 0000000b 83cf761c 8043d884
            8050d180 83284400 832918c8 8023a828 80500000 83c2fa18 80b1e9e0 83cf71f8
            80b1f380 83cf735c 80b1f380 80b1f380 8023a740 802394bc 00000000 83cf71f8
            00000000 800399a4 83cf71f8 832906c0 83cf71f8 0000000b 83cf71f0 83c2fa18
            83147978 83cf72e0 83cf72e0 00000000 00000002 8003c08c 83147ab0 80b20000
            ...
    Call Trace:
    [<8005949c>] kthread_data+0x4/0xc
    [<800542f8>] wq_worker_sleeping+0x14/0x150
    [<8043d884>] schedule+0x6a4/0xa98
    [<8003c08c>] do_exit+0x4d8/0x74c
    [<8000c174>] die+0x13c/0x168
    [<80011e9c>] do_page_fault+0x2ac/0x330
    [<800057e0>] ret_from_exception+0x0/0x24
    [<800fe854>] bio_copy_user_iov+0x204/0x578
    [<800fec24>] bio_copy_user+0x5c/0x74
    [<800fec8c>] bio_copy_kern+0x50/0x16c
    [<802329fc>] blk_rq_map_kern+0xa0/0x168
    [<802ac8f4>] scsi_execute+0x6c/0x194
    [<802acab4>] scsi_execute_req+0x98/0x118
    [<802b66d0>] read_capacity_16+0x100/0x574
    [<802b6f0c>] sd_revalidate_disk+0x3c8/0x1a30
    [<802b864c>] sd_probe_async+0xd8/0x1fc
    [<80063154>] async_run_entry_fn+0x98/0x294
    [<80050a24>] process_one_work+0x194/0x5e0
    [<8005361c>] worker_thread+0x1dc/0x57c
    [<80059188>] kthread+0x88/0x90
    [<800079e4>] kernel_thread_helper+0x10/0x18
    
    
    Code: 03e00008  27bd0050  8c820138 <03e00008> 8c42fffc  27bdffc8  afbf0034  afb7
    0030  afb6002c

==================================================================================

Can anybody tell me the reason behind this ?

Kernel crashing while initializing scsi device
===

I'm currently working on Broadcom 7405 chip-set. The default kernel provided with the reference software is 2.6.18. 
I was trying to build kernel 2.6.37 for this 7405 chip-set, but was getting crashed with the following logs.

    ata1.00: ATA-8: WDC WD3200AVVS-56L2B0, 01.03A01, max UDMA/133
    ata1.00: 625142448 sectors, multi 16: LBA48 NCQ (depth 0/32)
    ata1.00: ata_dev_set_mode : configured for UDMA/133
    scsi 0:0:0:0: Direct-Access     ATA      WDC WD3200AVVS-5 01.0 PQ: 0 ANSI: 5
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    CPU 1 Unable to handle kernel paging request at virtual address 000031ac, epc ==
     800fe854, ra == 800fe6a8
    Oops[#1]:
    Cpu 1
    $ 0   : 00000000 10008b00 00000017 8050b364
    $ 4   : 80b28128 10008b00 00000150 00001e6e
    $ 8   : 00000010 0000000a 00000001 00000000
    $12   : 0000001e 83d4101c ffffffff 83120b88
    $16   : 00000020 8316c000 8328dbd4 00000001
    $20   : 00000000 8316c000 8316c000 83284800
    $24   : 00000018 8028ea30
    $28   : 83146000 83147b60 00000002 800fe6a8
    Hi    : 00000000
    Lo    : 00000000
    epc   : 800fe854 bio_copy_user_iov+0x204/0x578
        Not tainted
    ra    : 800fe6a8 bio_copy_user_iov+0x58/0x578
    Status: 10008b03    KERNEL EXL IE
    Cause : 00800008
    BadVA : 000031ac
    PrId  : 0002a044 (Broadcom BMIPS4380)
    Modules linked in:
    Process kworker/u:2 (pid: 319, threadinfo=83146000, task=83cf71f8, tls=00000000)
    Stack : 83147bb4 00000001 0000014e 00001e5a 8328dbd4 83147d18 00000000 8316c000
            8316c000 83284800 00000020 8316c000 8328dbd4 83147d18 00000000 8316c000
            8316c000 83284800 00000002 800fec24 8328dbd4 00000000 83147bc8 00000020
            00000001 00000010 8316c000 00000020 00000000 8043d084 8316c000 83177d0c
            83284800 800fec8c 00000020 83284800 83147d18 00000000 00000001 00000010
            ...
    Call Trace:
    [<800fe854>] bio_copy_user_iov+0x204/0x578
    [<800fec24>] bio_copy_user+0x5c/0x74
    [<800fec8c>] bio_copy_kern+0x50/0x16c
    [<802329fc>] blk_rq_map_kern+0xa0/0x168
    [<802ac8f4>] scsi_execute+0x6c/0x194
    [<802acab4>] scsi_execute_req+0x98/0x118
    [<802b66d0>] read_capacity_16+0x100/0x574
    [<802b6f0c>] sd_revalidate_disk+0x3c8/0x1a30
    [<802b864c>] sd_probe_async+0xd8/0x1fc
    [<80063154>] async_run_entry_fn+0x98/0x294
    [<80050a24>] process_one_work+0x194/0x5e0
    [<8005361c>] worker_thread+0x1dc/0x57c
    [<80059188>] kthread+0x88/0x90
    [<800079e4>] kernel_thread_helper+0x10/0x18
    
    
    Code: 00400000  fe00003e  00000000 <800231ac> 00000000  800233a0  00000000  8004
    06cc  00009f49
    Disabling lock debugging due to kernel taint
    CPU 1 Unable to handle kernel paging request at virtual address fffffffc, epc ==
     8005949c, ra == 800542f8
    Oops[#2]:
    Cpu 1
    $ 0   : 00000000 10008b00 00000000 00000000
    $ 4   : 83cf71f8 00000001 832906c0 83cf6ecc
    $ 8   : 00000010 8024b7a0 83ca2cd8 00000000
    $12   : 6564206b 831477b8 0000000f 67677562
    $16   : 8120d380 83cf71f8 80b1f380 80b21580
    $20   : 00000001 00010000 80b2fc30 00000004
    $24   : 00000000 8028ea30
    $28   : 83146000 831478d0 83cf735c 800542f8
    Hi    : 003ffd82
    Lo    : 77460c30
    epc   : 8005949c kthread_data+0x4/0xc
        Tainted: G      D
    ra    : 800542f8 wq_worker_sleeping+0x14/0x150
    Status: 10008b02    KERNEL EXL
    Cause : 80800008
    BadVA : fffffffc
    PrId  : 0002a044 (Broadcom BMIPS4380)
    Modules linked in:
    Process kworker/u:2 (pid: 319, threadinfo=83146000, task=83cf71f8, tls=00000000)
    Stack : 00123d75 83292ee0 83284400 8023a700 00000001 0000000b 83cf761c 8043d884
            8050d180 83284400 832918c8 8023a828 80500000 83c2fa18 80b1e9e0 83cf71f8
            80b1f380 83cf735c 80b1f380 80b1f380 8023a740 802394bc 00000000 83cf71f8
            00000000 800399a4 83cf71f8 832906c0 83cf71f8 0000000b 83cf71f0 83c2fa18
            83147978 83cf72e0 83cf72e0 00000000 00000002 8003c08c 83147ab0 80b20000
            ...
    Call Trace:
    [<8005949c>] kthread_data+0x4/0xc
    [<800542f8>] wq_worker_sleeping+0x14/0x150
    [<8043d884>] schedule+0x6a4/0xa98
    [<8003c08c>] do_exit+0x4d8/0x74c
    [<8000c174>] die+0x13c/0x168
    [<80011e9c>] do_page_fault+0x2ac/0x330
    [<800057e0>] ret_from_exception+0x0/0x24
    [<800fe854>] bio_copy_user_iov+0x204/0x578
    [<800fec24>] bio_copy_user+0x5c/0x74
    [<800fec8c>] bio_copy_kern+0x50/0x16c
    [<802329fc>] blk_rq_map_kern+0xa0/0x168
    [<802ac8f4>] scsi_execute+0x6c/0x194
    [<802acab4>] scsi_execute_req+0x98/0x118
    [<802b66d0>] read_capacity_16+0x100/0x574
    [<802b6f0c>] sd_revalidate_disk+0x3c8/0x1a30
    [<802b864c>] sd_probe_async+0xd8/0x1fc
    [<80063154>] async_run_entry_fn+0x98/0x294
    [<80050a24>] process_one_work+0x194/0x5e0
    [<8005361c>] worker_thread+0x1dc/0x57c
    [<80059188>] kthread+0x88/0x90
    [<800079e4>] kernel_thread_helper+0x10/0x18
    
    
    Code: 03e00008  27bd0050  8c820138 <03e00008> 8c42fffc  27bdffc8  afbf0034  afb7
    0030  afb6002c

==================================================================================

Can anybody tell me the reason behind this ?
