From: Colin Ian King Date: Wed, 22 Apr 2020 11:57:43 +0000 Subject: Re: [PATCH] ASoC: SOF: ensure all fields in header are zero'd before copying back to userspace Message-Id: <96616094-2ba4-24ee-44df-deac919763ef@canonical.com> List-Id: References: <20200422112417.208843-1-colin.king@canonical.com> <20200422114522.GK2659@kadam> In-Reply-To: <20200422114522.GK2659@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter 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 22/04/2020 12:45, Dan Carpenter wrote: > 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. Thanks Dan, I totally overlooked that. That's another class if issues I need to triage correctly. > >> and hence leaking data from the stack to userspace. Fix this by >> ensuring the header structure is zero'd. > > regards, > dan carpenter > >