From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2 net] slip: Check if rstate is initialized before uncompressing Date: Wed, 11 Apr 2018 10:34:11 -0400 (EDT) Message-ID: <20180411.103411.2212608868988995529.davem@davemloft.net> References: <20180411110441.GA4678@tejaswit-linux.qualcomm.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, g.nault@alphalink.fr To: tejaswit@codeaurora.org Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:41272 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752229AbeDKOeM (ORCPT ); Wed, 11 Apr 2018 10:34:12 -0400 In-Reply-To: <20180411110441.GA4678@tejaswit-linux.qualcomm.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Tejaswi Tanikella Date: Wed, 11 Apr 2018 16:34:47 +0530 > On receiving a packet the state index points to the rstate which must be > used to fill up IP and TCP headers. But if the state index points to a > rstate which is unitialized, i.e. filled with zeros, it gets stuck in an > infinite loop inside ip_fast_csum trying to compute the ip checsum of a > header with zero length. ... > Adding a variable to indicate if the current rstate is initialized. If > such a packet arrives, move to toss state. > > Signed-off-by: Tejaswi Tanikella Applied and queued up for -stable, thanks.