Re: [PATCH net-next] tipc: check nl sock before parsing nested attributes

2016-05-16 Thread David Miller
From: Richard Alpe Date: Mon, 16 May 2016 11:14:54 +0200 > Make sure the socket for which the user is listing publication exists > before parsing the socket netlink attributes. > > Prior to this patch a call without any socket caused a NULL pointer > dereference in tipc_nl_publ_dump(). > > Test

Re: [tipc-discussion] [PATCH net-next] tipc: check nl sock before parsing nested attributes

2016-05-16 Thread Eric Dumazet
On Mon, 2016-05-16 at 14:06 +, Jon Maloy wrote: > This is a serious bug, so it should be posted to net, not net-next. > > Otherwise, > Acked-by: Jon Maloy Well, linux-4.6 is out, so it does not really matter. Next push from David will use his net-next tree. Thanks.

RE: [tipc-discussion] [PATCH net-next] tipc: check nl sock before parsing nested attributes

2016-05-16 Thread Jon Maloy
m; tipc-discuss...@lists.sourceforge.net; > eric.duma...@gmail.com > Subject: [tipc-discussion] [PATCH net-next] tipc: check nl sock before parsing > nested attributes > > Make sure the socket for which the user is listing publication exists > before parsing the socket netlink att

[PATCH net-next] tipc: check nl sock before parsing nested attributes

2016-05-16 Thread Richard Alpe
Make sure the socket for which the user is listing publication exists before parsing the socket netlink attributes. Prior to this patch a call without any socket caused a NULL pointer dereference in tipc_nl_publ_dump(). Tested-and-reported-by: Baozeng Ding Signed-off-by: Richard Alpe --- net/t