Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1359822ybg; Thu, 11 Jun 2020 07:54:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLo3D5oeY0vrVRoku3PrZW2ZYh7uNjRWXcVh954wFma/7zl9c2x9PgZa2UvdJrpZpedZjL X-Received: by 2002:a17:906:b88d:: with SMTP id hb13mr8867827ejb.96.1591887277776; Thu, 11 Jun 2020 07:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591887277; cv=none; d=google.com; s=arc-20160816; b=Snj0+zP0aPbjRSnvnUrxAiZOB+cF+B/KDHmjsSJa0zoMHgNcomR9tnEGDGAp/fFTfq tNkSGil3jviEDTIb9THmQM08pDzPEUknBuyt0DmBLjcsyHR3mIRAfWmVsqO75I2c3VIR RF8s6QUTigWGuJZw5fOPMPVvakY4W09RNRYtOjH3YhAF16MtKDqJVK3CrzpBycHrV7Lt flyTyZxGW80U1D3JImVB+KDAMGs3Hkc5kiwdlUnVBTOYCgzgkBAFpjam+BVvcFM+zRHH +cYRKkMnQ/383EpzN2O4LGr/9tebZHDUgr5Q62aPAbdNZGzioM5lZcJPfL8v2h5wcz2E EL9A== 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:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=KZU41mzjo8YhkM4cekdJ5/j1xc6nz7kyQqQpnnzbcmA=; b=X37YG6zb5GalIHKGRFa8ULE74BRmYyT/BvSNJaEcT0O7VYYycLIQsQk0XbdDr/SPYz yuZ09O5AWIBppOzOp26vFjlaKxmbbL/H1wL0MNbeJMkU2z1tHIKPvU1JkxaSPgE73HWW 0o4pKZfJ6/MBbEFc6W/q2q/tsD7KsAsfFAgLwAkcCglxRZ6fHLsigLcYk3ZjLdLcOYdd MZfDGB8k7C1J5OSR18T17rQ5XJLvnVEI+bGhwVi/o+ASfM2Q62hw/SudUinNtrlArJBk gseBfQxqE+gawV4wpa/FLA8Bjwxy4+4K+k1280kpHl6IhErk/YxR5LmxH5MmcRuRCHJ2 gzbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=ZuOuu6dU; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b8si1685133edr.398.2020.06.11.07.54.13; Thu, 11 Jun 2020 07:54:37 -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=@yahoo.ca header.s=s2048 header.b=ZuOuu6dU; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728405AbgFKOwH (ORCPT + 99 others); Thu, 11 Jun 2020 10:52:07 -0400 Received: from sonic317-20.consmr.mail.gq1.yahoo.com ([98.137.66.146]:40872 "EHLO sonic317-20.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728280AbgFKOwD (ORCPT ); Thu, 11 Jun 2020 10:52:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1591887122; bh=KZU41mzjo8YhkM4cekdJ5/j1xc6nz7kyQqQpnnzbcmA=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From:Subject; b=ZuOuu6dUpQDDGD1eJuy1x6yzaxy4+3GGnjKcwe4ySKIW7X1UFh3D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ib5q3ARHd1dPKbh7cSxoKZ_UzgAUX.U7jzODouZlrKlUu 0j14MnwvSQZnXY9.0toSE4vt1reYw5U4OGnU2pwEiby6e2CgNzhwAsUq.xs5LLKOgsB8sO00F2n. wTmvUCm92m1TtBJ59lCGJ8abJSU2UiS9rTmyOdJ5QDlxxABxBNJOeqLiq4E21iPCRkVYOBRUbTCH YhoPd5eeB25UY3gKIQsi.PC5ZiGBpzBB7Nz_A17nBOlp_g9_lVuzOxJVxd9X3ttsw4twPcBR0MNp mQ11D.var4bz4SC0qhtIs3SxgVo36CYS7UrMtknBDYgMc9Cmz11tpzW_8IUrXQ1Di.bdibSLrUNl tjpczYgtQp3ADNNdFaeSdvipqMtvPL0mqANHu2qxdcHq8zU_Qoo5.jJFcvXHELlX5C0EmRYvPsaU _TAjOW6p.ith4GQ.8ANBDGiHdfD_OKX6PxiRH9JeNDpWzdiPW6fEo_bT4QJvPr5RKqhK6QtUp822 X027OExABVatvCz.rVEQQUaBpjHpWW2KZPKrXdVMRcVfH.Rqu7Qce4vYjtHFW37hL46CxGFIwQsF .PEy15ES3flyyEt2C6HwqTbKvG035Wl4F60QTM406KGP5vJBUqy_n1G156Yo.dxl7Xp4TcHlCXB8 FSid8v7NTs1uoYZmgvQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Thu, 11 Jun 2020 14:52:02 +0000 Received: by smtp431.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 6c780120874f2799e5b2cd41953912c9; Thu, 11 Jun 2020 14:51:59 +0000 (UTC) Date: Thu, 11 Jun 2020 10:51:55 -0400 From: "Alex Xu (Hello71)" Subject: Re: next-0519 on thinkpad x60: sound related? window manager crash To: Takashi Iwai Cc: alsa-devel@alsa-project.org, bp@alien8.de, hch@infradead.org, Christoph Hellwig , hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, Pavel Machek , perex@perex.cz, rientjes@google.com, tglx@linutronix.de, tiwai@suse.com, x86@kernel.org References: <20200520111136.GA3802@amd> <1591545088.74ii116nf2.none@localhost> <20200608061950.GA17476@lst.de> <1591624340.z01ejtod28.none@localhost> <20200609114733.GA1621@lst.de> In-Reply-To: < MIME-Version: 1.0 Message-Id: <1591885264.uk6f214o4o.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.16072 hermes_yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Content-Length: 1246 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Excerpts from Takashi Iwai's message of June 9, 2020 11:12 am: > On Tue, 09 Jun 2020 13:47:33 +0200, > Christoph Hellwig wrote: >>=20 >> Alex, can you try this patch? >=20 > Also could you check whether just papering over the memset() call > alone avoids the crash like below? For PulseAudio and dmix/dsnoop, > it's the only code path that accesses the vmapped buffer, I believe. >=20 > If this works more or less, I'll cook a more comprehensive fix. >=20 >=20 > thanks, >=20 > Takashi >=20 > --- a/sound/core/pcm_native.c > +++ b/sound/core/pcm_native.c > @@ -754,9 +754,11 @@ static int snd_pcm_hw_params(struct snd_pcm_substrea= m *substream, > while (runtime->boundary * 2 <=3D LONG_MAX - runtime->buffer_size) > runtime->boundary *=3D 2; > =20 > +#if 0 > /* clear the buffer for avoiding possible kernel info leaks */ > if (runtime->dma_area && !substream->ops->copy_user) > memset(runtime->dma_area, 0, runtime->dma_bytes); > +#endif > =20 > snd_pcm_timer_resolution_change(substream); > snd_pcm_set_state(substream, SNDRV_PCM_STATE_SETUP); >=20 Sorry, this patch doesn't work for me with SME off using abfbb29297c2.=20 David's newest submitted patch works for me, which I already replied to=20 separately. Thanks, Alex.