]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kern_copy_file_range(): check the file type.
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 24 Mar 2020 17:16:52 +0000 (17:16 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 24 Mar 2020 17:16:52 +0000 (17:16 +0000)
commit8cf8c2f65a406d1ba73c400a6fb32dd974e991c0
treee0af40f82c9dfc3f7cb9355b9f05e3bf84ed79e2
parentdb1102f2131c78b6f93a746386bbe88da6df8c84
kern_copy_file_range(): check the file type.

The syscall can only operate on valid vnode types.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
sys/kern/vfs_syscalls.c