Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:39131 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757295Ab0LBQi7 (ORCPT ); Thu, 2 Dec 2010 11:38:59 -0500 Subject: Re: "Kernel bug detected" when using pktgen together with mac80211_hwsim From: Johannes Berg To: Helmut Schaa Cc: linux-wireless@vger.kernel.org In-Reply-To: <201012021731.09440.helmut.schaa@googlemail.com> References: <201012021731.09440.helmut.schaa@googlemail.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 02 Dec 2010 17:38:58 +0100 Message-ID: <1291307938.3481.48.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2010-12-02 at 17:31 +0100, Helmut Schaa wrote: > Unfortunately pktgen keeps a reference to the skb and thus pskb_expand_head > triggers a BUG when called from mac80211. I worked around that issue by adding > a skb_copy for shared skbs. > > Maybe, someone else has a better idea on how to fix that? Oops! That seems like the right way to fix it though. johannes