From: Dan Carpenter Date: Wed, 22 Apr 2020 11:45:22 +0000 Subject: Re: [PATCH] ASoC: SOF: ensure all fields in header are zero'd before copying back to userspace Message-Id: <20200422114522.GK2659@kadam> List-Id: References: <20200422112417.208843-1-colin.king@canonical.com> In-Reply-To: <20200422112417.208843-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Colin King Cc: alsa-devel@alsa-project.org, Kai Vehmanen , Liam Girdwood , linux-kernel@vger.kernel.org, Takashi Iwai , kernel-janitors@vger.kernel.org, Ranjani Sridharan , Pierre-Louis Bossart , Mark Brown , Daniel Baluta , sound-open-firmware@alsa-project.org On Wed, Apr 22, 2020 at 12:24:17PM +0100, Colin King wrote: > From: Colin Ian King > > Field header.tlv is uninitialized and being copied back to userspace ^^^^^^^^^^ header.tlv is a zero element array so it doens't have any stack data. > and hence leaking data from the stack to userspace. Fix this by > ensuring the header structure is zero'd. regards, dan carpenter