From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757083Ab3IKT2k (ORCPT ); Wed, 11 Sep 2013 15:28:40 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:50184 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751890Ab3IKT2j (ORCPT ); Wed, 11 Sep 2013 15:28:39 -0400 Date: Wed, 11 Sep 2013 22:28:21 +0300 From: Dan Carpenter To: Joe Perches Cc: Kees Cook , devel@driverdev.osuosl.org, Greg Kroah-Hartman , LKML , Lidza Louina , Tushar Behera Subject: Re: [PATCH] staging: dgnc: fix potential format string flaw Message-ID: <20130911192821.GG25896@mwanda> References: <20130911044116.GA17294@www.outflux.net> <1378875632.606.5.camel@joe-AO722> <20130911093118.GD25896@mwanda> <1378926562.4714.11.camel@joe-AO722> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1378926562.4714.11.camel@joe-AO722> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > * %n is ignored Really it should trigger a WARN_ON_ONCE(). There is code like show_console_dev() which relies on it to work. If we ignore %n it causes another bug. regards, dan carpenter