Commit Graph

269502 Commits

Author SHA1 Message Date
ozaki-r
a7ffb47942 Initialize dom_mowner for MBUFTRACE 2019-08-19 03:23:30 +00:00
ozaki-r
7c447e107e tests: check pool object leaks
Currently only llentpl leaks can be detected.
2019-08-19 03:22:47 +00:00
ozaki-r
ce0ae1dfed tests: use rump_server_add_iface to create interfaces 2019-08-19 03:22:05 +00:00
ozaki-r
b271a6e258 tests: enable to create interfaces other than shmif with rump_server_add_iface
For this change interfaces are destroyed in the reverse order of their
creations in case there are dependencies between interfaces.
2019-08-19 03:21:13 +00:00
ozaki-r
3a470f73b4 tests: fix test header name 2019-08-19 03:20:27 +00:00
kamil
f0720e6929 Add ATF c and c++ tests for TSan, MSan, libFuzzer
These tests require Clang/LLVM 7 or newer on NetBSD.

Contributed by Yang Zheng during GSoC 2018.
2019-08-18 20:15:58 +00:00
kamil
14adb160be Correct the memset(3)'s third argument in i386 biosdisk.c
The size of allocation is the size of the structure biosdisk, not the size
of a pointer.
2019-08-18 16:49:30 +00:00
mlelstv
3df7df3a67 regen 2019-08-18 14:32:34 +00:00
mlelstv
f4c3458c4d Add Broadcom devices 2019-08-18 14:32:04 +00:00
christos
8603a9eb39 check speed argument conversion (Thierry Laronde) 2019-08-18 14:16:02 +00:00
maya
ccb8bdcbd4 G/C mention of SCIOCREPROBE, removed in 1998.
Thanks to Hiroyuki Bessho in PR kern/34146
2019-08-18 11:53:23 +00:00
mrg
5346b6bc69 regen and add kue adapters:
ACTIONTEC KL5KUSB101 USB Ethernet adapter
ALLIEDTELESYN AT-USB10 USB Ethernet Adapter
SILICOM Psion Gold Port Ethernet (existing usbdevs entry)
2019-08-18 11:46:38 +00:00
mrg
d756f89bf3 add two kue(4) adapters:
ACTIONTEC KL5KUSB101 USB Ethernet adapter
ALLIEDTELESYN AT-USB10 USB Ethernet Adapter
2019-08-18 11:45:23 +00:00
martin
6bccae72f0 Fix memory leak (found by MKSANITIZER=yes build). 2019-08-18 11:11:48 +00:00
martin
21c20a3068 Properly release the disk properties dictionary we received via
ioctl.
Detected by leak sanitizer when building with MKSANITIZER=yes.
2019-08-18 11:08:56 +00:00
rin
f383fde564 Fix copy-paste.
Pointed out by Takehiko NOZAKI.
2019-08-18 09:51:06 +00:00
mrg
31a1e537ff fix a think-o in the previous: don't return when saving the first error.
from skrll@.
2019-08-18 09:46:58 +00:00
mrg
776e073079 note kue/upl ported to usbnet. 2019-08-18 09:43:26 +00:00
mrg
be798422ee update usbnet slight:
- drivers that want to use if_input() will also set _if_input.  for
  now, avoid attaching a per-cpu queue for them.  use if_initialize()
  and if_register().
- when stopping pipes, don't give up after the first failure, but
  keep the first failure error for return and keep going
- if 0 a KASSERT() in usbnet_init_rx_tx().  there's a path via
  if_mcast_op() that can have the ifnet unlocked today..
- in usbnet_watchdog(), abort the pipe instead of faking tx
  completion.  avoids issues with devices with more than one tx
  descriptor, as well as avoiding triggering usb asserts.

with these, upl(4) port to usbnet(9) now works.  (would be a version
bump, but upl(4) and the unported umb(4) are the only consumers that
would care.)
2019-08-18 09:29:38 +00:00
abhinav
b0ca50fb4d PR bin/54343: We want the callback_args.machine to be NULL if it is not present in the DB.
The previous commit fixed the problem of allowing apropos to not crash and
produce output even if the database is missing values for certain mandatory
fields, such as name, section etc. Normally we don't expect those values
to be missing in the database but in case of parsing errors it can happen.

However, the machine architecture is an optional field since not all man pages
are hardware specific so that should be allowed to be set to NULL if not
present in the database.
2019-08-18 09:14:30 +00:00
mrg
017f58c1c0 regen for new upl(3) devices. 2019-08-18 09:05:49 +00:00
mrg
bc015ef7d0 add 3 devices for upl(4) host-to-host networking:
- belkin F5U258
- national instruments USB host to host adapter
- prolific id 25a1
2019-08-18 09:05:31 +00:00
mrg
3e0a07ba5e usbnet_ifp() doesn't work before usbnet_attach(). avoid it. 2019-08-18 08:16:34 +00:00
wiz
68efb6081c Typo fixes, 'file system'; new sentence, new line; expand IA-32.
Bump date for previous.
2019-08-18 08:12:36 +00:00
maya
dafc44be4c Don't mark /etc/X11/conf.d entries obsolete: a user may choose to have
an entry here.
2019-08-18 07:25:54 +00:00
rin
3290d6c33d 0x%p ---> %p 2019-08-18 07:05:16 +00:00
rin
7a25f99111 We've switched to 8KB page.
XXX
pullup to netbsd-9
2019-08-18 07:03:55 +00:00
mlelstv
4e7617c5be Align parsing of boot devices. This allows to specify device names
as strings in the boot loader and the kernel configuration.
2019-08-18 06:28:42 +00:00
kamil
fc2fae23cf netstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in
version of sysctlbyname, sysctlgetmibinfo and sysctlnametomib.
2019-08-18 04:14:40 +00:00
kamil
774dcce2f6 sockstat: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in
version of sysctlgetmibinfo and sysctlnametomib.
2019-08-18 04:13:24 +00:00
kamil
0c4f7708cb traceroute: Add indirection of symbol to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in
version of getifaddrs.
2019-08-18 04:12:07 +00:00
kamil
997c4cdc97 sysctl: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in
version of sysctlbyname and sysctlgetmibinfo.
2019-08-18 04:10:22 +00:00
msaitoh
8b8cf24cd0 Use unsigned to avoid undefined behavior. Found by kUBSan. 2019-08-18 02:42:40 +00:00
manu
05a5afb967 Document new GPT and RAIDframe capacity of bootstrap code
While there, also document EFI setup and some bugs
2019-08-18 02:23:48 +00:00
manu
92f692b3ca Add GPT and RAIDframe support to bootloaders
Classic BIOS (/boot) and EFI bootloaders can now name devices
using the NAME=gpt_label syntax, or using raid partitions. Here
are examples:
boot NAME=root:/netbsd
boot raid0e:/netbsd
2019-08-18 02:18:24 +00:00
sevan
06381ccc88 RDP RFB VNC 2019-08-17 21:14:22 +00:00
martin
2b9b247d73 Oops, avoid double free. 2019-08-17 18:08:06 +00:00
martin
31a289cd68 Fix some memory leaks in error paths 2019-08-17 18:03:12 +00:00
martin
1b565566ff PR 54473: fix error prompt when a set file is missing 2019-08-17 17:51:19 +00:00
msaitoh
0d207c0921 Use unsigned to avoid undefined behavior. Found by kUBSan. 2019-08-17 17:03:32 +00:00
msaitoh
641d78a73a Set "enabled" value only when hpd.hpd is not RADEON_HPD_NONE(== 0xff) to
avoid 1 << 255. Found by kUBSan.
2019-08-17 16:02:55 +00:00
msaitoh
58e6597625 Use unsigned to avoid undefined behavior. Found by kUBSan. 2019-08-17 15:50:05 +00:00
msaitoh
f0a601d217 Set "enabled" value only when hpd.hpd is not RADEON_HPD_NONE(== 0xff) to
avoid 1 << 255. Found by kUBSan.
2019-08-17 15:49:13 +00:00
maxv
31589aab59 Kernel Heap Hardening: use bitmaps on all off-page pools. This migrates 29
MI pools on amd64 from linked lists to bitmaps, which have higher security
properties.

Then, change the computation of the size of the PH pools: take into account
the bitmap area available by default in the ph_u2 union, and don't go with
&phpool[>0] if &phpool[0] already has enough space to embed a bitmap.

The pools that are migrated in this change all use bitmaps small enough to
fit in &phpool[0], therefore there is no increase in memory consumption.
2019-08-17 12:37:49 +00:00
gson
40aea22397 The udf_renamerace test case no longer fails due to PR kern/49046, but
it does fail due to PR kern/53865 on real hardware.
2019-08-17 09:44:01 +00:00
kamil
d383d9b590 Avoid symbol clashes in test/rump/modautoload/t_modautoload with sanitizers
Set SANITIZER_RENAME_SYMBOL.t_modautoload to:

 * sysctlbyname
 * sysctlgetmibinfo
2019-08-17 04:04:28 +00:00
kamil
92253c7761 Add PAXCTL_FLAG rules for MKSANITIZER
Add per-program rules to disable ASLR for ASan, TSan and MSan in all
sanitized programs. This flag is not needed for other supported sanitizers.

Without this change, sanitized init(8) dies early on startup.

Approach originally suggested by <joerg>
2019-08-17 00:14:48 +00:00
kamil
0da4a66149 Set NODEBUG for LLVM sanitizers
The sanitizers are special purpose piece of software that needs customized
build rules. Do not bother with generating debuginfo files for them.

Fixes MKDEBUG=yes build
2019-08-16 23:07:20 +00:00
msaitoh
d2c332735a From FreeBSD:
- Support ET1011.
- Use mii_phy_flowstatus() to reflect flow status from negotiated result.
2019-08-16 15:24:09 +00:00
msaitoh
e1ad102d8f Regen. 2019-08-16 15:20:18 +00:00