Commit Graph

263171 Commits

Author SHA1 Message Date
nakayama
996407034c No need to install shared libraries to /lib. 2018-11-12 17:46:53 +00:00
jmcneill
193d42dd58 Support building kernels with ACPI and no PCI. 2018-11-12 12:56:05 +00:00
jmcneill
5e66c54237 Only attach v2m if PCI support is present 2018-11-12 12:41:03 +00:00
martin
c0f5d6f2fc Do not build a compat i386 version of libnvmm. 2018-11-12 09:25:42 +00:00
hannken
975d5a9381 Re-enable {send,recv}mmsg now they are working. 2018-11-12 09:21:45 +00:00
hannken
c52c8444f2 sys_recvmmsg: don't defer an error that already gets returned. 2018-11-12 09:21:13 +00:00
maxv
36bb644b47 Fix buffer overflow, which can lead to severe information leak. Detected
by kASan.
2018-11-12 06:55:03 +00:00
maxv
52b3c20338 Fix inverted logic, which leads to buffer overflow. Detected by kASan. 2018-11-12 06:53:43 +00:00
riastradh
ae35b062b5 Make fenv.h optional for this test to unbreak the vax build. 2018-11-12 05:02:00 +00:00
msaitoh
550ab7f76a Regen. 2018-11-12 04:37:54 +00:00
msaitoh
33e125745f Add some Intel 100 series and C230 series devices. 2018-11-12 04:37:26 +00:00
knakahara
96d91f815c Fix ALTQ on gif(4). Reported and tested by Anthony Mallet, advised by Greg Troxel, thanks.
l2tp(4) and ipsecif(4) don't support ALTQ yet. So, they don't require this fix.

XXX pullup-8
2018-11-12 03:37:33 +00:00
christos
2888de0106 Improve examples and netmask information (from Dan Plassche) 2018-11-12 00:56:26 +00:00
christos
782f459947 FILES section from Dan Plassche 2018-11-12 00:50:54 +00:00
mrg
9977f8ab49 pull across from gcc/: regen after GCC 6.5. 2018-11-11 23:14:16 +00:00
mrg
b8bf2b1845 regen after GCC 6.5. 2018-11-11 23:13:10 +00:00
mrg
5dda4a0b45 our GCC 6.5 is "nb4 20181109". 2018-11-11 23:05:25 +00:00
mrg
32c6a2c369 note GCC 6.5 was released (and imported.) 2018-11-11 23:04:27 +00:00
mrg
cb0339e943 merge GCC 6.5.0 into gcc.old. 2018-11-11 22:49:37 +00:00
jakllsch
69813ce8a9 Add clock information for RK3399 PCIe 2018-11-11 22:39:25 +00:00
jmcneill
dfdf972245 Add MSI/MSI-X support. 2018-11-11 21:24:38 +00:00
jmcneill
45be6a05df Add GICv2m support 2018-11-11 21:24:28 +00:00
mrg
e9afa17a23 merge GCC 6.5 into gcc.old (properly this time.) 2018-11-11 20:59:07 +00:00
christos
362645e71a disorder police 2018-11-11 18:02:23 +00:00
maxv
ce7e8f5d02 Fix the libnvmm sets, do the same as libx86_64. 2018-11-11 12:03:07 +00:00
mrg
632ba7cb59 pull across this patch:
26b3d6f8ff (diff-61a0580c3eaa34a373cc7ee7ee46dd2a)

---
arm64: allwinner: a64: enable Bluetooth On Pinebook

Pinebook has an RTL8723CS WiFi + BT chip, BT is connected to UART1
and uses PL4 as BT reset, PL5 as device wake GPIO, PL6 as host wake GPIO
the I2C controlling signals are connected to R_I2C bus.

Enable it in the device tree.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
---

this enables:

[     1.000019] com1 at simplebus1: ns16550a, working fifo
[     1.000019] com1: interrupting on GIC irq 33

to attach.  more work with firmware and btattach will be required,
for the BT to be actually functional.
2018-11-11 11:44:53 +00:00
maxv
59e08636d5 Fix stack info leak. There are 4 bytes of padding in struct timeval. Looks
like there are other leaks related to timeval in this file.

[  133.414352] kleak: Possible leak in copyout: [len=16, leaked=4]
[  133.414352] #0 0xffffffff80224d0a in kleak_note <netbsd>
[  133.424360] #1 0xffffffff80224d8a in kleak_copyout <netbsd>
[  133.434361] #2 0xffffffff80b5fd79 in sys___gettimeofday50 <netbsd>
[  133.434361] #3 0xffffffff8025a89c in sy_call <netbsd>
[  133.444351] #4 0xffffffff8025aace in sy_invoke <netbsd>
[  133.454365] #5 0xffffffff8025ab54 in syscall <netbsd>
2018-11-11 11:17:49 +00:00
maxv
d13a507bf0 Fix stack info leak. There is a big padding in struct sigframe_siginfo.
[  224.006287] kleak: Possible leak in copyout: [len=920, leaked=92]
[  224.016977] #0 0xffffffff80224d0a in kleak_note <netbsd>
[  224.026268] #1 0xffffffff80224d8a in kleak_copyout <netbsd>
[  224.026268] #2 0xffffffff802224b5 in sendsig_siginfo <netbsd>
[  224.036261] #3 0xffffffff80b51564 in sendsig <netbsd>
[  224.046475] #4 0xffffffff80b51282 in postsig <netbsd>
[  224.046475] #5 0xffffffff80b2fc5d in lwp_userret <netbsd>
[  224.056273] #6 0xffffffff8025a951 in mi_userret <netbsd>
[  224.066277] #7 0xffffffff8025ab89 in syscall <netbsd>
2018-11-11 10:58:40 +00:00
maxv
480533177a Fix stack info leak. There are 2x4 bytes of padding in struct ps_strings.
[  223.896199] kleak: Possible leak in copyout: [len=32, leaked=8]
[  223.906430] #0 0xffffffff80224d0a in kleak_note <netbsd>
[  223.906430] #1 0xffffffff80224d8a in kleak_copyout <netbsd>
[  223.918363] #2 0xffffffff80b1e26c in copyoutpsstrs <netbsd>
[  223.926560] #3 0xffffffff80b1e331 in copyoutargs <netbsd>
[  223.936216] #4 0xffffffff80b21768 in execve_runproc <netbsd>
[  223.946225] #5 0xffffffff80b21cc9 in execve1 <netbsd>
[  223.946225] #6 0xffffffff8025a89c in sy_call <netbsd>
[  223.956225] #7 0xffffffff8025aace in sy_invoke <netbsd>
[  223.966232] #8 0xffffffff8025ab54 in syscall <netbsd>
2018-11-11 10:55:58 +00:00
mlelstv
214cf32ea8 Only _if_ an inactive table has been loaded, make it active when resuming.
Fixes lvrename operation.
2018-11-11 10:21:11 +00:00
jmcneill
7b381c75d0 Add support for intrctl(8). 2018-11-11 10:14:14 +00:00
martin
57cf8237b6 Skip floopies when selecting an install target, but do not add them to
the CD list when selecting an installation source device.
2018-11-11 10:06:09 +00:00
martin
8b5066c45d Do not allow installation onto floppy disk - can be overriden by
architectures where it would make sense (none currently), and also
works around a bug in QEMU for sparc that kills our -current anita tests.
2018-11-11 09:17:10 +00:00
maya
259f19b882 Provide a fallback dtc if USE_TOOLS isn't in use.
From Daniel Loffgren in PR kern/53720.
2018-11-11 08:28:35 +00:00
maya
87431fdd37 .WAIT for tools to complete.
There's a lot of waits inside tools, but nothing that promises that we haven't
started doing the next subdir in the top level.

Shows up as warnings in the cleandir stage on releng builds:

cleandir ===> external/mit/xorg/server/drivers/xf86-video-suncg6
cleandir ===> lib/libpam/modules/pam_deny
sh: /home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk: not found
nbmake[9]: "../../Makefile.xf86-driver" line 23: warning: "/home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk '/^PACKAGE_VERSION=/ {                match($1, "[0-9]+\\.[0-9]+\\.[0-9]+");  version = substr($1, RSTART, RLENGTH);  } END { print version }'                        /home/source/ab/HEAD-llvm/xsrc/external/mit/xf86-video-ati/dist/configure" returned non-zero status
sh: /home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk: not found
2018-11-11 07:43:35 +00:00
christos
3b9b386971 use the data size in case stdout was a pipe (M. Levinson) 2018-11-11 01:42:36 +00:00
riastradh
a31ad98a39 Use feenableexcept to trap fp exceptions, and trigger one, for SIGFPE.
Not every CPU traps integer division by zero -- aarch64, powerpc,
&c., just return zero.
2018-11-11 01:26:08 +00:00
riastradh
bb7a1ff9e2 Sort #includes. 2018-11-11 01:26:00 +00:00
maya
0b54191a1c & promotes to int already, so clang warns about the hh modifier.
(and we use -Werror)

ok xtos
2018-11-11 00:24:01 +00:00
maya
dd1f793151 Add missing include for struct nvmm_x64_state
(Pointed out by the clang build)
2018-11-11 00:06:48 +00:00
riastradh
1ba9f2bf59 Print the input to cosf on failure too. 2018-11-10 23:04:16 +00:00
maya
59ba550a49 Revert part of 1.1079. MKSOFTFLOAT?=yes for mips64*.
That is most likely an accidental commit.

PR port-mips/53719
2018-11-10 22:19:33 +00:00
martin
ea2064c286 Revert previous - not needed here, I got lost in the include maze 2018-11-10 19:35:19 +00:00
ryo
bc55635b0e add LX_BLKPAG_SH_IS pte attribute for MP 2018-11-10 18:30:58 +00:00
ryo
bdb55c3064 need to invalidate TLBs after pmapboot_enter(). pmapboot_protect() requires KSEG mappings. 2018-11-10 18:29:08 +00:00
martin
30e0449cfd Add options NTP and enable clockctl. 2018-11-10 16:19:58 +00:00
jmcneill
b7772932c2 Implement pic_get_affinity/pic_set_affinity for LPIs via ITS 2018-11-10 11:46:31 +00:00
maxv
e899ee3eff Merge the VIA detection code into cpu_probe_c3. 2018-11-10 11:08:54 +00:00
maxv
823f3f6003 Add copyright and RCSID, from wiz@. 2018-11-10 10:57:06 +00:00
maxv
10636919e1 Declare the MSR_VIA_ACE values as macros, and use a consistent naming,
similar to the rest of the file.

I'm wondering if I'm not fixing a huge bug here. The ECX8 value we were
using was wrong: ECX8 is bit 1, not bit 0. Bit 0 is ALTINST, an alternate
ISA, which is now known to be backdoored.

So it looks like we were explicitly enabling the backdoor.

Not tested, because I don't have a VIA cpu.
2018-11-10 10:52:51 +00:00