s3: nmbd: Fix bug 10633 - nmbd denial of service
authorJeremy Allison <jra@samba.org>
Wed, 28 May 2014 17:40:27 +0000 (10:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Sun, 22 Jun 2014 14:56:52 +0000 (16:56 +0200)
commit161da2d4b9f8642330ac173fb46e75d227aa7dec
treef121c6a829eca09ad2a8bf10fb28ab3dcbe71062
parent586586f92810b03ee79208486598a30573d9b6f6
s3: nmbd: Fix bug 10633 - nmbd denial of service

The Linux kernel has a bug in that it can give spurious
wakeups on a non-blocking UDP socket for a non-deliverable packet.

When nmbd was changed to use non-blocking sockets it
became vulnerable to a spurious wakeup from poll/epoll.

Fix sys_recvfile() to return on EWOULDBLOCK/EAGAIN.

CVE-2014-0244

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/lib/system.c