Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugtrack@alsa-project.org
To: alsa-devel@alsa-project.org
Subject: [ALSA - driver 0001623]: Kernel oopsed when modprobing snd_mpu401 module
Date: Wed, 7 Dec 2005 15:31:47 +0100	[thread overview]
Message-ID: <69cdd25dcdeda24fb42a2fa81c44397b@bugtrack.alsa-project.org> (raw)


A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1623> 
======================================================================
Reported By:                cartman
Assigned To:                
======================================================================
Project:                    ALSA - driver
Issue ID:                   1623
Category:                   GENERIC - mpu401
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               Pardus Linux
Kernel Version:             2.6.14
======================================================================
Date Submitted:             12-06-2005 19:50 CET
Last Modified:              12-07-2005 15:31 CET
======================================================================
Summary:                    Kernel oopsed when modprobing snd_mpu401 module
Description: 
When I try to modprobe snd_mpu401 I get this:


Unable to handle kernel NULL pointer dereference at virtual address
00000000
 printing eip:
00000000
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: snd_mpu401 snd_opl3_lib snd_hwdep snd_cs4231_lib
parport_pc
parport i2c_viapro i2c_core via_agp agpgart snd_seq_dummy snd_seq_oss
snd_seq_midi_event snd_seq snd_pcm_oss snd_mixer_oss snd_via82xx
snd_ac97_codec
snd_ac97_bus snd_pcm snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi
snd_seq_device snd sbp2 ohci1394 ieee1394 usb_storage uhci_hcd ohci_hcd
ehci_hcd
usbcore sata_sil sata_nv sata_mv sata_promise sata_sis sata_svw sata_via
sata_uli sata_vsc sata_sx4 sym53c8xx sg a100u2w scsi_transport_sas dc395x
tmscsim ahci BusLogic aacraid sr_mod 3w_xxxx lpfc qla1280 ipr st ch
megaraid
megaraid_mbox megaraid_mm megaraid_sas dmx3191d atp870u nsp32 aic7xxx
aic79xx
scsi_transport_spi osst qlogicfas408 ata_piix libata 3w_9xxx aha152x
qla6312
qla2200 qla2322 qla2100 qla2300 qla2xxx firmware_class scsi_transport_fc
sd_mod
scsi_mod
CPU:    0
EIP:    0060:[<00000000>]    Not tainted VLI
EFLAGS: 00010286   (2.6.14.3-10)
EIP is at rest_init+0x3feffdc0/0x40
eax: ccbf3e00   ebx: 00000000   ecx: d244d1b4   edx: d244d1b4
esi: d244d1b4   edi: ccbf3e08   ebp: ccbf3e08   esp: cba15db8
ds: 007b   es: 007b   ss: 0068
Process modprobe (pid: 9771, threadinfo=cba14000 task=cee87a50)
Stack: d2442011 ccbf3e00 c03031ca ccbf3e08 00000000 cba15dec c0303230
c030323f
       d244d1b4 ccbf3e08 c0302a5d d244d1b4 ccbf3e08 c04264f8 c04264f8
d244d20c
       ccbf3eb2 ccbf3e08 c0426400 ccbf3e08 00000000 c030329b c0426400
00000000
Call Trace:
 [<d2442011>] snd_platform_driver_probe+0x11/0x20 [snd]
 [<c03031ca>] driver_probe_device+0x2a/0x90
 [<c0303230>] __device_attach+0x0/0x20
 [<c030323f>] __device_attach+0xf/0x20
 [<c0302a5d>] bus_for_each_drv+0x4d/0x70
 [<c030329b>] device_attach+0x4b/0x60
 [<c0303230>] __device_attach+0x0/0x20
 [<c0302b83>] bus_add_device+0x23/0x90
 [<c0301cb6>] device_add+0xa6/0x120
 [<c0301d41>] device_register+0x11/0x20
 [<c0304889>] platform_device_register+0x119/0x170
 [<d244386f>] snd_generic_device_register+0x4f/0x90 [snd]
 [<d24438eb>] snd_card_set_generic_dev+0xb/0x30 [snd]
 [<d25680e8>] snd_mpu401_create+0xe8/0x160 [snd_mpu401]
 [<c02f1b07>] compare_pnp_id+0x77/0x90
 [<d2568207>] snd_mpu401_pnp_probe+0x57/0x90 [snd_mpu401]
 [<c02f1c85>] pnp_device_probe+0x75/0xa0
 [<c03031ca>] driver_probe_device+0x2a/0x90
 [<c03032b0>] __driver_attach+0x0/0x40
 [<c03032eb>] __driver_attach+0x3b/0x40
 [<c030294d>] bus_for_each_dev+0x4d/0x70
 [<c0291102>] kobject_add+0x72/0xc0
 [<c0303305>] driver_attach+0x15/0x20
 [<c03032b0>] __driver_attach+0x0/0x40
 [<c0302d9b>] bus_add_driver+0x5b/0xa0
 [<c03036d4>] driver_register+0x34/0x40
 [<c02f1d4f>] pnp_register_driver+0x2f/0x60
 [<d231b14a>] alsa_card_mpu401_init+0x4a/0x92 [snd_mpu401]
 [<c01388a2>] sys_init_module+0x122/0x1f0
 [<c0102f2b>] sysenter_past_esp+0x54/0x79
Code:  Bad EIP value.

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

----------------------------------------------------------------------
 vsu - 12-07-05 13:41 
----------------------------------------------------------------------
This problem happens with alsa-driver-1.0.10 on 2.6.x kernels <= 2.6.14
(which don't have platform_driver_register()).  The problem is that
snd_platform_driver_probe() does not check for non-NULL drv->probe before
calling it, and platfor_driver_register() emulation code always sets
drv->driver.probe = snd_platform_driver_probe even if drv->probe is NULL.

I have attached a patch for alsa-driver-1.0.10 which should fix this.

----------------------------------------------------------------------
 cartman - 12-07-05 15:31 
----------------------------------------------------------------------
Thank you Sergey, your patch fixed this issue. Takashi can you please add
the patch to upstream CVS? Thanks.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
12-06-05 19:50 cartman        New Issue                                    
12-06-05 19:50 cartman        Distribution              => Pardus Linux    
12-06-05 19:50 cartman        Kernel Version            => 2.6.14          
12-06-05 19:57 tiwai          Note Added: 0006932                          
12-06-05 20:05 cartman        Note Added: 0006933                          
12-06-05 20:10 tiwai          Note Added: 0006936                          
12-07-05 13:39 vsu            File Added: 00_platform_device_compat.patch       
            
12-07-05 13:41 vsu            Note Added: 0006940                          
12-07-05 15:31 cartman        Note Added: 0006942                          
======================================================================




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

             reply	other threads:[~2005-12-07 14:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-07 14:31 bugtrack [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-12-07 15:16 [ALSA - driver 0001623]: Kernel oopsed when modprobing snd_mpu401 module bugtrack
2005-12-07 12:41 bugtrack
2005-12-06 19:10 bugtrack
2005-12-06 19:05 bugtrack
2005-12-06 18:57 bugtrack
2005-12-06 18:50 bugtrack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69cdd25dcdeda24fb42a2fa81c44397b@bugtrack.alsa-project.org \
    --to=bugtrack@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox