Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4560305ybg; Mon, 8 Jun 2020 10:53:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyINrkc5Dl3E5KjndXNRYydGLedFa5Gfvw1xmfo7viMVnAevGZbnlHzK5cgNLu1cWh2eWd+ X-Received: by 2002:a17:906:fcb7:: with SMTP id qw23mr20552998ejb.229.1591638835980; Mon, 08 Jun 2020 10:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591638835; cv=none; d=google.com; s=arc-20160816; b=Eq8U6qaLQ5OZ2jwS9N52XnOEEkv/myRo9yRyY051Df5FvS4unwxwJ0pQvyx60JdkGy ++2DUnbsC0tQVPQyyLfwh8iWBr4V43fWKj6Q+VuDP0TF5iVSUk4Xlr44TaqiGbPb3wJ/ SW/01BSOSrWvzvP3l/1ODsCVGfDGRKlXCQRDi+UWY3LHTcL5KTXL8ev4a/bEUL9E1V1D kiVXesfmdHYPNg0FxEVe5LfrmUwbrnPXFFMKSmy5WotDgbOERyczvp4MNALSBwHOqiEQ WA0kVVgivAo5zB8epPv/YUuXJHfNw7WSEnlxGQvV+DQPjPdXFvJcp6Fmwz/Sc8aKn+Dp zU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date; bh=xPiu/VjZtxQS2zKaEcVSZERbg7XQIzNE5sEEH0PLt44=; b=H1DaZiY8HFjm2xwPgnb/GmnIpdz1Ju81Pl7Ab+av329TBRqw6VBDudpfMakgqPKVN9 Pw6VTNJQpU7GAmg7ZmeYT0k+EslGEGPtnxV3SbvBx89FB/cOkPHUH05AmT7YGLmtFeek ST/9y7ju4db/2koj7zwlNykIM8KSsy+6X4dSRCI02AcbSQYb6E0ii7NqRkOmM7O6s086 Zm0pND6c7gmza1aFUh94gnTpitvpnV1d7+zA2XaF3I2I+kfbO3Da8bh9Vq2ZIQsZV5gD FgOR5UnVaX9lPr2gbuDZ7Q61wYHlJcorhwWFQ8Y3npx/60H0c/IDVK6H/iWQY5d4coKa +wKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp20si9529814ejb.307.2020.06.08.10.53.33; Mon, 08 Jun 2020 10:53:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729971AbgFHRf7 (ORCPT + 99 others); Mon, 8 Jun 2020 13:35:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:41276 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbgFHRf6 (ORCPT ); Mon, 8 Jun 2020 13:35:58 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 42785B231; Mon, 8 Jun 2020 17:36:01 +0000 (UTC) Date: Mon, 08 Jun 2020 19:35:57 +0200 Message-ID: From: Takashi Iwai To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ALSA: pcm: disallow linking stream to itself In-Reply-To: <89c4a2487609a0ed6af3ecf01cc972bdc59a7a2d.1591634956.git.mirq-linux@rere.qmqm.pl> References: <89c4a2487609a0ed6af3ecf01cc972bdc59a7a2d.1591634956.git.mirq-linux@rere.qmqm.pl> 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/25.3 (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=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 08 Jun 2020 18:50:39 +0200, Michał Mirosław wrote: > > Prevent SNDRV_PCM_IOCTL_LINK linking stream to itself - the code > can't handle it. Fixed commit is not where bug was introduced, but > changes the context significantly. > > Cc: stable@vger.kernel.org > Fixes: 0888c321de70 ("pcm_native: switch to fdget()/fdput()") > Signed-off-by: Michał Mirosław > --- > v2: EDEADLK -> EINVAL Applied now. Thanks! Takashi