lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <0340ff7f-291f-7041-f75e-4ab8b59785a7@acm.org> Date: Mon, 12 Dec 2022 11:26:20 -0800 From: Bart Van Assche <bvanassche@....org> To: Arthur Simchaev <Arthur.Simchaev@....com>, martin.petersen@...cle.com Cc: beanhuo@...ron.com, linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH v5 4/4] ufs: core: Remove ufshcd_map_desc_id_to_length function On 12/11/22 05:05, Arthur Simchaev wrote: > There shouldn't be any restriction of the descriptor size > (not the descriptor id for that matter) up to QUERY_DESC_MAX_SIZE. > According to the spec, the caller can use any descriptor size, > and it is up to the device to return the actual size. > Therefore there shouldn't be any sizes hardcoded in the kernel, > nor any need to cache it, hence ufshcd_map_desc_id_to_length function is > redundant. Always read the descriptors with QUERY_DESC_MAX_SIZE size. Reviewed-by: Bart Van Assche <bvanassche@....org>
Powered by blists - more mailing lists