| Summary: | open() bpf crashes system | ||
|---|---|---|---|
| Product: | Base System | Reporter: | david <david> |
| Component: | kern | Assignee: | Poul-Henning Kamp <phk> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 5.0-CURRENT | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->phk Looks like a DEVFS / cloning problem, which makes it phk's baby. State Changed From-To: open->closed Fixed in rev 1.101 of sys/kern/kern_conf.c |
The following code crashes the system. /* code */ #include <err.h> #include <fcntl.h> #include <sys/types.h> #include <unistd.h> int main(void) { int fd; char device[] = "/dev/bpf000000"; if ((fd = open(device, O_RDONLY)) < 0) err(1, "open"); close(fd); return 0; } Fix: unknown How-To-Repeat: As root, compile the code and execute it.