opnsense-src/sys
Konstantin Belousov 181bfb42fd vm_phys: do not ignore phys_avail[] segments that do not fit completely into vm_phys segments
If phys_avail[] segment only intersect with some vm_phys segment, add
pages from it to the free list that belong to the given vm_phys_seg,
instead of dropping them.

The vm_phys segments are generally result of subdivision of phys_avail
segments, for instance DMA32 or LOWMEM boundaries split them. On
amd64, after UEFI in-place kernel activation (copy_staging disable)
was enabled, we typically have a large phys_avail[] segment below 4G
which crosses LOWMEM (1M) boundary. With the current way of requiring
phys_avail[] fully fit into vm_phys_seg, this memory was ignored.

Reported by:	madpilot
Reviewed by:	markj
Discussed with:	alc
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D31958
2021-09-16 20:01:19 +03:00
..
amd64 linux: implement PTRACE_GET_SYSCALL_INFO 2021-09-14 20:19:55 +00:00
arm Remove a bogus assertion from the gic drivers 2021-09-14 19:06:25 +00:00
arm64 arm: rockchip: rk3288: Use the macros that already exists in rk_cru.h 2021-09-15 20:10:42 +02:00
bsm Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
cam iscsi: Abort data-out tasks queued on a terminating session. 2021-09-15 13:25:30 -07:00
cddl kern: drop remaining references to removed makesyscalls.sh 2021-09-09 19:40:54 -05:00
compat <linux/overflow.h>: Don't use __has_builtin(). 2021-09-15 09:03:17 -07:00
conf ena: fix building in-kernel driver 2021-09-16 16:47:45 +02:00
contrib zfs: merge openzfs/zfs@4a1195ca5 (master) into main 2021-09-15 17:30:53 +02:00
crypto crypto(4): Fix a few typos in camellia.c 2021-09-04 13:02:11 +02:00
ddb Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
dev pci_host_generic: update Synopsys device description for ACPI 2021-09-16 16:53:11 +02:00
dts Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
fs nfscl: Add vfs.nfs.maxalloclen to limit Allocate/Deallocate RPC RTT 2021-09-15 17:29:45 -07:00
gdb gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
geom g_label: Handle small sector sizes when tasting 2021-09-07 11:19:29 -04:00
gnu
i386 x86: duplicate acpi_wakeup.c per i386 and amd64 2021-09-14 00:23:14 +03:00
isa newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
kern mount: improve error message for invalid filesystem names 2021-09-15 16:25:31 +02:00
kgssapi opencrypto: Introduce crypto_dispatch_async() 2021-02-08 09:19:19 -05:00
libkern libkern: remove bcopy 2021-08-24 11:24:07 +00:00
mips Fix a common typo in source code comments 2021-09-04 12:56:57 +02:00
modules infiniband: Disable -Wredundant-decl warnings. 2021-09-15 09:03:18 -07:00
net Add a switch structure for send tags. 2021-09-14 11:43:41 -07:00
net80211 net80211: add func/line information to IEEE80211_DISCARD* macros 2021-09-04 09:24:51 +00:00
netgraph ng_l2tp: improve callout locking. 2021-09-10 11:27:19 -07:00
netinet [fib algo][dxr] Fix division by zero. 2021-09-16 16:34:05 +02:00
netinet6 sctp: Tighten up locking around sctp_aloc_assoc() 2021-09-11 10:15:21 -04:00
netipsec ipsec: Validate the protocol identifier in ipsec4_ctlinput() 2021-09-10 09:09:00 -04:00
netpfil pf: Remove duplicate declaration of pf_ioctl_maxcount. 2021-09-15 09:03:18 -07:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-05-26 10:45:40 -04:00
nfs Fix panic when using BOOTP to resolve root path. 2021-03-28 14:02:40 -05:00
nfsclient nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nfsserver nfs: Cleanup dead files 2021-03-17 06:16:31 +11:00
nlm
ofed socket: De-duplicate SBLOCKWAIT() definitions 2021-09-14 09:01:32 -04:00
opencrypto ktls: Support asynchronous dispatch of AEAD ciphers. 2021-08-30 13:11:52 -07:00
powerpc powerpc64: fix radix on pseries TLB invalidation 2021-09-08 08:37:11 -03:00
riscv sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-08-30 23:38:02 +01:00
rpc Fix a common typo in source code comments 2021-09-04 12:56:57 +02:00
security Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
sys Only define sanitizer wrappers for unsized bus space operations once. 2021-09-15 09:03:17 -07:00
teken
tests routing: add IPv6 fib validation procedure. 2021-08-16 23:04:01 +00:00
tools makesyscalls.lua: add a CAPENABLED flag 2021-09-01 21:58:06 +01:00
ufs ffs: remove unused thread argument from ffs_reload() 2021-09-04 12:25:10 -08:00
vm vm_phys: do not ignore phys_avail[] segments that do not fit completely into vm_phys segments 2021-09-16 20:01:19 +03:00
x86 x86: duplicate acpi_wakeup.c per i386 and amd64 2021-09-14 00:23:14 +03:00
xdr
xen xen: introduce xen_pv_disks_disabled() 2021-07-28 17:27:04 +02:00
Makefile