[PATCH 0/5] Move fabric configfs memory release to configfs_item_operations->release()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx>

Greetings all,

This followup series addresses five scenarios in generic target_core_fabric_configfs.c
code where config_item_put() being called upon the following fabric groups with
struct configfs_group_operations->drop_item() directly releasing struct
config_group memory is causing a number of SLUB 'Poison overwritten' warnings
during testing with .38-rc2.

	struct se_wwn->wwn_group

	struct se_portal_group->tpg_group

	struct se_node_acl->acl_group

	struct se_tpg_np->tpg_np_group

	struct se_lun_acl->se_lun_group

As with the earlier series, these patches address the issue by using moving
existing release logic of the parent structures containing a struct config_group
into their own seperate struct configfs_item_operations->release() callbacks.

The first four patches are for struct target_core_fabric_ops cases where
se_wwn, se_portal_group, se_node_acl and se_tpg_np memory is presented from
target fabric module memory.  The fifth patch is for struct se_lun_acl memory
which is internal to target_core_fabric_configfs.c and not accessed directly
by target fabric module code.

These patches resolve the existing slub_debug=FPUZ warnings/errors that
I have encountered with generic /sys/kernel/config/target/$FABRIC_MOD ops,
so please test, review and comment.

Thanks!

Signed-off-by: Nicholas A. Bellinger <nab@xxxxxxxxxxxxxxx>

Nicholas Bellinger (5):
  target: Move fabric dependent struct se_wwn free into ->release()
    callback
  target: Move fabric dependent se_portal_group free into ->release()
    callback
  target: Move fabric dependent se_node_acl free into ->release
    callback()
  target: Move fabric dependent struct se_tpg_np free into ->release()
    callback
  target: Move fabric independent se_lun_acl free into ->release()
    callback

 drivers/target/target_core_fabric_configfs.c |   93 +++++++++++++++++++-------
 include/target/target_core_base.h            |    1 +
 2 files changed, 69 insertions(+), 25 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux