aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-01-20 13:02:49 +0000
committerSteffen Klassert <[email protected]>2023-01-23 07:44:09 +0100
commitb6ee896385380aa621102e8ea402ba12db1cabff (patch)
tree1f75e8c6dd19eef4cff00fa77933120fbe40c4cc /scripts/gdb/linux/vmalloc.py
parenteb6c59b735aa6cca77cdbb59cc69d69a0d63d986 (diff)
xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()
int type = nla_type(nla); if (type > XFRMA_MAX) { return -EOPNOTSUPP; } @type is then used as an array index and can be used as a Spectre v1 gadget. if (nla_len(nla) < compat_policy[type].len) { array_index_nospec() can be used to prevent leaking content of kernel memory to malicious users. Fixes: 5106f4a8acff ("xfrm/compat: Add 32=>64-bit messages translator") Signed-off-by: Eric Dumazet <[email protected]> Cc: Dmitry Safonov <[email protected]> Cc: Steffen Klassert <[email protected]> Reviewed-by: Dmitry Safonov <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions