freebsd-skq/sys
markj 293becab6b Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers.
The Linux32 system call argument fetcher places each argument (passed in
registers in the Linux x86 system call convention) into an entry in the
generic system call args array.  Each member of this array is 8 bytes
wide, so this approach is broken for system calls that take off_t
arguments.

Fix the problem by splitting l_loff_t arguments in the 32-bit system
call descriptions, the same as we do for FreeBSD32.  Change entry points
to handle this using the PAIR32TO64 macro.

Move linux_ftruncate64() into compat/linux.

PR:		243155
Reported by:	Alex S <iwtcex@gmail.com>
Reviewed by:	kib (previous version)
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D23210
2020-01-21 17:28:22 +00:00
..
amd64 Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers. 2020-01-21 17:28:22 +00:00
arm zilinx/zy7_qspi: Add a qspi driver for Zynq platforms. 2020-01-19 20:04:44 +00:00
arm64 rk805: Add a regnode_init method 2020-01-19 19:56:50 +00:00
bsm Jail and capability mode for shm_rename; add audit support for shm_rename 2019-11-18 13:31:16 +00:00
cam Const-poison the cam_sim_* convenience accessor functions. 2020-01-09 16:34:54 +00:00
cddl Map ECKSUM and EFRAGS from ZFS onto real errnos. 2020-01-13 22:06:16 +00:00
compat Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers. 2020-01-21 17:28:22 +00:00
conf sysent.mk: split interpreter out of target command 2020-01-21 05:01:11 +00:00
contrib MFV: r356607 2020-01-10 22:49:14 +00:00
crypto Fix the armv8 crypto driver after r354170. 2019-10-30 10:41:10 +00:00
ddb Add KERNEL_PANICKED macro for use in place of direct panicstr tests 2020-01-12 06:07:54 +00:00
dev Add support for latest Intel I219 device, supported in Lenovo Carbon X1 v7 2020-01-20 12:53:02 +00:00
dts zilinx/zy7_qspi: Add a qspi driver for Zynq platforms. 2020-01-19 20:04:44 +00:00
fs Don't hold the object lock while calling getpages. 2020-01-19 23:47:32 +00:00
gdb Add KERNEL_PANICKED macro for use in place of direct panicstr tests 2020-01-12 06:07:54 +00:00
geom GEOM label: strip leading/trailing space synthesizing devfs names 2020-01-18 03:33:44 +00:00
gnu Import DTS files for riscv from Linux 5.4 2019-12-03 09:12:53 +00:00
i386 Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers. 2020-01-21 17:28:22 +00:00
isa sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
kern Make sure the VNET is properly set when calling tcp_drop() from 2020-01-21 11:43:25 +00:00
kgssapi Stop using des_cblock * for arguments to DES functions. 2019-08-26 17:25:07 +00:00
libkern random(9): Deprecate random(9), remove meaningless srandom(9) 2019-12-26 19:41:09 +00:00
mips Preserve the inherited value of the status register in cpu_set_upcall(). 2020-01-14 18:00:04 +00:00
modules [PowerPC64] Enable virtio drivers 2020-01-16 11:33:15 +00:00
net Document requirements for the 'struct route' variations. 2020-01-21 12:00:34 +00:00
net80211 net80211: Move rate printing in amrr_node_stats() to a separate method 2020-01-17 22:04:11 +00:00
netgraph Generate MAC address from the FreeBSD OUI range. 2020-01-16 20:12:15 +00:00
netinet Remove debug code not needed anymore. 2020-01-16 17:15:06 +00:00
netinet6 Document requirements for the 'struct route' variations. 2020-01-21 12:00:34 +00:00
netipsec Fix m_pullup() problem after removing PULLDOWN_TESTs and KAME EXT_*macros. 2019-12-01 00:22:04 +00:00
netpfil Introduce NET_EPOCH_CALL() macro and use it everywhere where we free 2020-01-15 06:05:20 +00:00
netsmb Stop using des_cblock * for arguments to DES functions. 2019-08-26 17:25:07 +00:00
nfs vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
nfsclient
nfsserver
nlm vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
ofed Make sure the VNET is properly set when reaping mbufs in ipoib. 2020-01-11 12:02:16 +00:00
opencrypto Add stricter checking on mac key lengths. 2020-01-09 18:29:59 +00:00
powerpc powerpc/amiga: Hide CPLD date and time printing behind bootverbose 2020-01-20 04:01:35 +00:00
riscv Check for invalid sstatus values in set_mcontext(). 2020-01-17 19:13:49 +00:00
rpc Change r355157 to make svc_rpc_gss_lifetime_max a static. 2019-11-28 02:18:51 +00:00
security vfs: eliminate v_tag from struct vnode 2020-01-07 04:29:34 +00:00
sparc64 Add KERNEL_PANICKED macro for use in place of direct panicstr tests 2020-01-12 06:07:54 +00:00
sys Provide an API for interlocked refcount sleeps. 2020-01-19 18:18:17 +00:00
teken Adjust teken to allow build as part of loader 2019-09-05 18:07:40 +00:00
tests
tools Add a 'SINGLETON' directive to kobj interface definition 2020-01-18 02:39:38 +00:00
ufs We only want to send the speedup to the lower layers when there's a shortage. 2020-01-17 01:16:23 +00:00
vm Move readahead and dropbehind fault functionality into a helper routine for 2020-01-21 00:12:57 +00:00
x86 Add support for Hygon Dhyana Family 18h processor. 2020-01-21 13:22:35 +00:00
xdr
xen
Makefile