After downloading and installing kernel packages from http://kernel.ubuntu.com/~jsalisbury/lp1486146/ I rebooted, and re-ran the test as above, this time 'a.out' does not consume 100% CPU any more, so the bug seems fixed at least in this simple test case using the replacement kernel.
Hi Joseph,
I re-created the issue on a new install of Ubuntu 14.04.3 (amd64) running the linux-image- 3.19.0- 26-generic kernel using the following code:
#include <stdlib.h>
#include <netinet/ip.h>
int main(void)
struct sockaddr_in addr = {
.sin_ family = AF_INET,
.sin_ port = htons(1234),
.sin_ addr = { INADDR_ANY }
char buf[16];
{
};
int conn;
int s = socket(AF_INET, SOCK_STREAM, 0);
}
----
$ gcc x.c
$ ./a.out &
$ nc 127.0.0.1 1234
1234<enter>
--> 'a.out' consumes 100% CPU
----
After downloading and installing kernel packages from http:// kernel. ubuntu. com/~jsalisbury /lp1486146/ I rebooted, and re-ran the test as above, this time 'a.out' does not consume 100% CPU any more, so the bug seems fixed at least in this simple test case using the replacement kernel.