freebsd-skq/sys/compat
kib 53224f018a Extend the KPI to lock and unlock f_offset member of struct file. It
now fully encapsulates all accesses to f_offset, and extends f_offset
locking to other consumers that need it, in particular, to lseek() and
variants of getdirentries().

Ensure that on 32bit architectures f_offset, which is 64bit quantity,
always read and written under the mtxpool protection. This fixes
apparently easy to trigger race when parallel lseek()s or lseek() and
read/write could destroy file offset.

The already broken ABI emulations, including iBCS and SysV, are not
converted (yet).

Tested by:	pho
No objections from:	jhb
MFC after:    3 weeks
2012-07-02 21:01:03 +00:00
..
freebsd32 Fix ki_cow for compat32 binaries. 2012-05-27 05:24:53 +00:00
ia32 Remove some unnecessary includes. 2012-03-18 19:15:11 +00:00
linprocfs Add procfs to jail-mountable filesystems. 2012-02-29 00:30:18 +00:00
linsysfs Add procfs to jail-mountable filesystems. 2012-02-29 00:30:18 +00:00
linux Extend the KPI to lock and unlock f_offset member of struct file. It 2012-07-02 21:01:03 +00:00
ndis Make sure that each va_start has one and only one matching va_end, 2012-05-29 01:48:06 +00:00
netbsd
svr4 Fix misuse of the kernel map in miscellaneous image activators. 2012-02-17 23:47:16 +00:00
x86bios Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00