summaryrefslogtreecommitdiffstats
path: root/sys/fs/fifofs
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-09-15 15:03:48 +0000
committercsjp <csjp@FreeBSD.org>2005-09-15 15:03:48 +0000
commitf7f404fd08fc10c304252f14f43b066e2da01876 (patch)
tree0cf2e21617ac1c61f17d1eeba538ed4ab86e87a8 /sys/fs/fifofs
parentba5243d89406151fe76991cd01becd6b2ccc441b (diff)
downloadFreeBSD-src-f7f404fd08fc10c304252f14f43b066e2da01876.zip
FreeBSD-src-f7f404fd08fc10c304252f14f43b066e2da01876.tar.gz
Improve the MP safeness associated with the creation of symbolic
links and the execution of ELF binaries. Two problems were found: 1) The link path wasn't tagged as being MP safe and thus was not properly protected. 2) The ELF interpreter vnode wasnt being locked in namei(9) and thus was insufficiently protected. This commit makes the following changes: -Sets the MPSAFE flag in NDINIT for symbolic link paths -Sets the MPSAFE flag in NDINIT and introduce a vfslocked variable which will be used to instruct VFS_UNLOCK_GIANT to unlock Giant if it has been picked up. -Drop in an assertion into vfs_lookup which ensures that if the MPSAFE flag is NOT set, that we have picked up giant. If not panic (if WITNESS compiled into the kernel). This should help us find conditions where vnode operations are in-sufficiently protected. This is a RELENG_6 candidate. Discussed with: jeff MFC after: 4 days
Diffstat (limited to 'sys/fs/fifofs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud