From: Dan Carpenter Date: Thu, 25 Oct 2012 06:33:22 +0000 Subject: Re: [PATCH] aoe: avoid using skb member after dev_queue_xmit Message-Id: <20121025063322.GH20754@mwanda> List-Id: References: <20121024150807.82ce2677.akpm@linux-foundation.org> In-Reply-To: <20121024150807.82ce2677.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andrew Morton Cc: Ed Cashin , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org On Wed, Oct 24, 2012 at 03:08:07PM -0700, Andrew Morton wrote: > On Wed, 24 Oct 2012 14:26:13 -0400 > Ed Cashin wrote: > > > After calling dev_queue_xmit it is no longer safe to access the > > members of the skb. > > > > Reported-by: Dan Carpenter > > hm, that was clever. How did Dan detect this bug? It was a Smatch thing, but it wasn't enabled by default. I think I will enable it. This is the second bug use after dev_queue_xmit() in two years. regards, dan carpenter