Messages in this thread | | | Date | Sat, 02 Aug 2014 15:26:23 -0700 (PDT) | Subject | Re: [PATCH] iovec: make sure the caller actually wants anything in memcpy_fromiovecend | From | David Miller <> |
| |
From: Sasha Levin <sasha.levin@oracle.com> Date: Thu, 31 Jul 2014 23:00:35 -0400
> Check for cases when the caller requests 0 bytes instead of running off > and dereferencing potentially invalid iovecs. > > Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Applied, thanks.
BTW, if you look at the function above this one (memcpy_toiovecend) it avoids this issue by encompassing all of the logic in a top-level loop which terminates when len <= 0.
| |