Re: [PATCH] s390/qeth: fix a missing-check bug

2018-10-07 Thread Heiko Carstens
On Sat, Oct 06, 2018 at 11:08:23AM -0500, Wenwen Wang wrote: > In qeth_snmp_command(), the length of the user request is firstly copied > from the user-space buffer 'udata' to the kernel variable 'req_len' and > checked to see whether it is too large. If the check fails, an error code > EINVAL is r

[PATCH] s390/qeth: fix a missing-check bug

2018-10-06 Thread Wenwen Wang
In qeth_snmp_command(), the length of the user request is firstly copied from the user-space buffer 'udata' to the kernel variable 'req_len' and checked to see whether it is too large. If the check fails, an error code EINVAL is returned. Otherwise, the execution continues and the whole buffer is c