summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorJoonwon Kang <joonwonkang@google.com>2025-11-26 06:22:50 +0000
committerSasha Levin <sashal@kernel.org>2026-03-04 07:21:16 -0500
commitf50b39fd7c72a8734153644ee945ca0d8b2e65ab (patch)
tree0f4443e2ac0f7e798335d50b423500039bd706e1 /tools/lib/python/kdoc
parent574e1d8954908601eb5d7f21382685b4b51f2613 (diff)
mailbox: Prevent out-of-bounds access in fw_mbox_index_xlate()
[ Upstream commit fcd7f96c783626c07ee3ed75fa3739a8a2052310 ] Although it is guided that `#mbox-cells` must be at least 1, there are many instances of `#mbox-cells = <0>;` in the device tree. If that is the case and the corresponding mailbox controller does not provide `fw_xlate` and of_xlate` function pointers, `fw_mbox_index_xlate()` will be used by default and out-of-bounds accesses could occur due to lack of bounds check in that function. Cc: stable@vger.kernel.org Signed-off-by: Joonwon Kang <joonwonkang@google.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions