Public bug reported:
commit d0733d2e29b65 (Check for mistakenly passed in non-IPv4 address),
causes regressions in applications which expects bind(AF_UNSPEC) with
INADDR_ANY to work. It was reported at
https://bugzilla.kernel.org/show_bug.cgi?id=42012, but since
bugzilla.kernel.org is not available for some time, some of the
discussion about this issue is can be seen at
http://patchwork.ozlabs.org/patch/112362/ for example as an additional
source.
Testcase:
#include <stdio.h>
#include <sys/socket.h>
#include <string.h>
#include <linux/in.h>
int main(int argc, char **argv)
{
struct sockaddr_in addr;
int fd, r;
fd = socket(PF_INET, SOCK_STREAM, 0);
memset(&addr, 0, sizeof(struct sockaddr_in));
r = bind(fd, (struct sockaddr *)&addr, sizeof(addr));
if (!r)
printf("Everything looks good\n");
else
printf("ERROR: too strict AF_INET check\n");
close(fd);
}
** Affects: linux (Ubuntu)
Importance: Undecided
Status: Invalid
** Affects: linux (Ubuntu Lucid)
Importance: Low
Assignee: Herton R. Krzesinski (herton)
Status: In Progress
** Affects: linux (Ubuntu Maverick)
Importance: Low
Assignee: Herton R. Krzesinski (herton)
Status: In Progress
** Affects: linux (Ubuntu Oneiric)
Importance: Low
Assignee: Herton R. Krzesinski (herton)
Status: In Progress
** Also affects: linux (Ubuntu Lucid)
Importance: Undecided
Status: New
** Also affects: linux (Ubuntu Maverick)
Importance: Undecided
Status: New
** Also affects: linux (Ubuntu Oneiric)
Importance: Undecided
Status: New
** Changed in: linux (Ubuntu)
Status: New => Invalid
** Changed in: linux (Ubuntu Lucid)
Importance: Undecided => Low
** Changed in: linux (Ubuntu Maverick)
Importance: Undecided => Low
** Changed in: linux (Ubuntu Oneiric)
Importance: Undecided => Low
** Changed in: linux (Ubuntu Lucid)
Assignee: (unassigned) => Herton R. Krzesinski (herton)
** Changed in: linux (Ubuntu Maverick)
Assignee: (unassigned) => Herton R. Krzesinski (herton)
** Changed in: linux (Ubuntu Oneiric)
Assignee: (unassigned) => Herton R. Krzesinski (herton)
** Changed in: linux (Ubuntu Lucid)
Status: New => In Progress
** Changed in: linux (Ubuntu Maverick)
Status: New => In Progress
** Changed in: linux (Ubuntu Oneiric)
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/900396
Title:
Regression with applications which expects bind(AF_UNSPEC) with
INADDR_ANY to work
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/900396/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs