]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kern_copy_file_range(): check the file type.
authorkib <kib@FreeBSD.org>
Tue, 24 Mar 2020 17:16:52 +0000 (17:16 +0000)
committerkib <kib@FreeBSD.org>
Tue, 24 Mar 2020 17:16:52 +0000 (17:16 +0000)
commit1299dbec8a224fc6846e01e1e5a8391be6fc6ee8
treee0af40f82c9dfc3f7cb9355b9f05e3bf84ed79e2
parent6e9131e1da4c998d823ca3299c97a00aadd8485c
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