Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2015 19:06:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 200323] BPF userland misuse can crash the system
Message-ID:  <bug-200323-2472-2XASqv7859@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-200323-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-200323-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200323

--- Comment #23 from commit-hook@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200323-2472-2XASqv7859>