Thread (26 messages) read the whole thread 26 messages, 3 authors, 2017-03-02

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

From: Ben Greear <hidden>
Date: 2017-02-24 15:19:56


On 02/24/2017 12:45 AM, Andrew Zaborowski wrote:
On 24 February 2017 at 01:28,  [off-list ref] wrote:
quoted
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 not.
You probably want to return some error code anyway because 0, if you
compare to the kernel medium, currently maps to the ack returned bit
and is possibly the only way for userspace to set the
HWSIM_TX_STAT_ACK flag in a meaningful way.
Maybe there is a way to return a specific error code so that
the user-space doesn't get concerned when radio is idle.  I
didn't want to spam logs in user-space app...

Thanks,
Ben

-- 
Ben Greear [off-list ref]
Candela Technologies Inc  http://www.candelatech.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help