]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The tmpfs_link() must not dereference the filesystem-specific data for
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 14 Jul 2014 08:45:29 +0000 (08:45 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 14 Jul 2014 08:45:29 +0000 (08:45 +0000)
commit706f80801d4debfdb75220308d03812afeb890ea
tree1979e37130c6f7331327ecfeb624044fe1d688ff
parent57ef02ff0f3beeee95ac757a1e8eaa1ab10036de
The tmpfs_link() must not dereference the filesystem-specific data for
a vnode until it is verified that the vnode indeed belongs to tmpfs
mount.  Otherwise, it might access random memory, at least in the
debug kernel.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
sys/fs/tmpfs/tmpfs_vnops.c