From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755871AbcBCNZp (ORCPT ); Wed, 3 Feb 2016 08:25:45 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37236 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750963AbcBCNZo (ORCPT ); Wed, 3 Feb 2016 08:25:44 -0500 MIME-Version: 1.0 In-Reply-To: References: From: Dmitry Vyukov Date: Wed, 3 Feb 2016 14:25:23 +0100 Message-ID: Subject: Re: sound: out-of-bounds write in snd_rawmidi_kernel_write1 To: Takashi Iwai Cc: alsa-devel@alsa-project.org, Jaroslav Kysela , LKML , Alexander Potapenko , Kostya Serebryany , syzkaller , Sasha Levin Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 3, 2016 at 10:35 AM, Takashi Iwai wrote: > On Wed, 03 Feb 2016 09:57:50 +0100, > Dmitry Vyukov wrote: >> >> Hello, >> >> The following program triggers an out-of-bounds write in >> snd_rawmidi_kernel_write1 (run in parallel loop). It seems to try to >> copy -1 bytes (aka 4GB) from user space into kernel smashing all on >> its way. > > What card is /dev/midi3? Please check /proc/asound/cards. > Is it MTPAV? Yes, it was MTPAV. There is only generic code in the stack traces, so I though it may be a generic issue. Though, of course, the driver could mess things already. I've dropped CONFIG_SND_MTPAV now.