]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r319852:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 15 Jun 2017 04:37:23 +0000 (04:37 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 15 Jun 2017 04:37:23 +0000 (04:37 +0000)
commit984ce6f4e3cead6fb9457d7539a80521b518b8d7
treef4cd418ee7cef6f5d567c07d4d5d8892c3d87a4c
parentd187b12185ae6fd397b2fee861590ce2e5f1b2ba
MFC r319852:

Fix buffer lengths.

After r319369, the RPC code validates caller supplied buffer length in
taddr2uaddr.  When no -h is specified, the sizeof(ai_addr) is used,
which is always smaller than the required size and therefore uaddr
would be NULL, causing the kernel to copyin() from userland NULL
and fail with EFAULT.

git-svn-id: svn://svn.freebsd.org/base/stable/10@319966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/rpc.lockd/lockd.c