Date: Wed, 2 Sep 2020 16:22:14 +0000 (UTC) From: Gordon Tetlow <gordon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r365254 - in releng: 11.3/sys/kern 11.4/sys/kern Message-ID: <202009021622.082GMEXj036002@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gordon Date: Wed Sep 2 16:22:14 2020 New Revision: 365254 URL: https://svnweb.freebsd.org/changeset/base/365254 Log: Fix getfsstat compatibility system call panic. Approved by: so Security: FreeBSD-EN-20:18.getfsstat Modified: releng/11.3/sys/kern/vfs_syscalls.c releng/11.4/sys/kern/vfs_syscalls.c Modified: releng/11.3/sys/kern/vfs_syscalls.c ============================================================================== --- releng/11.3/sys/kern/vfs_syscalls.c Wed Sep 2 16:21:27 2020 (r365253) +++ releng/11.3/sys/kern/vfs_syscalls.c Wed Sep 2 16:22:14 2020 (r365254) @@ -409,6 +409,8 @@ kern_getfsstat(struct thread *td, struct statfs **buf, case MNT_NOWAIT: break; default: + if (bufseg == UIO_SYSSPACE) + *buf = NULL; return (EINVAL); } restart: Modified: releng/11.4/sys/kern/vfs_syscalls.c ============================================================================== --- releng/11.4/sys/kern/vfs_syscalls.c Wed Sep 2 16:21:27 2020 (r365253) +++ releng/11.4/sys/kern/vfs_syscalls.c Wed Sep 2 16:22:14 2020 (r365254) @@ -409,6 +409,8 @@ kern_getfsstat(struct thread *td, struct statfs **buf, case MNT_NOWAIT: break; default: + if (bufseg == UIO_SYSSPACE) + *buf = NULL; return (EINVAL); } restart:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009021622.082GMEXj036002>