Thread (15 messages) read the whole thread 15 messages, 3 authors, 2021-06-25

Re: [PATCH v4 6/6] bus: mhi: core: Add range checks for BHI and BHIe

From: Hemant Kumar <hidden>
Date: 2021-05-07 02:33:27
Also in: ath11k, linux-arm-msm, lkml


On 5/6/21 12:51 PM, Bhaumik Bhatt wrote:
When obtaining the BHI or BHIe offsets during the power up
preparation phase, range checks are missing. These can help
controller drivers avoid accessing any address outside of the
MMIO region. Ensure that mhi_cntrl->reg_len is set before MHI
registration as it is a required field and range checks will
fail without it.

Signed-off-by: Bhaumik Bhatt <redacted>
Reviewed-by: Jeffrey Hugo <redacted>
Reviewed-by: Hemant Kumar <redacted>

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help