From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <51653957.2070405@grandegger.com> Date: Wed, 10 Apr 2013 12:05:11 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: <51646CBA.40407@xenomai.org> In-Reply-To: <51646CBA.40407@xenomai.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] [PATCH 1/2] rtcan_module: Fix tx_timeout buffer size inconsistency List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org, Wolfgang Grandegger On 04/09/2013 09:32 PM, Gilles Chanteperdrix wrote: > On 03/17/2013 07:56 PM, Paul Janzen wrote: > >> When formatting /proc/rtcan/sockets, tx_timeout is defined as >> char[16], but a length of 20 is passed to rtcan_get_timeout_name. If >> tx_timeout for any socket is infinite, this causes snprintf to zero >> outside the buffer, leading to stack overflow and a kernel panic. >> Make the tx_timeout buffer 20 bytes long instead. >> >> Signed-off-by: Paul Janzen It's a bug, therefore: Acked-by: Wolfgang Grandegger > Wolfgang, ping? Pong, sorry for delay. Wolfgang.