[PATCH 1/2] cn: verify msg->len before making callback

2014-11-10 Thread David Fries
The struct cn_msg len field comes from userspace and needs to be validated. More logical to do so here where the cn_msg pointer is pulled out of the sk_buff than the callback which is passed cn_msg * and might assume no validation is needed. Reported-by: Dan Carpenter Acked-by: Evgeniy Polyakov

[PATCH 1/2] cn: verify msg-len before making callback

2014-11-10 Thread David Fries
The struct cn_msg len field comes from userspace and needs to be validated. More logical to do so here where the cn_msg pointer is pulled out of the sk_buff than the callback which is passed cn_msg * and might assume no validation is needed. Reported-by: Dan Carpenter dan.carpen...@oracle.com

[PATCH 1/2] cn: verify msg->len before making callback

2014-11-09 Thread David Fries
The struct cn_msg len field comes from userspace and needs to be validated. More logical to do so here where the cn_msg pointer is pulled out of the sk_buff than the callback which is passed cn_msg * and might assume no validation is needed. Reported-by: Dan Carpenter Signed-off-by: David Fries

[PATCH 1/2] cn: verify msg-len before making callback

2014-11-09 Thread David Fries
The struct cn_msg len field comes from userspace and needs to be validated. More logical to do so here where the cn_msg pointer is pulled out of the sk_buff than the callback which is passed cn_msg * and might assume no validation is needed. Reported-by: Dan Carpenter dan.carpen...@oracle.com