From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753257AbcETFHm (ORCPT ); Fri, 20 May 2016 01:07:42 -0400 Received: from mga02.intel.com ([134.134.136.20]:33757 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbcETFHl convert rfc822-to-8bit (ORCPT ); Fri, 20 May 2016 01:07:41 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,337,1459839600"; d="scan'208";a="970910560" From: Ashutosh Dixit To: Mike Danese Cc: "Dutt\, Sudeep" , Jonathan Corbet , Greg Kroah-Hartman , "Chandramouli\, Dasaratharaman" , Mahesh Khanwalkar , "open list\:DOCUMENTATION" , open list Subject: Re: [PATCH] mpssd: fix buffer overflow warning References: <1463720092-18470-1-git-send-email-mikedanese@google.com> Date: Fri, 20 May 2016 01:07:38 -0400 In-Reply-To: <1463720092-18470-1-git-send-email-mikedanese@google.com> (Mike Danese's message of "Thu, 19 May 2016 22:54:51 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 20 2016 at 12:54:51 AM, Mike Danese wrote: > The compilation emits a warning in function ‘snprintf’, > inlined from ‘set_cmdline’ at > ../Documentation/mic/mpssd/mpssd.c:1541:9: > /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: > warning: call to __builtin___snprintf_chk will always overflow > destination buffer > > This was introduced in commit f4a66c204482 ("misc: mic: Update MIC host > daemon with COSM changes") and is fixed by reverting the changes to the > size argument of these snprintf statements. Thanks for the patch, the fix is fine.