Bug 11831
Summary: | NULL pointer derefence since 2.6.27 in (e)poll | ||
---|---|---|---|
Product: | Other | Reporter: | Rafael J. Wysocki (rjw) |
Component: | Other | Assignee: | other_other |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | davidel |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.27 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 11167 |
Description
Rafael J. Wysocki
2008-10-25 06:10:42 UTC
static unsigned int sock_poll(struct file *file, poll_table *wait) { struct socket *sock; /* * We can't return errors to poll, so it's either yes or no. */ sock = file->private_data; return sock->ops->poll(file, sock, wait); } sock->ops is NULL A patch has already been sent to Andrew: http://lkml.org/lkml/2008/10/17/491 I've been running the patch for some time now and the bug hasn't appeared anymore. The patch seems to fix it. |