aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses
diff options
context:
space:
mode:
authorEric Joyner <erj@FreeBSD.org>2018-10-23 04:37:29 +0000
committerEric Joyner <erj@FreeBSD.org>2018-10-23 04:37:29 +0000
commit940f62d616c8bdfaa5dc585e387044d1cc99ea3a (patch)
tree84f8e446a83b0f2ef48f6dba42900e02f93c5753 /lib/ncurses
parent3c22d7899730a4a7434bb17bd2d1ac6f162ec74e (diff)
downloadsrc-940f62d616c8bdfaa5dc585e387044d1cc99ea3a.tar.gz
src-940f62d616c8bdfaa5dc585e387044d1cc99ea3a.zip
iflib: drain enqueued tasks before detaching from taskqgroup
The taskqgroup_detach function does not check if task is already enqueued when detaching it. This may lead to kernel panic if enqueued task starts after context state lock is destroyed. Ensure that the already enqueued admin tasks are executed before detaching them. The issue was discovered during validation of D16429. Unloading of if_ixlv followed by immediate removal of VFs with iovctl -D may lead to panic on NODEBUG kernel. As well, check if iflib is in detach before enqueueing new admin or iov tasks, to prevent new tasks from executing while the taskqgroup tasks are being drained. Submitted by: Krzysztof Galazka <krzysztof.galazka@intel.com> Reviewed by: shurd@, erj@ Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D17404
Notes
Notes: svn path=/head/; revision=339634
Diffstat (limited to 'lib/ncurses')
0 files changed, 0 insertions, 0 deletions