Re: [PATCH 1/5] scsi: ufs: core: Validate string descriptors

From: Li Qiang

Date: Fri Jul 17 2026 - 11:36:58 EST


Hi Bart,

I don't think kasprintf() is suitable here. This path must preserve the raw UTF-16 bytes and return a buffer of uc_str->len bytes for the RPMB device-ID ABI; %.*s treats the data as a C string and would not preserve embedded NUL bytes or the required two-byte padding.

Thanks,
Li Qiang