diff options
| author | Hannes Frederic Sowa <hannes@stressinduktion.org> | 2013-11-18 04:20:45 +0100 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-02 14:30:26 +0200 |
| commit | 1c96da9a7439f87cf2793a60b0a80c488c687cae (patch) | |
| tree | 8cf6f2eab989fc404004e76aa692ecdb23092c4d /include/linux/batch.h | |
| parent | 626a0b1d9e1a828363fcbe9278cd98ded47b6d82 (diff) | |
inet: prevent leakage of uninitialized memory to user in recv syscalls Only update *addr_len when we actually fill in sockaddr, otherwise we can return uninitialized memory from the stack to the caller in the recvfrom, recvmmsg and recvmsg syscalls. Drop the the (addr_len == NULL) checks because we only get called with a valid addr_len pointer either from sock_common_recvmsg or inet_recvmsg.
If a blocking read waits on a socket which is concurrently shut down we
now return zero and set msg_msgnamelen to 0.
Diffstat (limited to 'include/linux/batch.h')
0 files changed, 0 insertions, 0 deletions
