From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754849AbdJIOvo (ORCPT ); Mon, 9 Oct 2017 10:51:44 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:46427 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754649AbdJIOvm (ORCPT ); Mon, 9 Oct 2017 10:51:42 -0400 X-Google-Smtp-Source: AOwi7QBI7EaNHUJHjwnJq56P73Jp/vEFik4wxEMCIJ+5pHZckZM2mFBi9QxVK9xpdMUHg3vvU5E2fQ== Subject: Re: [PATCH v2] ALSA: seq: resize buffer for overflow To: Takashi Iwai Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, bunk@kernel.org, Jaroslav Kysela , bunk@stusta.de References: <20171006171731.88889-1-salyzyn@android.com> From: Mark Salyzyn Message-ID: Date: Mon, 9 Oct 2017 07:51:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2017 02:39 AM, Takashi Iwai wrote: > I doubt it came from snd_midi_event_encode_byte(). > Judging from the call trace below, the event originated from the OSS > sequencer write, i.e. it received an OSS event packet, and it was > delivered again to another OSS sequencer port back via dummy client. > > If so, it should have received some EV_SYSEX packet, and it was > processed via snd_seq_oss_synth_sysex(), and the encoded event was > delivered. > > Now the question is how it triggers this Oops. I couldn't find any > obvious cause, but one thing I noticed is a possible race when writing > to OSS sequencer concurrently. Something wrong might happen. Concurrent writing, thanks, I will switch gears and see if that represents the replication path! > BTW, about your patch is buggy regarding the call kmalloc() with > GFP_KERNEL inside spinlock. yup, withdraw this patch, and please erase it from my permanent record ;-> Thanks for the review, it was immensely helpful! -- Mark