aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorParthasarathy Bhuvaragan <[email protected]>2017-08-24 14:31:23 +0000
committerDavid S. Miller <[email protected]>2017-08-25 04:54:34 +0000
commit60d1d93664a0bb3d5af722ed38c57ee165a45bf7 (patch)
tree0e5ebe511f6f2e52e852c90dedcc24461515cfee /net/tipc/node.c
parenttipc: perform skb_linearize() before parsing the inner header (diff)
downloadkernel-60d1d93664a0bb3d5af722ed38c57ee165a45bf7.tar.gz
kernel-60d1d93664a0bb3d5af722ed38c57ee165a45bf7.zip
tipc: reassign pointers after skb reallocation / linearization
In tipc_msg_reverse(), we assign skb attributes to local pointers in stack at startup. This is followed by skb_linearize() and for cloned buffers we perform skb relocation using pskb_expand_head(). Both these methods may update the skb attributes and thus making the pointers incorrect. In this commit, we fix this error by ensuring that the pointers are re-assigned after any of these skb operations. Fixes: 29042e19f2c60 ("tipc: let function tipc_msg_reverse() expand header when needed") Signed-off-by: Parthasarathy Bhuvaragan <[email protected]> Reviewed-by: Jon Maloy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions