summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2012-06-04 23:37:34 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2012-06-12 20:12:25 -0700
commit3578ddba1ae93263d373e7bc85fd38d1f0368b78 (patch)
treec62e16158acdd7eea4106d56883352d114ac499f /drivers/clocksource
parent59e4f541baf728dbb426949bfa9f6862387ffd0e (diff)
downloadblackbird-op-linux-3578ddba1ae93263d373e7bc85fd38d1f0368b78.tar.gz
blackbird-op-linux-3578ddba1ae93263d373e7bc85fd38d1f0368b78.zip
tcm_qla2xxx: Don't insert nacls without sessions into the btree
When we create an explicit node ACL in tcm_qla2xxx_make_nodeacl(), there is a call to tcm_qla2xxx_setup_nacl_from_rport(), which puts the node ACL into the lport_fcport_map even though there is no session yet for the initiator. Since the only time we remove entries from this map is when we free a session, this means that if we later delete this node ACL without the initiator ever creating a session, we'll leave the nacl pointer in the btree pointing at freed memory. This is especially bad if that initiator later does send us a command that would cause us to create a dynamic ACL and session: we'll find the stale freed nacl pointer in the btree and end up with use-after-free. We could add more code to clear the btree entry when deleting the explicit nacl, but the original insertion is pointless: without a session attached, we'll just have to update the entry when a session appears anyway. So we can just delete tcm_qla2xxx_setup_nacl_from_rport() and the code that calls it. Signed-off-by: Roland Dreier <roland@purestorage.com> Cc: Chad Dupuis <chad.dupuis@qlogic.com> Cc: Giridhar Malavali <giridhar.malavali@qlogic.com> Cc: Arun Easi <arun.easi@qlogic.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/clocksource')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud