[PATCH 162/306] mac80211-hwsim: add length checks before allocating skb.

2017-02-23 Thread greearb
From: Ben Greear Modify the receive-from-user-space logic to do length and 'is-down' checks before trying to allocate an skb. And, if we are going to ignore the pkt due to radio idle, then do not return an error code to user-space. User-space cannot reliably know exactly when a radio is idle or

Re: [PATCH 162/306] mac80211-hwsim: add length checks before allocating skb.

2017-02-23 Thread Johannes Berg
And here's the third patch in a row modifying the same code ... johannes

Re: [PATCH 162/306] mac80211-hwsim: add length checks before allocating skb.

2017-02-24 Thread Andrew Zaborowski
On 24 February 2017 at 01:28, wrote: > Modify the receive-from-user-space logic to do length > and 'is-down' checks before trying to allocate an skb. > > And, if we are going to ignore the pkt due to radio idle, > then do not return an error code to user-space. User-space > cannot reliably know

Re: [PATCH 162/306] mac80211-hwsim: add length checks before allocating skb.

2017-02-24 Thread Ben Greear
On 02/24/2017 12:45 AM, Andrew Zaborowski wrote: On 24 February 2017 at 01:28, wrote: Modify the receive-from-user-space logic to do length and 'is-down' checks before trying to allocate an skb. And, if we are going to ignore the pkt due to radio idle, then do not return an error code to us