Re: 2.6.7-mm6: system hang with KAMix on dual Opteron w/ NUMA

From: R. J. Wysocki
Date: Thu Jul 08 2004 - 16:43:27 EST


On Thursday 08 of July 2004 23:21, Andrew Morton wrote:
> "R. J. Wysocki" <rjwysocki@xxxxxxx> wrote:
> > I've just discovered that I'm (consistently) able to hang the system
> > solid by trying to adjust the sound volume using KAMix on 2.6.7-mm6 (SuSE
> > 9.1/ AMD64).
>
> Please ensure that your kernel has this patch:
>
> --- 25/sound/core/control.c~snd_ctl_read-locking-fix-fix 2004-07-06
> 21:27:51.618683360 -0700 +++ 25-akpm/sound/core/control.c 2004-07-06
> 21:27:51.622682752 -0700 @@ -1116,7 +1116,7 @@ static ssize_t
> snd_ctl_read(struct file
> wait_queue_t wait;
> if ((file->f_flags & O_NONBLOCK) != 0 || result > 0) {
> err = -EAGAIN;
> - goto out;
> + goto __end;
> }
> init_waitqueue_entry(&wait, current);
> add_wait_queue(&ctl->change_sleep, &wait);
> @@ -1137,7 +1137,7 @@ static ssize_t snd_ctl_read(struct file
> kfree(kev);
> if (copy_to_user(buffer, &ev, sizeof(snd_ctl_event_t))) {
> err = -EFAULT;
> - goto __end;
> + goto out;
> }
> spin_lock_irq(&ctl->read_lock);
> buffer += sizeof(snd_ctl_event_t);
> _

It hadn't and the patch fixed the issue. :-)

Thanks,
rjw

--
Rafael J. Wysocki
----------------------------
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.
-- Richard P. Feynman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/