Re: [PATCH v3] ufs: core: bsg: Fix memory crash in case arpmb command failed

From: Bart Van Assche
Date: Thu Feb 20 2025 - 13:22:20 EST


On 2/20/25 6:20 AM, Arthur Simchaev wrote:
In case the device doesn't support arpmb, the kernel get memory crash
due to copy user data in bsg_transport_sg_io_fn level. So in case
ufs_bsg_exec_advanced_rpmb_req returned error, do not set the job's
reply_len.
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>