summaryrefslogtreecommitdiff
path: root/scripts/objdump-func
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-05-07 11:18:11 +0300
committerRob Herring (Arm) <robh@kernel.org>2026-05-14 01:19:08 +0300
commit0b6b12c5dcce16e604d4cde953bef46531b98571 (patch)
tree8acfd286e15013d793905ac8f358f6f037736899 /scripts/objdump-func
parent1e54c31b9cbbb42162e2e4317c18c8a8b350a79d (diff)
downloadlinux-0b6b12c5dcce16e604d4cde953bef46531b98571.tar.xz
drivers/of: validate status properties in reconfig state changes
Live-tree reconfiguration properties also carry raw values plus explicit lengths. `of_reconfig_get_state_change()` currently treats `status` property values as NUL-terminated strings and feeds them straight into `strcmp()`. Factor the `"okay"` / `"ok"` check out into a helper that first verifies that the property contains a bounded C string within `prop->length`. Malformed `status` updates should be treated as not enabling the node. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260507081812.91838-2-pengpeng@iscas.ac.cn Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'scripts/objdump-func')
0 files changed, 0 insertions, 0 deletions