On 05/31/2013 10:39 AM, Simon Horman wrote: > This corrects an regression introduced by "net: Use 16bits for *_headers > fields of struct skbuff" when NET_SKBUFF_DATA_USES_OFFSET is not set. In > that case skb->tail will be a pointer whereas skb->network_header > will be an offset from head. This is corrected by using wrappers that > ensure that calculations are always made using pointers. > > Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> > Reported-by: Chen Gang <gang.chen@xxxxxxxxxxx> > Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx> > > -- > v3 > * Add net-next to subject prefix > > v2 > * Use skb_tail_pointer() to ensure the tail portion of the calculation is > always a pointer - it is not if NET_SKBUFF_DATA_USES_OFFSET is not set. Thanks. -- Chen Gang Asianux Corporation -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html