mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
ee0268f230
beiscsi_iface_set_param() parses nlattr with nla_for_each_attr and assumes
every attributes can be viewed as struct iscsi_iface_param_info.
This is not true because there is no any nla_policy to validate the
attributes passed from the upper function iscsi_set_iface_params().
Add the nla_len check before accessing the nlattr data and return EINVAL if
the length check fails.
Fixes:
|
||
---|---|---|
.. | ||
be_cmds.c | ||
be_cmds.h | ||
be_iscsi.c | ||
be_iscsi.h | ||
be_main.c | ||
be_main.h | ||
be_mgmt.c | ||
be_mgmt.h | ||
be.h | ||
Kconfig | ||
Makefile |