freebsd-skq/sys/compat/linux
Conrad Meyer c6943f3abc linux_ioctl: Refactor some v4l2 struct converters
According to the C standard, it is invalid to copy beyond the end of an
object, even if that object is obviously a member of a larger object (a
struct, in this case).

Appease the standard and Coverity by refactoring the copy in a
straightforward way.  No functional change.

Reported by:	Coverity (CWE-120)
CIDs:		1007819, 1007820, 1007821, 1007822, 1009668, 1009669
Security:	no (false positive detection)
Sponsored by:	Dell EMC Isilon
2017-04-13 17:34:51 +00:00
..
check_error.d Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
check_internal_locks.d sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00
linux_common.c Move FEATURE macros for v4l and v4l2 to the common module. 2015-05-24 16:00:01 +00:00
linux_dtrace.h Fix style issues around existing SDT probes. 2015-12-16 23:39:27 +00:00
linux_emul.c Implement Linux personality() system call mainly due to READ_IMPLIES_EXEC flag. 2016-07-10 08:15:50 +00:00
linux_emul.h Implement Linux personality() system call mainly due to READ_IMPLIES_EXEC flag. 2016-07-10 08:15:50 +00:00
linux_event.c Linux epoll return EEXIST on case when op is EPOLL_CTL_ADD, and the supplied 2017-02-28 19:55:16 +00:00
linux_event.h Implement timerfd family syscalls. 2017-02-26 09:48:18 +00:00
linux_file.c Add linux_preadv() and linux_pwritev() syscalls to Linuxulator. 2017-02-24 20:04:02 +00:00
linux_file.h Add several fcntl flags. 2015-05-24 16:32:52 +00:00
linux_fork.c Update comments for the MD functions managing contexts for new 2016-06-16 12:05:44 +00:00
linux_futex.c Remove excess tv_nsec test as this is done by linux_to_native_timespec(). 2017-04-02 07:49:05 +00:00
linux_futex.h Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
linux_getcwd.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_ioctl.c linux_ioctl: Refactor some v4l2 struct converters 2017-04-13 17:34:51 +00:00
linux_ioctl.h Adding SIOCGIFNAME support in Linuxulator. This should silence the console warning associated 2017-04-09 15:27:04 +00:00
linux_ipc64.h Reduce code duplication between MD Linux code by moving SYSV IPC 64-bit 2017-03-07 17:07:16 +00:00
linux_ipc.c Prevent ushort values overflow when convert new Linux 64-bit ipc 2017-04-07 05:37:08 +00:00
linux_ipc.h x86_64 Linux do not use multiplexing on ipc system calls. 2015-05-24 15:44:41 +00:00
linux_mib.c osd(9): Change array pointer to array pointer type from void* 2016-04-26 19:57:35 +00:00
linux_mib.h Update Linux compat revision to 32. 2015-05-24 16:55:32 +00:00
linux_misc.c Use kern_mincore() helper instead of abusing syscall entry. 2017-03-30 19:45:07 +00:00
linux_misc.h Implement getrandom() syscall. 2017-03-18 18:34:29 +00:00
linux_mmap.c There are some Linux binaries that expect the system to obey the "addr" 2017-02-19 17:17:06 +00:00
linux_mmap.h Fix a copy/paste bug introduced during X86_64 Linuxulator work. 2016-07-10 08:22:04 +00:00
linux_persona.h Implement Linux personality() system call mainly due to READ_IMPLIES_EXEC flag. 2016-07-10 08:15:50 +00:00
linux_signal.c Implement rt_tgsigqueueinfo system call used by glibc for pthread_sigqueue(3). 2017-02-19 07:38:11 +00:00
linux_signal.h Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
linux_socket.c As noted by Roel Bouwman Linux allows a large buffer size than the 2017-03-18 18:31:04 +00:00
linux_socket.h To reduce code duplication move socket defines to the MI path. 2017-03-18 18:23:30 +00:00
linux_stats.c Fix linux_fstatfs() to return proper value for f_frsize. Without it, 2017-02-25 20:32:37 +00:00
linux_sysctl.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_sysproto.h
linux_time.c Use the kern_clock_nanosleep() to implement Linux clock_nanosleep() with 2017-04-02 18:16:00 +00:00
linux_timer.c Return EINVAL in case of incorrect sigev_signo value specified instead of panicing. 2015-12-26 09:09:49 +00:00
linux_timer.h Use the kern_clock_nanosleep() to implement Linux clock_nanosleep() with 2017-04-02 18:16:00 +00:00
linux_uid16.c Where possible we will use M_LINUX malloc(9) type. 2015-05-24 16:14:41 +00:00
linux_util.c Implement epoll family system calls. This is a tiny wrapper 2015-05-24 16:41:39 +00:00
linux_util.h Add UNIMPLEMENTED() placeholder macro for 2017-03-06 18:11:38 +00:00
linux_vdso.c Fix usage of the same 'i' variable in the external and nested loops. 2017-03-14 18:29:23 +00:00
linux_vdso.h Add 64 bit support to the vdso. 2015-05-24 15:45:36 +00:00
linux_videodev2_compat.h
linux_videodev_compat.h
linux.c Improve debugging output. 2017-02-16 10:36:00 +00:00
linux.h Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
stats_timing.d Switch linuxulator to use the native 1:1 threads. 2015-05-24 14:53:16 +00:00
trace_futexes.d sys/compat/linux*: spelling fixes. 2016-04-30 00:53:10 +00:00