diff options
author | David Teigland <[email protected]> | 2013-02-04 15:31:22 -0600 |
---|---|---|
committer | David Teigland <[email protected]> | 2013-02-04 15:31:22 -0600 |
commit | d4b0bcf32b946590afd29e202d6a399b84fe6c67 (patch) | |
tree | ab44da9a693c1e7fd22e5f45d26e1e7742281516 /net/unix/garbage.c | |
parent | 6edacf05c8362f4c368991b55d85e8122cfc9a24 (diff) |
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: Sasha Levin <[email protected]>
Tested-by: Jana Saout <[email protected]>
Signed-off-by: David Teigland <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions