From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754392AbcKIWWX (ORCPT ); Wed, 9 Nov 2016 17:22:23 -0500 Received: from mail-pf0-f170.google.com ([209.85.192.170]:35677 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751919AbcKIWWU (ORCPT ); Wed, 9 Nov 2016 17:22:20 -0500 Date: Wed, 9 Nov 2016 14:22:17 -0800 From: Brian Norris To: Kalle Valo Cc: Amitkumar Karwar , Nishant Sarmukadam , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, Cathy Luo , security@kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] mwifiex: printk() overflow with 32-byte SSIDs Message-ID: <20161109222216.GA3818@google.com> References: <1478658504-31045-1-git-send-email-briannorris@chromium.org> <87h97guwfu.fsf@kamboji.qca.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87h97guwfu.fsf@kamboji.qca.qualcomm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 10, 2016 at 12:20:53AM +0200, Kalle Valo wrote: > Brian Norris writes: > > > SSIDs aren't guaranteed to be 0-terminated. Let's cap the max length > > when we print them out. > > > > This can be easily noticed by connecting to a network with a 32-octet > > SSID: > > > > [ 3903.502925] mwifiex_pcie 0000:01:00.0: info: trying to associate to > > '0123456789abcdef0123456789abcdef ' bssid > > xx:xx:xx:xx:xx:xx > > > > Fixes: 5e6e3a92b9a4 ("wireless: mwifiex: initial commit for Marvell mwifiex driver") > > Signed-off-by: Brian Norris > > Cc: > > I'm planning to push this to 4.9 if no objections. SGTM. Thanks.