lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 24 Feb 2014 18:52:13 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	alex.aring@...il.com
Cc:	alex.bluesman.smirnov@...il.com, dbaryshkov@...il.com,
	linux-zigbee-devel@...ts.sourceforge.net, netdev@...r.kernel.org,
	martin.townsend@...lon.com
Subject: Re: [PATCH net-next v2 2/6] 6lowpan: fix fragmentation on sending
 side

From: Alexander Aring <alex.aring@...il.com>
Date: Fri, 21 Feb 2014 19:58:58 +0100

> +	err = lowpan_fragment_xmit(skb, head, header_length,
> +				   frag_plen + lowpan_size, 0,
> +				   LOWPAN_DISPATCH_FRAG1);
>  	if (err) {
>  		pr_debug("%s unable to send FRAG1 packet (tag: %d)",
>  			 __func__, tag);
>  		goto exit;
>  	}
>  
> -	offset = LOWPAN_FRAG_SIZE;
> +	offset = lowpan_size + frag_plen;
> +	dgram_offset = mac_cb(skb)->frag_info.d_offset + frag_plen;

This isn't going to work.

Once you call dev_queue_xmit(), the skb control block can be reused by
other layers.  In particular the device qdisc layer is going to
scramble the control block on you.

Once a packet travels from one layer to another, SKB control block
is likewise transferred.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ