net/hinic: Check the legality of out_size in nictool
driver inclusion category: bugfix bugzilla: 4472 ----------------------------------------------------------------------- The out_size in nictool is passed in by the user mode. If out_size is not checked, it will cause too much memory in the kernel space to be copied to the user space. Signed-off-by: NChiqijun <chiqijun@huawei.com> Reviewed-by: NZengweiliang <zengweiliang.zengweiliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录