From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: Re: [PATCH] net sched: text ematch: zero out ts_state before using it Date: Thu, 9 Oct 2014 14:48:54 -0700 Message-ID: References: <1412870721-31061-1-git-send-email-osandov@osandov.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Jamal Hadi Salim , "David S. Miller" , netdev , "linux-kernel@vger.kernel.org" To: Omar Sandoval Return-path: In-Reply-To: <1412870721-31061-1-git-send-email-osandov@osandov.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, Oct 9, 2014 at 9:05 AM, Omar Sandoval wrote: > textsearch_find zeroes out the offset, but the control buffer (which may or may > not matter in this case) needs to be zeroed out as well. Why? skb_prepare_seq_read() initializes the cb. Also, the comment says: * @state: uninitialized textsearch state variable