<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/fs/nullfs, branch upstream/10.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-08-22T07:09:54Z</updated>
<entry>
<title>MFC r269708:</title>
<updated>2014-08-22T07:09:54Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2014-08-22T07:09:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a93528c0aa1ecb6a879cfbcecf6285fe7b0a3ba2'/>
<id>urn:sha1:a93528c0aa1ecb6a879cfbcecf6285fe7b0a3ba2</id>
<content type='text'>
Unlock ldvp and lock dvp to compensate for possible ldvp unlock in lower
VOP_LOOKUP() and dvp reclamation.  Use cached value of dvp-&gt;v_mount.
</content>
</entry>
<entry>
<title>MFC r269187:</title>
<updated>2014-08-04T01:10:47Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2014-08-04T01:10:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f05c03be93b14065514d65e4e486162e8aac895f'/>
<id>urn:sha1:f05c03be93b14065514d65e4e486162e8aac895f</id>
<content type='text'>
Assert that nullfs vnode has VV_ROOT set whenever lower vnode has.
Assert that dotdot lookup on the root vnode is not performed.
</content>
</entry>
<entry>
<title>MFC r268764:</title>
<updated>2014-07-30T03:56:17Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2014-07-30T03:56:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6a39cfb720c74500f64a53aa956e7b4a85d2a66d'/>
<id>urn:sha1:6a39cfb720c74500f64a53aa956e7b4a85d2a66d</id>
<content type='text'>
Check for the cross-device cross-link attempt in the VFS, instead of
VOP_LINK() implemenations.
</content>
</entry>
<entry>
<title>MFC r269081:</title>
<updated>2014-07-27T18:08:47Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2014-07-27T18:08:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6fd6cfcddf02ab8c483d3d21326116bcde450cbe'/>
<id>urn:sha1:6fd6cfcddf02ab8c483d3d21326116bcde450cbe</id>
<content type='text'>
Fix typo.
</content>
</entry>
<entry>
<title>Fix the length calculation for the final block of a sendfile(2)</title>
<updated>2013-09-10T10:05:59Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2013-09-10T10:05:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1a05c762b9c203dec97fc053448eab98b525b088'/>
<id>urn:sha1:1a05c762b9c203dec97fc053448eab98b525b088</id>
<content type='text'>
transmission which could be tricked into rounding up to the nearest
page size, leaking up to a page of kernel memory.  [13:11]

In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR
and SIOCSIFNETMASK at the socket layer rather than pass them on to the
link layer without validation or credential checks.  [SA-13:12]

Prevent cross-mount hardlinks between different nullfs mounts of the
same underlying filesystem.  [SA-13:13]

Security:	CVE-2013-5666
Security:	FreeBSD-SA-13:11.sendfile
Security:	CVE-2013-5691
Security:	FreeBSD-SA-13:12.ifioctl
Security:	CVE-2013-5710
Security:	FreeBSD-SA-13:13.nullfs
Approved by:	re
</content>
</entry>
<entry>
<title>The tvp vnode on rename is usually unlinked.  Drop the cached null</title>
<updated>2013-07-04T19:01:18Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2013-07-04T19:01:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=18a8d3d7f828425762df3857e940dd1e6a5f2f86'/>
<id>urn:sha1:18a8d3d7f828425762df3857e940dd1e6a5f2f86</id>
<content type='text'>
vnode for tvp to allow the free of the lower vnode, if needed.

PR:	kern/180236
Tested by:	smh
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
</content>
</entry>
<entry>
<title>Do not leak the NULLV_NOUNLOCK flag from the nullfs_unlink_lowervp(),</title>
<updated>2013-05-21T11:31:56Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2013-05-21T11:31:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=74c7ff1a0e940fd35af0390f31ec96767da5f8e2'/>
<id>urn:sha1:74c7ff1a0e940fd35af0390f31ec96767da5f8e2</id>
<content type='text'>
for the case when the nullfs vnode is not reclaimed.  Otherwise, later
reclamation would not unlock the lower vnode.

Reported by:	antoine
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
</content>
</entry>
<entry>
<title>- Fix nullfs vnode reference leak in nullfs_reclaim_lowervp().  The</title>
<updated>2013-05-11T11:17:44Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2013-05-11T11:17:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0fc6daa72d3513dbb7c5699a3eb9cee69ef4bd23'/>
<id>urn:sha1:0fc6daa72d3513dbb7c5699a3eb9cee69ef4bd23</id>
<content type='text'>
  null_hashget() obtains the reference on the nullfs vnode, which must
  be dropped.

- Fix a wart which existed from the introduction of the nullfs
  caching, do not unlock lower vnode in the nullfs_reclaim_lowervp().
  It should be innocent, but now it is also formally safe.  Inform the
  nullfs_reclaim() about this using the NULLV_NOUNLOCK flag set on
  nullfs inode.

- Add a callback to the upper filesystems for the lower vnode
  unlinking. When inactivating a nullfs vnode, check if the lower
  vnode was unlinked, indicated by nullfs flag NULLV_DROP or VV_NOSYNC
  on the lower vnode, and reclaim upper vnode if so.  This allows
  nullfs to purge cached vnodes for the unlinked lower vnode, avoiding
  excessive caching.

Reported by:	G??ran L??wkrantz &lt;goran.lowkrantz@ismobile.com&gt;
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>nullfs: Improve f_flags in statfs().</title>
<updated>2013-03-02T12:42:23Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-03-02T12:42:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6d6a91c50f1b41d67b94760a06758e867fda35fa'/>
<id>urn:sha1:6d6a91c50f1b41d67b94760a06758e867fda35fa</id>
<content type='text'>
Include some flags of the nullfs mount itself:
MNT_RDONLY, MNT_NOEXEC, MNT_NOSUID, MNT_UNION, MNT_NOSYMFOLLOW.

This allows userland code calling statfs() or fstatfs() to see these flags.
In particular, this allows opendir() to detect that a -t nullfs -o union
mount needs deduplication (otherwise at least . and .. are returned twice)
and allows rtld to detect a -t nullfs -o noexec mount as noexec.

Turn off the MNT_ROOTFS flag from the underlying filesystem because the
nullfs mount is definitely not the root filesystem.

Reviewed by:	kib
MFC after:	1 week
</content>
</entry>
<entry>
<title>Remove the filtering of the acceptable mount options for nullfs, added</title>
<updated>2013-01-16T05:32:49Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2013-01-16T05:32:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e8f966eeb895a11117eff04f52ee8373e1618704'/>
<id>urn:sha1:e8f966eeb895a11117eff04f52ee8373e1618704</id>
<content type='text'>
in r245004.  Although the report was for noatime option which is
non-functional for the nullfs, other standard options like nosuid or
noexec are useful with it.

Reported by:	Dewayne Geraghty &lt;dewayne.geraghty@heuristicsystems.com.au&gt;
MFC after:	3 days
</content>
</entry>
</feed>
