Re: [PATCH] net: tehuti: don't process data if it has not been copied from userspace

2017-07-19 Thread David Miller
From: Colin King Date: Wed, 19 Jul 2017 18:46:59 +0100 > From: Colin Ian King > > The array data is only populated with valid information from userspace > if cmd != SIOCDEVPRIVATE, other cases the array contains garbage on > the stack. The

[PATCH] net: tehuti: don't process data if it has not been copied from userspace

2017-07-19 Thread Colin King
From: Colin Ian King The array data is only populated with valid information from userspace if cmd != SIOCDEVPRIVATE, other cases the array contains garbage on the stack. The subsequent switch statement acts on a subcommand in data[0] which could be any garbage value if