]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Properly implement poll_wait() in the LinuxKPI. This prevents direct
authorHans Petter Selasky <hselasky@FreeBSD.org>
Sat, 9 Sep 2017 06:29:29 +0000 (06:29 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Sat, 9 Sep 2017 06:29:29 +0000 (06:29 +0000)
commit6dec7efa83cd0316c268618cdaa9a383e78312ac
tree430a9d28713265713cb39f48fb1388f7ba4e6b51
parent71607cbea736714f933cec7196c788d4d01da216
Properly implement poll_wait() in the LinuxKPI. This prevents direct
use of the linux_poll_wakeup() function from unsafe contexts, which
can lead to use-after-free issues.

Instead of calling linux_poll_wakeup() directly use the wake_up()
family of functions in the LinuxKPI to do this.

Bump the FreeBSD version to force recompilation of external kernel modules.

MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/compat/linuxkpi/common/include/linux/fs.h
sys/compat/linuxkpi/common/include/linux/poll.h
sys/compat/linuxkpi/common/src/linux_compat.c
sys/sys/param.h