opnsense-src/sys
Hans Petter Selasky f736cb92cf Check port number supplied by user verbs cmds in ibcore.
The ib_uverbs_create_ah() ind ib_uverbs_modify_qp() calls receive
the port number from user input as part of its attributes and assumes
it is valid. Down on the stack, that parameter is used to access kernel
data structures.  If the value is invalid, the kernel accesses memory
it should not.  To prevent this, verify the port number before using it.

Linux commit:
5ecce4c9b17bed4dc9cb58bfb10447307569b77b
a62ab66b13a0f9bcb17b7b761f6670941ed5cd62
5a7a88f1b488e4ee49eb3d5b82612d4d9ffdf2c3

MFC after:		1 week
Sponsored by:		Mellanox Technologies
2018-07-17 09:29:14 +00:00
..
amd64 Expand x86 struct pcpus to UMA_PCPU_ALLOC_SIZE AKA PAGE_SIZE. 2018-07-06 19:50:44 +00:00
arm allwinner: a83t: Fix PLL_CPU clocks 2018-07-16 13:38:16 +00:00
arm64 Enable UART support for Xilinx Ultrascale+ SoCs 2018-07-13 19:54:22 +00:00
bsm sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
cam remove unneeded inclusion of sys/interrupt.h from several files 2018-07-04 09:07:18 +00:00
cddl dtrace/powerpc: Correct register indices for non-indexed registers in the trapframe 2018-07-16 19:47:29 +00:00
compat Regen after r336171. 2018-07-10 14:04:52 +00:00
conf Revert 336358 and step away fron machine for the day... 2018-07-16 23:32:24 +00:00
contrib Correct the identifier for the Unifi Security Gateway 2018-07-10 17:01:19 +00:00
crypto Create an empty stdint.h for arm_neon.h to include. 2018-07-16 15:39:33 +00:00
ddb Extend show proc with reaper, sigparent, and vmspace information 2018-05-25 13:59:48 +00:00
dev Add support for prio-tagged traffic for RDMA in ibcore. 2018-07-17 09:11:53 +00:00
dts Add spi-max-frequency properties to all spigen nodes. This is a required 2018-06-23 22:55:22 +00:00
fs Modify the reasons for not issuing a delegation in the NFSv4.1 server. 2018-07-16 21:32:50 +00:00
gdb amd64: Protect the kernel text, data, and BSS by setting the RW/NX bits 2018-03-06 14:28:37 +00:00
geom OCF: Convert consumers to the session id typedef 2018-07-16 19:01:05 +00:00
gnu dts: Update our copy to Linux 4.17 2018-06-14 07:12:10 +00:00
i386 Restore the check for the page size extension after r332489. 2018-07-15 22:18:31 +00:00
isa Revert r330780, it was improperly tested and results in taking a spin 2018-03-11 20:13:15 +00:00
kern Extend amount of possible coredumps from 10 to 100000 when using index format. 2018-07-15 17:10:12 +00:00
kgssapi OCF: Convert consumers to the session id typedef 2018-07-16 19:01:05 +00:00
libkern Sync strlcpy with userland version, again 2018-06-21 17:35:13 +00:00
mips Invalidate the mapping before updating its physical address. 2018-07-13 17:12:50 +00:00
modules Create an empty stdint.h for arm_neon.h to include. 2018-07-16 15:39:33 +00:00
net Assorted TSO fixes for em(4)/iflib(9) and dead code removal: 2018-07-15 19:04:23 +00:00
net80211 net80211: Fix ifdetach w/o ifattach, small whitespace cleanup 2018-07-10 23:30:19 +00:00
netgraph Catch up two more places to the V_ifnet change to a CK_STAILQ. 2018-05-24 00:06:55 +00:00
netinet There was quite a bit of feedback on r336282 that has led to the 2018-07-14 23:53:51 +00:00
netinet6 acquire inp lock around ip6_pcbopt to fix IPV6_TCLASS panic 2018-07-15 00:47:06 +00:00
netipsec OCF: Add a typedef for session identifiers 2018-07-13 23:46:07 +00:00
netpfil pf: Fix synproxy 2018-07-14 10:14:59 +00:00
netsmb Eliminate the overhead of gratuitous repeated reinitialization of cap_rights 2018-05-09 18:47:24 +00:00
nfs Switch RIB and RADIX_NODE_HEAD lock from rwlock(9) to rmlock(9). 2018-06-16 08:26:23 +00:00
nfsclient style: Remove remaining deprecated MALLOC/FREE macros 2018-01-25 22:25:13 +00:00
nfsserver sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
nlm Use syscall_helper_register() to register syscalls and initialize though 2018-02-10 01:09:22 +00:00
ofed Check port number supplied by user verbs cmds in ibcore. 2018-07-17 09:29:14 +00:00
opencrypto OCF: Add a typedef for session identifiers 2018-07-13 23:46:07 +00:00
powerpc powerpc/powernv: Make opal_i2c driver work with attached i2c drivers 2018-07-09 20:33:48 +00:00
riscv Invalidate the mapping before updating its physical address. 2018-07-14 20:14:00 +00:00
rpc Fix the server side krpc so that the kernel nfsd threads terminate. 2018-07-02 17:50:46 +00:00
security auditon(2): fix A_SETPOLICY with 64-bit values 2018-07-15 21:10:19 +00:00
sparc64 Back pcpu zone with domain correct pages 2018-07-06 02:06:03 +00:00
sys FreeBSD_version bump as per r336351, 2018-07-17 02:20:51 +00:00
teken teken: Fix sequences header which was crossing the 80-col boundary 2018-05-29 08:41:44 +00:00
tests epoch_test: fix compile 2018-07-15 00:31:17 +00:00
tools Add dtb overlays support 2018-03-24 21:30:24 +00:00
ufs Add needed locking for um_flags added in -r335808. 2018-07-17 04:43:58 +00:00
vm Test PGA_REFERENCED after calling pmap_ts_referenced(), rather than before, 2018-07-15 19:25:15 +00:00
x86 Use the existing MSR_BIOS_SIGN on AMD. 2018-07-13 20:56:20 +00:00
xdr sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
xen xen: remove dead code from gnttab.h 2018-05-25 08:44:00 +00:00
Makefile Move sys/boot to stand. Fix all references to new location 2017-11-14 23:02:19 +00:00