From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756021AbcBCOmT (ORCPT ); Wed, 3 Feb 2016 09:42:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:48058 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751090AbcBCOmS (ORCPT ); Wed, 3 Feb 2016 09:42:18 -0500 Date: Wed, 03 Feb 2016 15:42:17 +0100 Message-ID: From: Takashi Iwai To: Dmitry Vyukov Cc: alsa-devel@alsa-project.org, Jaroslav Kysela , LKML , Alexander Potapenko , Kostya Serebryany , syzkaller , Sasha Levin Subject: Re: sound: another WARNING in rawmidi_transmit_ack In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.5 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 03 Feb 2016 14:21:05 +0100, Dmitry Vyukov wrote: > > On Wed, Feb 3, 2016 at 8:15 AM, Takashi Iwai wrote: > > On Tue, 02 Feb 2016 22:59:49 +0100, > > Dmitry Vyukov wrote: > >> > >> On Mon, Feb 1, 2016 at 12:55 PM, Takashi Iwai wrote: > >> > On Mon, 01 Feb 2016 12:31:20 +0100, > >> > Dmitry Vyukov wrote: > >> >> > >> >> Hello, > >> >> > >> >> The following program triggers a splash of WARNINGs in rawmidi_transmit_ack. > >> >> Takashi, I am on commit 36f90b0a2ddd60823fe193a85e60ff1906c2a9b3 + a > >> >> bunch of your recent fixes: > >> >> https://gist.githubusercontent.com/dvyukov/40640128a433ad16a56a/raw/ab3a08637ce3654b969b778c5700fe4a80f14456/gistfile1.txt > >> > > >> > Ouch, this is another spot with an open race between > >> > snd_rawmidi_transmit_peek() and snd_rawmidi_transmit_ack(). > >> > > >> > Could you drop the previous fix and apply the one below instead? > >> > > >> > FWIW, I pushed sound.git tree topic/core-fixes branch containing all > >> > pending fixes. This should be pullable cleanly onto 4.5-rc1/rc2. > >> > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/core-fixes > >> > > >> > > >> > Thanks! > >> > > >> > Takashi > >> > >> > >> Now this program hangs the machine with: > > > > Mea culpa, the spinlock was applied at the wrong place. > > Below is the revised patch. I updated topic/core-fixes branch as > > well. > > > re-applied > the reproducer does not trigger any issues now Good, this was queued, too. Thanks! Takashi