Correct a kernel stack leak in 32-bit compat when vfc_name is short.
Don't zero unused pointer members again. Per discussion with secteam we are not issuing an advisory for this issue as we have no current evidence it leaks exploitable information. Reviewed by: rwatson, glebius, delphij MFC after: 1 day Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D10227
This commit is contained in:
parent
6795b86714
commit
db3625531e
@ -3781,12 +3781,11 @@ vfsconf2x32(struct sysctl_req *req, struct vfsconf *vfsp)
|
||||
{
|
||||
struct xvfsconf32 xvfsp;
|
||||
|
||||
bzero(&xvfsp, sizeof(xvfsp));
|
||||
strcpy(xvfsp.vfc_name, vfsp->vfc_name);
|
||||
xvfsp.vfc_typenum = vfsp->vfc_typenum;
|
||||
xvfsp.vfc_refcount = vfsp->vfc_refcount;
|
||||
xvfsp.vfc_flags = vfsp->vfc_flags;
|
||||
xvfsp.vfc_vfsops = 0;
|
||||
xvfsp.vfc_next = 0;
|
||||
return (SYSCTL_OUT(req, &xvfsp, sizeof(xvfsp)));
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user