> On Nov 28, 2018, at 7:01 PM, David Disseldorp <dd...@suse.de> wrote: > > The pscsi_set_inquiry_info() and emulate_model_alias_store() codepaths > don't currently explicitly null-terminate t10_wwn.model. > Add an extra byte to the t10_wwn.model buffer and perform null string > termination in all cases. > > dev_set_t10_wwn_model_alias() continues to truncate at the same length > to avoid changing the model string for existing deployments. > > Signed-off-by: David Disseldorp <dd...@suse.de> > --- > drivers/target/target_core_configfs.c | 8 +++++--- > drivers/target/target_core_device.c | 8 +++++--- > drivers/target/target_core_pscsi.c | 6 ++++-- > drivers/target/target_core_spc.c | 2 +- > drivers/target/target_core_stat.c | 4 ++-- > include/target/target_core_base.h | 3 ++- > 6 files changed, 19 insertions(+), 12 deletions(-) > > Reviewed-by: Bryant G. Ly b...@catalogicsoftware.com
- Re: [PATCH v4 5/7] target: add device vendor_id conf... Bart Van Assche
- [PATCH v4 2/7] target: consistently null-terminate t10_ww... David Disseldorp
- [PATCH v4 4/7] target: consistently null-terminate t10_ww... David Disseldorp
- [PATCH v4 3/7] target: consistently null-terminate t10_ww... David Disseldorp
- Re: [PATCH v4 3/7] target: consistently null-termina... Ly, Bryant
- Re: [PATCH v4 3/7] target: consistently null-termina... Lee Duncan
- Re: [PATCH v4 3/7] target: consistently null-termina... Bart Van Assche
- Re: [PATCH v4 3/7] target: consistently null-ter... David Disseldorp
- Re: [PATCH v4 3/7] target: consistently null... Bart Van Assche
- [PATCH v4 7/7] target: use printf width specifier for t10... David Disseldorp
- Re: [PATCH v4 7/7] target: use printf width specifie... Lee Duncan
- Re: [PATCH v4 7/7] target: use printf width specifie... Bart Van Assche
- [PATCH v4 6/7] target: remove hardcoded T10 Vendor ID in ... David Disseldorp