Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00E81C4338F for ; Mon, 2 Aug 2021 19:54:56 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D7D2B61037 for ; Mon, 2 Aug 2021 19:54:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D7D2B61037 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=vanheusden.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B7A731717; Mon, 2 Aug 2021 21:54:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B7A731717 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1627934091; bh=Pmg8m3m6pkXIGVGzF7wq6dyZ0Ect3/4E409w5gqvM9s=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=KFFlI72jOW28WOGfOaAaExaoL6jbl2pxeWtjQ4oz+AvWxtC0ZjGP2fx/WuvsBcuW8 OtCKOfFqsP1QO6gIpNLijYPNnHL1Ic7NReQ+xR3kpVqe5OL43u/sWlgo+W+RJoikq6 X7DodHjwAnRVxePfVajJuiQbbiGlfVl0wZN2uwLk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 466C1F8014D; Mon, 2 Aug 2021 21:54:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id AF39AF801F7; Mon, 2 Aug 2021 21:53:59 +0200 (CEST) Received: from lb2-smtp-cloud9.xs4all.net (lb2-smtp-cloud9.xs4all.net [194.109.24.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 921DDF80095 for ; Mon, 2 Aug 2021 21:53:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 921DDF80095 Received: from cust-b66e5d83 ([IPv6:fc0c:c157:b88d:62c6:5e3c:5f07:82d0:1b4]) by smtp-cloud9.xs4all.net with ESMTPA id Ae0UmAxn24JsbAe0VmlA3K; Mon, 02 Aug 2021 21:53:52 +0200 Received: from localhost (localhost [127.0.0.1]) by keetweej.vanheusden.com (Postfix) with ESMTP id A9FC41626F6; Mon, 2 Aug 2021 21:53:50 +0200 (CEST) Received: from keetweej.vanheusden.com ([127.0.0.1]) by localhost (mauer.intranet.vanheusden.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xt17fCfgE1-Q; Mon, 2 Aug 2021 21:53:49 +0200 (CEST) Received: from belle.intranet.vanheusden.com (belle.intranet.vanheusden.com [192.168.64.100]) by keetweej.vanheusden.com (Postfix) with ESMTP id 8D85015F770; Mon, 2 Aug 2021 21:53:49 +0200 (CEST) Received: by belle.intranet.vanheusden.com (Postfix, from userid 1000) id 7EE3716063C; Mon, 2 Aug 2021 21:53:49 +0200 (CEST) Date: Mon, 2 Aug 2021 21:53:49 +0200 From: folkert To: Takashi Iwai Subject: Re: aconnect occasionally causes kernel oopses Message-ID: <20210802195349.GV890690@belle.intranet.vanheusden.com> References: <20210801182754.GP890690@belle.intranet.vanheusden.com> <20210802061845.GQ890690@belle.intranet.vanheusden.com> <20210802091012.GR890690@belle.intranet.vanheusden.com> <20210802152117.GT890690@belle.intranet.vanheusden.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Reply-By: Fri 16 Jul 2021 08:34:34 AM CEST User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Envelope: MS4xfK+D070kTVgLqyMwF970IA2zSsYQV0FKRn3lNihV+5HI57wrHE+sbb6GWiF7NcXeW7h7nm917oWfG5IS6mD7GDcYMdO0La5VIb8qf51H8qoQZuNbaOoc jRGSydXL7WzkWr1kx8Ye/kjWNp1y2h30C5X9Hf6mIFXCE8la4us3OZw2CxVt2ry/16YyQNpS7AW+nuc0R1L1ult+FFBlJsyAHlork2blRhZ6zmPY6x/YUT1+ YqTnLJXD/aAY5QTWZlJGIA== Cc: alsa-devel@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" > > [ kernel bug if repeatingly aconnect'ing midi devices ] > > > > > Does this happen if you do reconnect of kernel sequencer client? > > > You can use snd-virmidi as well as snd-dummy. > > > I'm asking it because it'll simplify the test a lot, which will be > > > almost self-contained. > > > > Like this? > > > > root@lappiemctopface:~# aplaymidi -l > > Port Client name Port name > > 14:0 Midi Through Midi Through Port-0 > > 20:0 Virtual Raw MIDI 1-0 VirMIDI 1-0 > > 21:0 Virtual Raw MIDI 1-1 VirMIDI 1-1 > > 22:0 Virtual Raw MIDI 1-2 VirMIDI 1-2 > > 23:0 Virtual Raw MIDI 1-3 VirMIDI 1-3 > > 128:0 rtpmidi lappiemctopface Network > > 128:1 rtpmidi lappiemctopface metronoom > > 128:2 rtpmidi lappiemctopface AppleMidi2IPMidiBridge > > 128:3 rtpmidi lappiemctopface oensoens > > 130:0 FLUID Synth (11462) Synth input port (11462:0) > > > > and then: > > > > root@lappiemctopface:~# cat test.sh > > while true > > do > > aconnect 20:0 21:0 > > aconnect -d 20:0 21:0 > > done > > > > root@lappiemctopface:~# for i in `seq 0 3` ; do (./test.sh &) ; done > > > > This hard locks-up my laptop: it doesn't even respond to capslock (led > > on/off) anymore nor the ctrl+prtscr+alt+b combination. > > Thanks, that's really helpful! > I see the possible race now. > Could you try the quick fix below? Something may have changed: folkert@oensoens:~$ aplaymidi -l ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied Cannot open sequencer - Permission denied ??? Otoh it now runs fine from what I've could test.