* 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 17:34 ` Adrian Bunk
2 siblings, 0 replies; 7+ 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] 7+ 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
2005-04-04 17:34 ` Adrian Bunk
2 siblings, 1 reply; 7+ 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] 7+ 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; 7+ 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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ALSA bugs with 2.6.12-rc1
@ 2005-04-04 18:39 ` Jaroslav Kysela
0 siblings, 0 replies; 7+ 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] 7+ 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 17:34 ` Adrian Bunk
2 siblings, 0 replies; 7+ 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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 7+ messages in thread