mirror of https://github.com/torvalds/linux.git
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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| be.h | ||
| be_cmds.c | ||
| be_cmds.h | ||
| be_iscsi.c | ||
| be_iscsi.h | ||
| be_main.c | ||
| be_main.h | ||
| be_mgmt.c | ||
| be_mgmt.h | ||