[Bug 200323] BPF userland misuse can crash the system
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 17 19:06:30 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200323
--- Comment #23 from commit-hook at freebsd.org ---
A commit references this bug:
Author: loos
Date: Mon Aug 17 19:06:15 UTC 2015
New revision: 286859
URL: https://svnweb.freebsd.org/changeset/base/286859
Log:
MFC r286260:
Remove the mtx_sleep() from the kqueue f_event filter.
The filter is called from the network hot path and must not sleep.
The filter runs with the descriptor lock held and does not manipulate the
buffers, so it is not necessary sleep when the hold buffer is in use.
Just ignore the hold buffer contents when it is being copied to user space
(when hold buffer in use is set).
This fix the "Sleeping thread owns a non-sleepable lock" panic when the
userland thread is too busy reading the packets from bpf(4).
PR: 200323
Sponsored by: Rubicon Communications (Netgate)
Changes:
_U stable/10/
stable/10/sys/net/bpf.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-net
mailing list