From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tommy Christensen Subject: Re: Fwd: [2.6] ethertap and af_inet.c assertion failures Date: Sat, 15 Jan 2005 17:19:59 +0100 Message-ID: <41E942AF.3030202@tpack.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: simon.roscic@chello.at, netdev@oss.sgi.com, davem@davemloft.net Return-path: To: Herbert Xu In-Reply-To: Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org Herbert Xu wrote: > Since the skb will be orphaned on its way to the destination anyway, > let's simply do that before the trimming. This shouldn't lead to > skb leakage since the skb will either be charged to the destination > socket or freed. Looks fine. This will solve the problem for other callers as well. Shouldn't there be a check for skb_shared as well? Or are the callers of netlink_unicast/broadcast supposed to avoid this. -Tommy