Commit Graph

270879 Commits

Author SHA1 Message Date
msaitoh
cc630f1fc3 Fix typos. 2019-10-18 04:13:56 +00:00
msaitoh
c56890eeef s/initalize/initialize/ in comment or printf message. 2019-10-18 04:09:01 +00:00
manu
b2a4053feb Multiboot2 kernel support for i386
That implementation works either with BIOS or UEFI bootstrap

This requires the following kernel changes:

Add UEFI boot services and I/O method protoypes
src/sys/arch/x86/include/efi.h 1.8 - 1.9

Fix EFI system table mapping in virtual space
src/sys/arch/x86/x86/efi.c 1.19 - 1.20

Make sure no bioscall is issued when booting off UEFI system
src/sys/arch/i386/i386/machdep.c 1.821 - 1.822
src/sys/arch/i386/pci/piixpcib.c 1.22 - 1.23

And the following bootstrap changes:

Add kernel symbols for multiboot1
src/sys/arch/i386/stand/lib/exec_multiboot1.c 1.2 - 1.3
src/sys/arch/i386/stand/lib/libi386.h 1.45 - 1.47

Fix kernel symbols for multiboot2
src/sys/arch/i386/stand/lib/exec_multiboot2.c 1.2 - 1.3
2019-10-18 01:38:28 +00:00
manu
1281ec5b00 Remove prototype added twice by mistake 2019-10-18 01:24:51 +00:00
manu
4d1fe8d8ef Fix multiboot1 kernel symbol load
ELF_Shdr's sh_type field is a value, not a flag field
2019-10-18 01:19:00 +00:00
manu
25313e1c19 Fix kernel symbols for multiboot2
Previous version just provided the ELF section table, which is correct
as far as the multiboot 2 specification is concerned.

But in order to retreive kernel symboles, the NetBSD kernelneeds symbol
table and string table sections to be loaded in memory, and have an
address set in the section table.

Requires change: Add kernel symbols for multiboot1
src/sys/arch/i386/stand/lib/exec_multiboot1.c 1.2 - 1.3
src/sys/arch/i386/stand/lib/libi386.h 1.45 - 1.46
2019-10-18 01:15:54 +00:00
manu
2902349762 Add kernel symbols for multiboot1 2019-10-18 01:09:46 +00:00
manu
6868572cf3 Fix multiboot1 header detection
Specification states it	must be must be longword (32-bit) aligned
2019-10-18 01:04:24 +00:00
manu
805b565b8f Make sure no bioscall is issued when booting off UEFI system 2019-10-18 01:00:24 +00:00
manu
efa7e16ae0 Fix EFI system table mapping in virtual space
Previous version was annoted as untested, and indeed it did not work.
New version uses the same approach as for ACPI table mapping.
2019-10-18 00:56:25 +00:00
manu
68181cad3f Add UEFI boot services and I/O method protoypes 2019-10-18 00:54:48 +00:00
jmcneill
5648f9b3a4 evbarm: Add support for Amazon Graviton "a1.metal" instances. 2019-10-17 23:10:23 +00:00
bad
64f68ffbad back out r1.26. it makes the pinebook fail to boot. 2019-10-17 21:52:26 +00:00
mrg
3675c7a1d7 move usbnet and mcx entries from CHANGES to CHANGES.prev.
there may be others that should also move.. i'm not sure.
2019-10-17 20:48:44 +00:00
christos
f2cca13bde remove LD_WRAP 2019-10-17 16:53:06 +00:00
christos
aad57e395b new bind 2019-10-17 16:48:12 +00:00
christos
a979df4dfb merge conflicts 2019-10-17 16:46:57 +00:00
christos
a92be1735d --- 9.14.7 released ---
5299.	[security]	A flaw in DNSSEC verification when transferring
			mirror zones could allow data to be incorrectly
			marked valid. (CVE-2019-6475) [GL #16P]

5298.	[security]	Named could assert if a forwarder returned a
			referral, rather than resolving the query, when QNAME
			minimization was enabled. (CVE-2019-6476) [GL #1051]

5297.	[bug]		Check whether a previous QNAME minimization fetch
			is still running before starting a new one; return
			SERVFAIL and log an error if so. [GL #1191]

5294.	[func]		Fallback to ACE name on output in locale, which does not
			support converting it to unicode.  [GL #846]

5293.	[bug]		On Windows, named crashed upon any attempt to fetch XML
			statistics from it. [GL #1245]

5292.	[bug]		Queue 'rndc nsec3param' requests while signing inline
			zone changes. [GL #1205]

	--- 9.14.6 released ---

5289.	[bug]		Address NULL pointer dereference in rpz.c:rpz_detach.
			[GL #1210]

5286.	[contrib]	Address potential NULL pointer dereferences in
			dlz_mysqldyn_mod.c. [GL #1207]

5285.	[port]		win32: implement "-T maxudpXXX". [GL #837]

5283.	[bug]		When a response-policy zone expires, ensure that
			its policies are removed from the RPZ summary
			database. [GL #1146]

5282.	[bug]		Fixed a bug in searching for possible wildcard matches
			for query names in the RPZ summary database. [GL #1146]

5281.	[cleanup]	Don't escape commas when reporting named's command
			line. [GL #1189]

5280.	[protocol]	Add support for displaying EDNS option LLQ. [GL #1201]

5279.	[bug]		When loading, reject zones containing CDS or CDNSKEY
			RRsets at the zone apex if they would cause DNSSEC
			validation failures if published in the parent zone
			as the DS RRset.  [GL #1187]
2019-10-17 16:25:39 +00:00
maya
6c344acc92 correct bind location. new bind 2019-10-17 16:21:02 +00:00
msaitoh
b008d88a98 Use unsigned to avoid undefined behavior. Found by kUBSan. 2019-10-17 15:57:56 +00:00
maya
e40e833ed6 correct error handling.
from Ilja Van Sprundel, thanks.
2019-10-17 14:33:02 +00:00
maxv
ed6d73e306 Make sure we're dealing with a static binary. Otherwise we could crash if
the user mistakenly tries to boot a KASLR kernel with 'boot' instead of
'pkboot'. Now we fail cleanly. Reported by cryo@.
2019-10-17 14:00:28 +00:00
jmcneill
ad122cfd79 Amazon Graviton support is in 9.0, remove the changes entry. 2019-10-17 09:38:07 +00:00
jmcneill
0cfe09bbd6 evbarm: Add support for Amazon Graviton "a1.metal" instances. 2019-10-17 09:34:10 +00:00
msaitoh
46a9017a9b - Match a lot of Cicada and Vitesse devices correctly. This change also fixes
a bug that ciphy_fixup() didn't work.
- Match VSC8221, VSC8234 and VSC8641.
2019-10-17 09:22:49 +00:00
msaitoh
12230c0f48 Regen. 2019-10-17 09:22:00 +00:00
msaitoh
27a2a5f3ee - All of Cicada and Vitesse devices' OUI are not bit-reversed, so use "xx".
- Rename CS82xx -> CIS82xx
- Add Vitesse VSC8224, VSC8234, VSC8641 and VSC8501.
2019-10-17 09:21:40 +00:00
msaitoh
c012d312b0 alc(4): Add support for Killer E2400 and E2500. 2019-10-17 09:14:50 +00:00
msaitoh
b4093656b6 Add support for Killer E2400 and E2500. 2019-10-17 09:13:48 +00:00
msaitoh
b9c7716433 Some alc(4) fixes:
- Apply FreeBSD r218141:
 > alc_rev was used without initialization such that it failed to
 > apply AR8152 v1.0 specific initialization code. Fix this bug by
 > explicitly reading PCI device revision id via PCI accessor.
 >
 > Reported by:	Gabriel Linder ( linder.gabriel <> gmail dot com )
- Apply FreeBSD r304574:
 > Correct DMA channel number selection on AR816x family of
 > controllers. For Gigabit Ethernet version of AR816x, AR813x/AR815x
 > except L1D controller, use vendor recommended ASPM parameters.
 > While here, increase alc_dma_burst array size.  Broken H/W can
 > return bogus value in theory.
- Use static.
- Whitespace fix. Remove extra backslash.
2019-10-17 09:12:12 +00:00
maxv
3d07030363 Sentence begins with capital letter ("yes or no?"). Also add a few french
sentences, to make it less awful, but not complete. Not tested.
2019-10-17 08:54:50 +00:00
msaitoh
b122847e9e Add rdpru. 2019-10-17 06:58:48 +00:00
msaitoh
85b146c0e3 Fix order of m_freem(). Found by kASan. OK'd by jdolecek and mrg. 2019-10-17 05:55:18 +00:00
maya
cede1cc99c Switch files copyright Reinoud Zandijk from BSD 4 clause to BSD 2 clause.
OK'd by reinoud in email (from 4 Feb 2019).
2019-10-16 21:52:22 +00:00
bad
187561d31f Mention support for FriendlyElec NanoPi R1 and Duo2. 2019-10-16 20:49:59 +00:00
maya
27d953155b Provide sysconf(_SC_RTSIG_MAX) = SIGRTMAX - SIGRTMIN
Thanks nros@ for the correct definition
2019-10-16 20:43:18 +00:00
jdolecek
5e2f8c1f10 use aprint_normal_dev() for the capacity message, same as e.g. wd(4) and sd(4) 2019-10-16 19:52:08 +00:00
jdolecek
e636591882 don't try to read disklabel for attached xbd* disk from (effectively) always
xbd0a device, there is no need for it and it is just wrong

same problem as PR kern/41704 for cgd

XXX perhaps xbd should use native block size passed from dom0 rather then
XXX recomputing in DEV_BSIZE
2019-10-16 19:38:13 +00:00
jnemeth
a1afb41542 Do the 'dkctl makewedges' dance to drop any wedges assoicated the
destroyed GPT.
2019-10-16 19:03:53 +00:00
christos
176ada4b2b Add and use __FPTRCAST, requested by uwe@ 2019-10-16 18:29:49 +00:00
christos
d2348edc56 Add void * function pointer casts. There are different ways to "fix" those
warnings:
    1. this one: add a void * cast (which I think is the least intrusive)
    2. add pragmas to elide the warning
    3. add intermediate inline conversion functions
    4. change the called function prototypes, adding unused arguments and
       converting some of the pointer arguments to void *.
    5. make the functions varyadic (which defeats the purpose of checking)
    6. pass command line flags to elide the warning
I did try 3 and 4 and I was not pleased with the result (sys_ptrace_common.c)
(3) added too much code and defines, and (4) made the regular use clumsy.
2019-10-16 15:27:38 +00:00
christos
5daffada21 void * cast the probe functions that take more than 5 uintptr_t arguments
(dtrace_probe takes 5).
2019-10-16 15:08:09 +00:00
christos
9fb3a182b9 prevent DFmode re-definition. 2019-10-16 15:01:56 +00:00
christos
cc062a9149 add void * casts for the clock interrupt handlers. 2019-10-16 15:01:10 +00:00
roy
09a2b5383c Note import of dhcpcd-8.1.1 2019-10-16 14:56:34 +00:00
roy
f0364f8372 Sync 2019-10-16 14:54:39 +00:00
roy
ec58a5344d Import dhcpcd-8.1.1 with the following changes:
* IPv6: Fix a potential crash when learning interface addresses.
 * DHCP: Fix fallout from dhcpcd-8.1.0 for checksum calculation.
2019-10-16 14:53:22 +00:00
roy
72467b57d4 Import dhcpcd-8.1.1 with the following changes:
* IPv6: Fix a potential crash when learning interface addresses.
 * DHCP: Fix fallout from dhcpcd-8.1.0 for checksum calculation.
2019-10-16 14:50:27 +00:00
bad
580b92a46f allocate a random mac address if on-chip mac is all zeroes.
helps ure(4) on NanoPi R1.

partly from ganbold@freebsd r346052.

XXX pullup-9
2019-10-16 13:11:16 +00:00
bad
8197ba699a read mac address of ure version 4c10 from URE_PLA_IDR, save as 4c00.
from ganbold@freebsd r346052.

XXX pullup-9
2019-10-16 13:02:51 +00:00