[tipc-discussion] [PATCH net 1/1] tipc: move premature initilalization of stack variables

2017-02-23 Thread Jon Maloy
In the function tipc_rcv() we initialize a couple of stack variables from the message header before that same header has been validated. In rare cases when the arriving header is non-linar, the validation function itself may linearize the buffer by calling skb_may_pull(), while the wrongly initiali

Re: [tipc-discussion] [PATCH net 1/1] tipc: move premature initilalization of stack variables

2017-02-24 Thread David Miller
From: Jon Maloy Date: Thu, 23 Feb 2017 11:10:31 -0500 > In the function tipc_rcv() we initialize a couple of stack variables > from the message header before that same header has been validated. > In rare cases when the arriving header is non-linar, the validation > function itself may linearize