summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc
diff options
context:
space:
mode:
authorAntony Antony <antony.antony@secunet.com>2026-10-07 11:34:28 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2026-10-19 08:02:02 +0200
commitc8c2c8a2bbe4319f63d029d161aaee2b17687371 (patch)
treed5b407598e0c7b56f0155f6e3cbc730ca1b184a4 /rust/kernel/alloc
parentf9a11716c8445b496e9fafeec7e8412d384d02e2 (diff)
xfrm: state: reject mark with bits outside its mask on add
A mark/mask like 0x101/0xff is silently truncated to 0x01/0xff on insert, so the exact-match lookups added later in this series (DELSA, GETSA, GETAE, NEWAE, EXPIRE, MIGRATE_STATE) could not find the SA. Reject it instead. The mark is no longer sanitized on state add. Also reject an invalid XFRMA_MARK (the new mark) in XFRM_MSG_MIGRATE_STATE. Fixes: 0b91fda3a1f0 ("xfrm: Sanitize marks before insert") Cc: <stable+noautosel@kernel.org> # needs exact-match SA lookups from this series Signed-off-by: Antony Antony <antony.antony@secunet.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions