aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorDuoming Zhou <[email protected]>2024-03-06 22:04:37 +0800
committerKalle Valo <[email protected]>2024-03-12 17:32:25 +0200
commit316f790ebcf94bdf59f794b7cdea4068dc676d4c (patch)
tree26e017c9ab6dc1ae5eff5af37270cc48b1a9f965 /tools/perf/scripts/python/arm-cs-trace-disasm.py
parent789c17185fb0f39560496c2beab9b57ce1d0cbe7 (diff)
wifi: brcmfmac: pcie: handle randbuf allocation failure
The kzalloc() in brcmf_pcie_download_fw_nvram() will return null if the physical memory has run out. As a result, if we use get_random_bytes() to generate random bytes in the randbuf, the null pointer dereference bug will happen. In order to prevent allocation failure, this patch adds a separate function using buffer on kernel stack to generate random bytes in the randbuf, which could prevent the kernel stack from overflow. Fixes: 91918ce88d9f ("wifi: brcmfmac: pcie: Provide a buffer of random bytes to the device") Suggested-by: Arnd Bergmann <[email protected]> Signed-off-by: Duoming Zhou <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions