lkml.org 
[lkml]   [2020]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4.19 06/48] ALSA: seq: oss: Serialize ioctls
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

\
 
 \ /
  Last update: 2020-08-10 19:30    [W:0.047 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site