Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4501108pxa; Mon, 10 Aug 2020 10:32:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHnPTLfgzzX7qF31VfGFSaJtPwpoELo7gJs6Xg567OBidVjetD6SLBj5D6aXz2hcZAJXob X-Received: by 2002:a17:906:8517:: with SMTP id i23mr22111515ejx.287.1597080742434; Mon, 10 Aug 2020 10:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597080742; cv=none; d=google.com; s=arc-20160816; b=ex+FhuuxrnLlMpdddxosgbmoTDgSwrKGbz9viMs2bSggOV/NFbPDPD+1q1keLi0JNS 4P1iX6Y4MyZaTni611vR8j6SFF9FnwMSXKAk1CEf7FcuPJQbuO7OcHZBcYjYkGAOrwUJ SANI12BXCll9NKt9LsLr3ky0o4zThuSIaSy4fuObhixfsHokH+44xclY69cJ6wWQ/yGw RvoRuSqheUHLJT+9nXUeOK1Hy1CMc1BC9AoSK1rZKpSQVZCFFBdUXrxfvw7xmFCnlPKW tNPxab2aUunrXDdBCKPO704WjqC1wVhpatcz0wTlq00EEpUwJ8hJaYYmM9ssbMINTo8P FKkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=N+xQxruohIlbOpyC50LY1yxoATjuqX+eHxoYI6/OPkw=; b=wb2L9EGv4wtsjqOijJ0rq/zwSkHCHWkywfeWEgtrbVoGSg5k92uOtgcdB9u0eHLLoB KPBFtW2VAIl1HQvvJ5S1EFt77lwMIdEVRWCM7I49tdbK8CfTCPuke+fUF8DKalQUSgjM uECmjJiUjoNOrA1ITaoiGJIYseHPhPPJ+N/OHUlTc6Sn5kf1KMdE7MVr0atEX1Fw1xux 6C5gC1EertwB7g4tnx/z6KN7Wwc6IedKqsEwFk/h78vJeyUc/W79VnSel5Ea6BcG5N2Z xw1NZA7ezhdlMZrd6Xe7zruqR+Cinvb5LQHz2cr2+gdO/ET2ozUcU5ftXeudh0iXvhCQ NZIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F1tDgPKQ; 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 h19si11381056edq.302.2020.08.10.10.31.59; Mon, 10 Aug 2020 10:32:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=F1tDgPKQ; 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 S1727843AbgHJR31 (ORCPT + 99 others); Mon, 10 Aug 2020 13:29:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:57456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgHJR30 (ORCPT ); Mon, 10 Aug 2020 13:29:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 97E6520838; Mon, 10 Aug 2020 17:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597080566; bh=ireM7xLApekHQIqjELsBbT2kJiFJu4rDCIUy4AvUv8Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F1tDgPKQ8a48L6iXeXl2ZQ+CV+co/rlaBWrRB5CIyCCdJto7kYTEFdNv49K9N/9Y5 rDuTX5EDazzaDQZWo494zj8Tk+rfGv8PkWAewnuz3/NtHw2HCOORQb1SpdmA8Xqp8n T9Dz72HdKHAoAsEM2uS2KfzOnSyOz07eKsKy3tjA= Date: Mon, 10 Aug 2020 19:29:36 +0200 From: Greg Kroah-Hartman To: Pavel Machek Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, syzbot+1a54a94bd32716796edd@syzkaller.appspotmail.com, syzbot+9d2abfef257f3e2d4713@syzkaller.appspotmail.com, Hillf Danton , Takashi Iwai Subject: Re: [PATCH 4.19 06/48] ALSA: seq: oss: Serialize ioctls Message-ID: <20200810172936.GA82601@kroah.com> References: <20200810151804.199494191@linuxfoundation.org> <20200810151804.528955642@linuxfoundation.org> <20200810163717.GA24408@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200810163717.GA24408@amd> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 10, 2020 at 06:37:17PM +0200, Pavel Machek wrote: > Hi! > > > commit 80982c7e834e5d4e325b6ce33757012ecafdf0bb upstream. > > > > Some ioctls via OSS sequencer API may race and lead to UAF when the > > port create and delete are performed concurrently, as spotted by a > > couple of syzkaller cases. This patch is an attempt to address it by > > serializing the ioctls with the existing register_mutex. > > > > Basically OSS sequencer API is an obsoleted interface and was designed > > without much consideration of the concurrency. There are very few > > applications with it, and the concurrent performance isn't asked, > > hence this "big hammer" approach should be good enough. > > That really is a "big hammer". And I believe it is too big. Please discuss code architecture decisions on the mailing list for the subsystem/patch. Doing it in random stable backports does not help out as all of the developers involved are not copied here. thanks, greg k-h