Commit Graph

269491 Commits

Author SHA1 Message Date
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
msaitoh
cb7ed793b6 From FreeBSD:
- Rename ET1011 to ET1011C
 - Add ET1011
2019-08-16 15:19:48 +00:00
msaitoh
1a3654eb74 No functional change:
- Use static.
 - KNF.
2019-08-16 15:17:31 +00:00
maxv
d927327758 Initialize pp->pr_redzone to false. For some reason with KUBSAN GCC does
not eliminate the unused branch in pr_item_linkedlist_put(), and this
leads to a unused uninitialized access which triggers KUBSAN messages.
2019-08-16 10:41:35 +00:00
jmcneill
8e368e5e42 Use correct register for mpll2_div clock 2019-08-16 10:36:06 +00:00
msaitoh
5ae436aa7e Whitespace fix. 2019-08-16 10:33:17 +00:00
mrg
9d146cdb5b kue now depends upon usbnet. 2019-08-16 08:52:46 +00:00
mrg
2a27f0ae08 port kue(4) to usbnet(9). interesting notes:
- move KUE_RXFILT_PROMISC setting into kue_setiff() from kue_init()
  to avoid multiple setting KUE_CMD_SET_PKT_FILTER reg multiple times
- software-only constructs moved from if_kuereg.h into if_kue.c
- kue is the first (umb(4) will need it to, i think) to have its own
  autoconf detach routine remain
- un_tx_xfer_flags is 0 here, not USBD_FORCE_SHORT_XFER
- fix a potential data exposure (but probably not without a USB
  protocol tap).  kue needs the transfers to be 64-byte aligned, and
  while i doubt it sends more than the frame provided, were sending
  random kernel data (whatever was the 0-63 bytes to alignment) to
  the device.

diffstat says:
2 files changed, 189 insertions(+), 739 deletions(-)
2019-08-16 08:51:09 +00:00
mrg
305fe6fd7f internal to usbnet:
add buflen param to usbnet_newbuf().  use this to skip allocating
an mbuf cluster for small packets (ported from kue(4).)

remove usbnet_rx_start_pipes()'s always usbnet_rxeof argument.
2019-08-16 08:38:21 +00:00
mrg
10dd824698 make the default debug level zero. 2019-08-16 08:29:20 +00:00
macallan
68414e0ea7 pass sensor location info to drivers if we can find it 2019-08-15 22:35:39 +00:00
uwe
4f4e81219c Remove list-portmasters.pl script.
We dropped that list from "main" some time ago.
2019-08-15 21:12:16 +00:00