diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-02-19 03:31:37 +0100 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-02-19 03:47:28 +0100 |
commit | fbbf8555a986ed31e54f006b6cc637ea4ff1425b (patch) | |
tree | 5e95a54ec56f9470b8269dd73b1ccff3d4653ef9 /drivers/target/iscsi/iscsi_target.c | |
parent | target: Fix lookup of dynamic NodeACLs during cached demo-mode operation (diff) | |
download | linux-fbbf8555a986ed31e54f006b6cc637ea4ff1425b.tar.xz linux-fbbf8555a986ed31e54f006b6cc637ea4ff1425b.zip |
target: Add missing mapped_lun bounds checking during make_mappedlun setup
This patch adds missing bounds checking for the configfs provided
mapped_lun value during target_fabric_make_mappedlun() setup ahead
of se_lun_acl initialization.
This addresses a potential OOPs when using a mapped_lun value that
exceeds the hardcoded TRANSPORT_MAX_LUNS_PER_TPG-1 value within
se_node_acl->device_list[].
Reported-by: Jan Engelhardt <jengelh@inai.de>
Cc: Jan Engelhardt <jengelh@inai.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.c')
0 files changed, 0 insertions, 0 deletions