linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ALSA bugs with 2.6.12-rc1
@ 2005-04-04 14:46 David Ford
  2005-04-04 17:08 ` Daniel Drake
  0 siblings, 1 reply; 5+ messages in thread
From: David Ford @ 2005-04-04 14:46 UTC (permalink / raw)
  To: linux-kernel mailing list

It seems that 2.6.12-rc1 introduced an ALSA bug generating an oops for a 
null pointer.

codec_semaphore: semaphore is not ready [0x1][0x300300]
codec_read 0: semaphore is not ready for register 0x2c
Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
c01d7746
*pde = 00000000
Oops: 0002 [#1]
PREEMPT
Modules linked in: orinoco_cs orinoco hermes pcmcia yenta_socket 
rsrc_nonstatic pcmcia_core vfat fat nls_base i2c_sensor i2c_core eth1394 
ohci1394 ieee1394 i8k
CPU:    0
EIP:    0060:[<c01d7746>]    Not tainted VLI
EFLAGS: 00010202   (2.6.12-rc1)
EIP is at memcpy+0x1e/0x39
eax: 00000010   ebx: e7608180   ecx: 00000004   edx: 00000000
esi: e13d1ee4   edi: 00000000   ebp: bf924390   esp: e13d1eb4
ds: 007b   es: 007b   ss: 0068
Process artsd (pid: 11880, threadinfo=e13d1000 task=e1436590)
Stack: ffffffea ffffffea e13d1ef4 c02b8793 00000000 e13d1ee4 00000010 
e7608180
       c02b954d e7608180 e13d1ee4 00000050 00000006 00000000 00000000 
00000000
       00000005 00000001 00000000 00000000 00008002 00000000 00000000 
00000000
Call Trace:
 [<c02b8793>] snd_timer_user_append_to_tqueue+0x40/0x49
 [<c02b954d>] snd_timer_user_params+0x236/0x245
 [<c016f152>] do_ioctl+0x9a/0xa9
 [<c016f2ef>] vfs_ioctl+0x65/0x1e1
 [<c015bc34>] get_unused_fd+0x2c/0xd2
 [<c016f4b0>] sys_ioctl+0x45/0x6d
 [<c0102f87>] sysenter_past_esp+0x54/0x75
Code: fd 31 c0 c3 31 d2 b8 f2 ff ff ff c3 90 83 ec 0c 8b 44 24 18 8b 54 
24 10 89 74 24 04 89 c1 89 7c 24 08 8b 74 24 14 c1 e9 02 89 d7 <f3> a5 
a8 02 74 02 66 a5 a8 01 74 01 a4 89 d0 8b 74 24 04 8b 7c
 codec_semaphore: semaphore is not ready [0x1][0x300300]
codec_read 1: semaphore is not ready for register 0x54
codec_semaphore: semaphore is not ready [0x1][0x300300]
codec_write 1: semaphore is not ready for register 0x54


This happens on multiple machines, 32b and 64bit.  I'll be happy to 
provide further information if needed.

-david


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ALSA bugs with 2.6.12-rc1
  2005-04-04 14:46 ALSA bugs with 2.6.12-rc1 David Ford
@ 2005-04-04 17:08 ` Daniel Drake
  2005-04-04 17:26   ` Takashi Iwai
  2005-04-04 17:34   ` Adrian Bunk
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Drake @ 2005-04-04 17:08 UTC (permalink / raw)
  To: David Ford; +Cc: linux-kernel mailing list

David Ford wrote:
> It seems that 2.6.12-rc1 introduced an ALSA bug generating an oops for a
> null pointer.
> 
> codec_semaphore: semaphore is not ready [0x1][0x300300]
> codec_read 0: semaphore is not ready for register 0x2c
> Unable to handle kernel NULL pointer dereference at virtual address
> 00000000
> 
> This happens on multiple machines, 32b and 64bit.  I'll be happy to
> provide further information if needed.

This only happens when you mismatch your kernel and alsa-lib versions, e.g.
running alsa-lib-1.0.9-rc2 with alsa-1.0.8 in-kernel drivers, or possibly
vice-versa.

Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ALSA bugs with 2.6.12-rc1
  2005-04-04 17:08 ` Daniel Drake
@ 2005-04-04 17:26   ` Takashi Iwai
  2005-04-04 17:34   ` Adrian Bunk
  1 sibling, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2005-04-04 17:26 UTC (permalink / raw)
  To: Daniel Drake; +Cc: David Ford, linux-kernel mailing list

At Mon, 04 Apr 2005 18:08:43 +0100,
Daniel Drake wrote:
> 
> David Ford wrote:
> > It seems that 2.6.12-rc1 introduced an ALSA bug generating an oops for a
> > null pointer.
> > 
> > codec_semaphore: semaphore is not ready [0x1][0x300300]
> > codec_read 0: semaphore is not ready for register 0x2c
> > Unable to handle kernel NULL pointer dereference at virtual address
> > 00000000
> > 
> > This happens on multiple machines, 32b and 64bit.  I'll be happy to
> > provide further information if needed.
> 
> This only happens when you mismatch your kernel and alsa-lib versions, e.g.
> running alsa-lib-1.0.9-rc2 with alsa-1.0.8 in-kernel drivers, or possibly
> vice-versa.

Only the former case (kernel < lib).

It's already fixed in linux-sound bk tree.  The relevant patch is
below.  The patch was already submitted to stable, too.


Takashi


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/03/22 09:01:11+01:00 perex@suse.cz 
#   [ALSA] Fix Oops with timer notifying
#   
#   Timer Midlevel
#   Fixed Oops with timer notifying after TIMER_TREAD ioctl.
#   
#   Signed-off-by: Takashi Iwai <tiwai@suse.de>
# 
# sound/core/timer.c
#   2005/03/15 04:25:51+01:00 perex@suse.cz +2 -1
#   [ALSA] Fix Oops with timer notifying
#   
#   D:2005/03/15 11:25:51
#   C:Timer Midlevel
#   F:core/timer.c:1.65->1.66 
#   L:Fixed Oops with timer notifying after TIMER_TREAD ioctl.
#   Signed-off-by: Takashi Iwai <tiwai@suse.de>
# 
diff -Nru a/sound/core/timer.c b/sound/core/timer.c
--- a/sound/core/timer.c	2005-04-04 19:25:12 +02:00
+++ b/sound/core/timer.c	2005-04-04 19:25:12 +02:00
@@ -1117,7 +1117,8 @@
 	if (tu->qused >= tu->queue_size) {
 		tu->overrun++;
 	} else {
-		memcpy(&tu->queue[tu->qtail++], tread, sizeof(*tread));
+		memcpy(&tu->tqueue[tu->qtail++], tread, sizeof(*tread));
+		tu->qtail %= tu->queue_size;
 		tu->qused++;
 	}
 }

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ALSA bugs with 2.6.12-rc1
  2005-04-04 17:08 ` Daniel Drake
  2005-04-04 17:26   ` Takashi Iwai
@ 2005-04-04 17:34   ` Adrian Bunk
  2005-04-04 18:39     ` Jaroslav Kysela
  1 sibling, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2005-04-04 17:34 UTC (permalink / raw)
  To: Daniel Drake, perex; +Cc: David Ford, linux-kernel mailing list, alsa-devel

On Mon, Apr 04, 2005 at 06:08:43PM +0100, Daniel Drake wrote:
> David Ford wrote:
> > It seems that 2.6.12-rc1 introduced an ALSA bug generating an oops for a
> > null pointer.
> > 
> > codec_semaphore: semaphore is not ready [0x1][0x300300]
> > codec_read 0: semaphore is not ready for register 0x2c
> > Unable to handle kernel NULL pointer dereference at virtual address
> > 00000000
> > 
> > This happens on multiple machines, 32b and 64bit.  I'll be happy to
> > provide further information if needed.
> 
> This only happens when you mismatch your kernel and alsa-lib versions, e.g.
> running alsa-lib-1.0.9-rc2 with alsa-1.0.8 in-kernel drivers, or possibly
> vice-versa.

Are you saying the userspace interface of the ALSA kernel drivers has 
incompatible changes between minor versions of ALSA?

If this is true, that's a serious bug.

> Daniel

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ALSA bugs with 2.6.12-rc1
  2005-04-04 17:34   ` Adrian Bunk
@ 2005-04-04 18:39     ` Jaroslav Kysela
  0 siblings, 0 replies; 5+ messages in thread
From: Jaroslav Kysela @ 2005-04-04 18:39 UTC (permalink / raw)
  To: Adrian Bunk
  Cc: Daniel Drake, David Ford, linux-kernel mailing list, ALSA development

On Mon, 4 Apr 2005, Adrian Bunk wrote:

> On Mon, Apr 04, 2005 at 06:08:43PM +0100, Daniel Drake wrote:
> > David Ford wrote:
> > > It seems that 2.6.12-rc1 introduced an ALSA bug generating an oops for a
> > > null pointer.
> > > 
> > > codec_semaphore: semaphore is not ready [0x1][0x300300]
> > > codec_read 0: semaphore is not ready for register 0x2c
> > > Unable to handle kernel NULL pointer dereference at virtual address
> > > 00000000
> > > 
> > > This happens on multiple machines, 32b and 64bit.  I'll be happy to
> > > provide further information if needed.
> > 
> > This only happens when you mismatch your kernel and alsa-lib versions, e.g.
> > running alsa-lib-1.0.9-rc2 with alsa-1.0.8 in-kernel drivers, or possibly
> > vice-versa.
> 
> Are you saying the userspace interface of the ALSA kernel drivers has 
> incompatible changes between minor versions of ALSA?
> 
> If this is true, that's a serious bug.

Nope, but newer alsa-lib use an ALSA timer API feature which was not well 
debugged. This oops should be fixed in 2.6.12-rc2 and older libraries will 
work with newer kernels as well.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-04 18:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-04 14:46 ALSA bugs with 2.6.12-rc1 David Ford
2005-04-04 17:08 ` Daniel Drake
2005-04-04 17:26   ` Takashi Iwai
2005-04-04 17:34   ` Adrian Bunk
2005-04-04 18:39     ` Jaroslav Kysela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).