freebsd-nq/sys
Chuck Tuffli 3575504976 Fix the Linux kernel version number calculation
The Linux compatibility code was converting the version number (e.g.
2.6.32) in two different ways and then comparing the results.

The linux_map_osrel() function converted MAJOR.MINOR.PATCH similar to
what FreeBSD does natively. I.e. where major=v0, minor=v1, and patch=v2
    v = v0 * 1000000 + v1 * 1000 + v2;

The LINUX_KERNVER() macro, on the other hand, converted the value with
bit shifts. I.e. where major=a, minor=b, and patch=c
    v = (((a) << 16) + ((b) << 8) + (c))

The Linux kernel uses the later format via the KERNEL_VERSION() macro in
include/generated/uapi/linux/version.h

Fix is to use the LINUX_KERNVER() macro in linux_map_osrel() as well as
in the .trans_osrel functions.

PR: 229209
Reviewed by: emaste, cem, imp (mentor)
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D15952
2018-06-22 00:02:03 +00:00
..
amd64 Fix the Linux kernel version number calculation 2018-06-22 00:02:03 +00:00
arm Add MMCCAM support to AllWinner MMC driver 2018-06-21 11:49:21 +00:00
arm64 Add pmap_mapdev_attr for arm64 2018-06-20 16:07:35 +00:00
bsm
cam Fix setting RCA for MMC cards 2018-06-19 20:02:03 +00:00
cddl This originated from ZFS On Linux, as 2018-06-08 17:38:28 +00:00
compat Fix the Linux kernel version number calculation 2018-06-22 00:02:03 +00:00
conf Incorporate bus and chip select numbers into spigen(4) cdev names. Rather 2018-06-21 21:16:26 +00:00
contrib Really fix the style. 2018-06-19 18:43:02 +00:00
crypto disable printing value of SKEIN_LOOP during standard out, 2018-05-19 18:27:14 +00:00
ddb Extend show proc with reaper, sigparent, and vmspace information 2018-05-25 13:59:48 +00:00
dev Incorporate bus and chip select numbers into spigen(4) cdev names. Rather 2018-06-21 21:16:26 +00:00
dts arm: overlays: Update to new path-based sugar format 2018-05-04 14:38:48 +00:00
fs Revert r335263, since it can cause crashes in unusual circumstances. 2018-06-17 23:08:54 +00:00
gdb
geom gpart: add EFI alias for MBR partition scheme 2018-06-17 20:10:48 +00:00
gnu dts: Update our copy to Linux 4.17 2018-06-14 07:12:10 +00:00
i386 Fix the Linux kernel version number calculation 2018-06-22 00:02:03 +00:00
isa
kern subr_hints: Fix acpi unit hinting (at the very least) 2018-06-21 21:50:00 +00:00
kgssapi
libkern Sync strlcpy with userland version, again 2018-06-21 17:35:13 +00:00
mips hwpmc: yet another missed fixup 2018-06-08 18:54:47 +00:00
modules Device for user space to interface with MAC/veriexec. 2018-06-20 00:48:46 +00:00
net Move BPFIF_* macro definitions into .c file, where struct bpf_if is 2018-06-19 10:34:45 +00:00
net80211
netgraph Catch up two more places to the V_ifnet change to a CK_STAILQ. 2018-05-24 00:06:55 +00:00
netinet This adds in an optimization so that we only walk one 2018-06-21 21:03:58 +00:00
netinet6 Switch RIB and RADIX_NODE_HEAD lock from rwlock(9) to rmlock(9). 2018-06-16 08:26:23 +00:00
netipsec uma: implement provisional api for per-cpu zones 2018-06-08 21:40:03 +00:00
netpfil Switch RIB and RADIX_NODE_HEAD lock from rwlock(9) to rmlock(9). 2018-06-16 08:26:23 +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
nfsserver
nlm
ofed Revert r335094 and properly fix OFED build after r335053. 2018-06-14 07:55:10 +00:00
opencrypto cryptosoft: Do not exceed crd_len around *crypt_multi 2018-04-19 15:24:21 +00:00
powerpc Fix the build post-PMCR addition. 2018-06-21 15:59:05 +00:00
riscv PLIC driver was sponsored by ECATS contract, not CTSRD one. 2018-06-21 11:52:09 +00:00
rpc
security Fix build breakage in veriexec for 32-bit architectures. 2018-06-20 06:54:38 +00:00
sparc64 Define memmove and make bcopy alt entry point 2018-05-24 21:11:28 +00:00
sys fork: avoid endless wait with PTRACE_FORK and RFSTOPPED. 2018-06-21 21:12:49 +00:00
teken teken: Fix sequences header which was crossing the 80-col boundary 2018-05-29 08:41:44 +00:00
tests epoch(9): Make epochs non-preemptible by default 2018-05-18 17:29:43 +00:00
tools
ufs ufs: remove cgbno variable where unused 2018-05-19 19:30:42 +00:00
vm Fix uma_zalloc_pcpu_arg() operation in case of !SMP build. 2018-06-21 11:43:54 +00:00
x86 Untangle configuration ifdefs a little. On x86, msi is optional on pci, 2018-06-10 14:49:13 +00:00
xdr
xen xen: remove dead code from gnttab.h 2018-05-25 08:44:00 +00:00
Makefile