Bug 546251

Summary: [RHEL4.5] select() cannot return in UDP/UNIX domain socket
Product: Red Hat Enterprise Linux 4 Reporter: Flavio Leitner <fleitner>
Component: kernelAssignee: Flavio Leitner <fleitner>
Status: CLOSED ERRATA QA Contact: Network QE <network-qe>
Severity: medium Docs Contact:
Priority: urgent    
Version: 4.8CC: agospoda, bkahn, cww, dhoward, haliu, tao
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-16 15:17:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 640117    

Description Flavio Leitner 2009-12-10 14:39:46 UTC
Description of problem:

UDP/UNIX domain socket have the same problem of bz#494404

The following patch fix the problem:
diff --git a/net/core/datagram.c b/net/core/datagram.c
index b422d9b..752d721 100644
--- a/net/core/datagram.c
+++ b/net/core/datagram.c
@@ -455,7 +455,7 @@ unsigned int datagram_poll(struct file *file, struct socket *sock,
        struct sock *sk = sock->sk;
        unsigned int mask;

-       poll_wait(file, sk->sk_sleep, wait);
+       sock_poll_wait(file, sk->sk_sleep, wait);
        mask = 0;

        /* exceptional events? */


which is part of the upstream commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a57de0b4336e48db2811a2030bb68dba8dd09d88

Version-Release number of selected component (if applicable):
RHEL4.5 or newer

Additional info:
The test kernel available in brew with good feedback from customer.
https://brewweb.devel.redhat.com/taskinfo?taskID=2133939

Comment 5 Vivek Goyal 2010-10-05 15:48:48 UTC
Committed in 89.39.EL . RPMS are available at http://people.redhat.com/vgoyal/rhel4/

Comment 13 errata-xmlrpc 2011-02-16 15:17:15 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0263.html