Skip to content
Snippets Groups Projects
Commit d4b0bcf3 authored by David Teigland's avatar David Teigland
Browse files

dlm: check the write size from user


Return EINVAL from write if the size is larger than
allowed.  Do this before allocating kernel memory for
the bogus size, which could lead to OOM.

Reported-by: default avatarSasha Levin <levinsasha928@gmail.com>
Tested-by: default avatarJana Saout <jana@saout.de>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 6edacf05
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment