History log of /freebsd-10-stable/sys/kern/vfs_vnops.c
Revision Date Author Comments
# 338605 12-Sep-2018 gordon

MFC 338603:
Correct ELF header parsing code to prevent invalid ELF sections from
disclosing memory.

Submitted by: markj
Reported by: Thomas Barabosch, Fraunhofer FKIE
Approved by: so
Security: FreeBSD-SA-18:12.elf
Security: CVE-2018-6924
Sponsored by: The FreeBSD Foundation


# 314202 24-Feb-2017 kib

MFC r313496:
Increase a chance of devfs_close() calling d_close cdevsw method.


# 301100 01-Jun-2016 kib

MFC r300142:
Ensure that ftruncate(2) is performed synchronously when file is
opened in O_SYNC mode, at least for UFS.


# 299677 13-May-2016 pfg

MFC r298809, r298817
Minor spelling fixes.


# 295614 14-Feb-2016 kib

MFC r294596:
Limit the accesses to file' f_advice member to VREG vnodes only.
Recheck that f_advice is not NULL after lock is taken.

Approved by: re (marius)


# 287847 16-Sep-2015 kib

MFC r287599:
Correct handling of open("name", O_DIRECTORY | O_CREAT).

PR: 202892


# 286399 07-Aug-2015 kib

MFC r286106:
Provide a prefaulting for the userspace i/o buffers, disabled by default.


# 284202 10-Jun-2015 kib

MFC r283601:
Add V_MNTREF flag, to indicate that caller of vn_start*_write() already
owns a reference on the mount point, and the functions can consume it.


# 276649 03-Jan-2015 kib

MFC r276008:
Add VN_OPEN_NAMECACHE flag for vn_open_cred(9), which requests that
the created file name was cached. Use the flag for core dumps.


# 276500 01-Jan-2015 kib

MFC r275897:
Set NOCACHE flag for CREATE namei() calls, do not specially handle
MAKEENTRY in VOP_LOOKUP().


# 275957 20-Dec-2014 kib

MFC r275744:
Only sleep interruptible while waiting for suspension end when
filesystem specified VFCF_SBDRY flag, i.e. for NFS.


# 274787 21-Nov-2014 kib

MFC r274501:
In vfs_write_suspend_umnt(), if suspension cannot be established, do
not forget to restore write ops count when returning the error.


# 273254 18-Oct-2014 kib

MFC r272534:
Add IO_RANGELOCKED flag for vn_rdwr(9), which specifies that vnode is
not locked, but range is.


# 272948 11-Oct-2014 kib

MFC r272538:
Slightly reword comment. Move code, which is described by the
comment, after it.


# 272187 26-Sep-2014 mjg

MFC r270993:

Fix up proc_realparent to always return correct process.

Prior to the change it would always return initproc for non-traced processes.

This fixes a regression in inferior().

Approved by: re (marius)


# 269171 27-Jul-2014 kib

MFC r268612:
Add helper helper vfs_write_suspend_umnt().

Fix the bug in the FFS unmount, when suspension failed, the ufs
extattrs were not reinitialized.


# 269165 27-Jul-2014 kib

MFC r268606:
Generalize vn_get_ino() to allow filesystems to use custom vnode
producer. Convert inline copies of vn_get_ino() in msdosfs and cd9660
into the uses of vn_get_ino_gen().


# 268015 29-Jun-2014 kib

MFC r267491:
Use vn_io_fault for the writes from core dumping code.


# 267816 24-Jun-2014 kib

MFC r267564:
In msdosfs_setattr(), add a check for result of the utimes(2) permissions test.
Refactor the permission checks for utimes(2).


# 259817 24-Dec-2013 kib

MFC r259522:
If vn_open_vnode() succeeded in opening the vnode, but subsequent
advisory lock cannot be obtained, prevent double-close of the vnode in
vn_close() called from the fdrop(), by resetting file' f_ops methods.


# 259499 17-Dec-2013 kib

MFC r258039:
Avoid overflow for the page counts.

MFC r258365:
Revert back to use int for the page counts.
Rearrange the checks to correctly handle overflowing address arithmetic.


# 259294 13-Dec-2013 kib

MFC r257898:
Change VFS_PROLOGUE() to evaluate the mp once, convert
MNTK_SHARED_WRITES and MNTK_EXTENDED_SHARED tests into inline functions.


# 287847 16-Sep-2015 kib

MFC r287599:
Correct handling of open("name", O_DIRECTORY | O_CREAT).

PR: 202892


# 286399 07-Aug-2015 kib

MFC r286106:
Provide a prefaulting for the userspace i/o buffers, disabled by default.


# 284202 10-Jun-2015 kib

MFC r283601:
Add V_MNTREF flag, to indicate that caller of vn_start*_write() already
owns a reference on the mount point, and the functions can consume it.


# 276649 03-Jan-2015 kib

MFC r276008:
Add VN_OPEN_NAMECACHE flag for vn_open_cred(9), which requests that
the created file name was cached. Use the flag for core dumps.


# 276500 01-Jan-2015 kib

MFC r275897:
Set NOCACHE flag for CREATE namei() calls, do not specially handle
MAKEENTRY in VOP_LOOKUP().


# 275957 20-Dec-2014 kib

MFC r275744:
Only sleep interruptible while waiting for suspension end when
filesystem specified VFCF_SBDRY flag, i.e. for NFS.


# 274787 21-Nov-2014 kib

MFC r274501:
In vfs_write_suspend_umnt(), if suspension cannot be established, do
not forget to restore write ops count when returning the error.


# 273254 18-Oct-2014 kib

MFC r272534:
Add IO_RANGELOCKED flag for vn_rdwr(9), which specifies that vnode is
not locked, but range is.


# 272948 11-Oct-2014 kib

MFC r272538:
Slightly reword comment. Move code, which is described by the
comment, after it.


# 272187 26-Sep-2014 mjg

MFC r270993:

Fix up proc_realparent to always return correct process.

Prior to the change it would always return initproc for non-traced processes.

This fixes a regression in inferior().

Approved by: re (marius)


# 269171 27-Jul-2014 kib

MFC r268612:
Add helper helper vfs_write_suspend_umnt().

Fix the bug in the FFS unmount, when suspension failed, the ufs
extattrs were not reinitialized.


# 269165 27-Jul-2014 kib

MFC r268606:
Generalize vn_get_ino() to allow filesystems to use custom vnode
producer. Convert inline copies of vn_get_ino() in msdosfs and cd9660
into the uses of vn_get_ino_gen().


# 268015 29-Jun-2014 kib

MFC r267491:
Use vn_io_fault for the writes from core dumping code.


# 267816 24-Jun-2014 kib

MFC r267564:
In msdosfs_setattr(), add a check for result of the utimes(2) permissions test.
Refactor the permission checks for utimes(2).


# 259817 24-Dec-2013 kib

MFC r259522:
If vn_open_vnode() succeeded in opening the vnode, but subsequent
advisory lock cannot be obtained, prevent double-close of the vnode in
vn_close() called from the fdrop(), by resetting file' f_ops methods.


# 259499 17-Dec-2013 kib

MFC r258039:
Avoid overflow for the page counts.

MFC r258365:
Revert back to use int for the page counts.
Rearrange the checks to correctly handle overflowing address arithmetic.


# 259294 13-Dec-2013 kib

MFC r257898:
Change VFS_PROLOGUE() to evaluate the mp once, convert
MNTK_SHARED_WRITES and MNTK_EXTENDED_SHARED tests into inline functions.