Commit Graph

269545 Commits

Author SHA1 Message Date
riastradh
23d950dc47 Fix byte order bug in murmurhash and pacify sanitizers. 2019-08-20 12:33:26 +00:00
riastradh
001c9b0e7c New macro ALIGNED_POINTER_LOAD.
To be used with ALIGNED_POINTER(p,t) instead of writing *(const t *)p
directly.  This way, on machines without strict alignment, we can use
memcpy to pacify sanitizers, while getting the same compiled code in
the end with a single (say) MOV instruction.
2019-08-20 12:33:04 +00:00
sevan
430a8c4ffa sysctl(8) is useful to have in the install env when debugging 2019-08-20 12:26:38 +00:00
maxv
6b2322f645 Disable netbsd32_drm.c until it receives proper review. 2019-08-20 12:25:41 +00:00
uki
03076a9ebe Give syspkg name to xbase mi files 2019-08-20 12:08:17 +00:00
roy
30e1960352 if: announce flag changes other than up or down
For example toggling promiscuous mode or disabling ARP.

XXX Pullup -9
2019-08-20 10:59:00 +00:00
christos
39360c9262 add NetBSD copyright. 2019-08-20 09:55:49 +00:00
ozaki-r
571560e45c Disable rump_server_check_memleaks for now
It doesn't work in some cases.
2019-08-20 09:53:45 +00:00
christos
863a2c5120 Add netbsd32 drm support from Surya Shankar at GSoC 2019 2019-08-20 09:36:40 +00:00
christos
842abfee1d compat32 drm ioctl support from Surya Shankar at GSoC 2019 2019-08-20 09:32:21 +00:00
christos
eb1a88a41d Include <net/if.h> for IFNAMSIZ 2019-08-20 09:28:00 +00:00
hannken
c72b1aea36 task_executor: prevent use after free, the task function may free
the tasq entry.
2019-08-20 08:12:50 +00:00
hannken
ae0ee8779d Rearrange the evaluation of "dvd_maxphys" so it works for wedges too. 2019-08-20 08:12:14 +00:00
hannken
9075f3bd2d Always open the raw block devices as "<device><unit>" like it
comes from sysctl "hw.disknames" without attaching the raw
partition letter.  Now pools on wedges get imported too.
2019-08-20 08:11:21 +00:00
martin
d7f55bad98 PR install/54480: when upgrading a system and re-mounting the target /
with proper options, and the installed system does not use NAME= syntax
in fstab(5), use the device name we used to get here, instead of the
name from fstab, it might be different to what the real system calls the
device (compact flash root showing up as wd0 native, but sd? on the
card reader used for updating it right now).

This is an abuse of the upgrade functionality and in general pretty dangerous
when multiple devices are used in the upgraded fstab (e.g. separate /usr),
and it used to work more by accident with the old code.

However, it is a quite usefull way to upgrade tiny systems with compact flash
root, and it used to work - so support it properly (as far as we can).
2019-08-20 06:38:17 +00:00
mrg
65dae9683e couple more changes to usbnet(9):
- MII read/write reg return int instead of usbd_status (requested by skrll)
- usbnet_attach_ifp(9) changes arg, two mii-specific flags are placed by a
  pointer to new struct usbnet_mii.  if not NULL, then attach an MII to this
  interface like previous have_mii parameter.  use this to allow ure(4) to
  properly pass PHY location to mii_attach().

welcome netbsd 9.99.10.
2019-08-20 06:37:06 +00:00
mrg
dd6018f574 properly fix the kernhist calls.
one must cast and cast and cast and maybe a fish will be caught...
2019-08-20 06:18:54 +00:00
msaitoh
e071274253 Fix a bug that VLAN HW "tagging" enable/disable may not refrect correctly.
- Always call ec_vlan_cb() if it exists.
  - Some (or all?) ethernet drivers don't enable HW tagging if no any vlan is
    attached. ixgbe is one of them. Check the the transition and update
    VLAN HW tagging function.

XXX pullup-9
2019-08-20 04:11:22 +00:00
msaitoh
67364efc9c Add missing IFNET_LOCK() and IFNET_UNLOCK() in vlan_config().
XXX pullup-9
2019-08-20 03:56:59 +00:00
msaitoh
edc961a964 Check ec_capenable instead of ec_capabilities to control TX side of VLAN HW
tagging correctly.

XXX pullup-9
2019-08-20 03:50:55 +00:00
pgoyette
5ae082da1c Fix year in previous entry's datestamp 2019-08-20 02:42:04 +00:00
msaitoh
638734ca31 Use unsigned to avoid undefined behavior. Found by kUBSan. 2019-08-20 01:56:21 +00:00
manu
96bf5a8e39 boot(8): GPT and RAIDframe support for x86 bootstrap [manu 20180818] 2019-08-20 01:48:48 +00:00
perseant
7aae290207 Add -D flag to allow the user to specify an alternate dumpdates file.
Closes PR #54469.
2019-08-19 18:12:50 +00:00
christos
efc5ee6e34 - KNF more
- print the full path in error messages
2019-08-19 14:09:12 +00:00
hkenken
b68d413bdd Add support SPI driver for i.MX6. 2019-08-19 11:41:36 +00:00
hkenken
1cd721f3f9 Fix typo. 2019-08-19 10:56:33 +00:00
jmcneill
0de7be22dc Use a unique name for the acpi ARM_PLATFORM definition 2019-08-19 10:53:31 +00:00
hkenken
ab8a5dac06 Use a9ptmr_delay(). 2019-08-19 10:44:35 +00:00
christos
5d96c08a38 If we could not start extattr for some reason, don't advertise extattr in the
mount.
2019-08-19 09:32:42 +00:00
christos
cfb1182f22 Enable extended attributes in modules. 2019-08-19 09:31:30 +00:00
christos
f8de2011dc - return (foo) -> return foo
- normalize all error messages to use __func__
- add more messages for startup failure (should perhaps auto-create
  the attributes directory and the user and system subdirs?)
- factor out common code
2019-08-19 09:30:30 +00:00
mrg
26347c3def axe, udav, url, cue, kue, smsc, udav[*], upl, url and urdnis
are now all ported to usbmp and mpsafe interfaces, and have
all been tested too.

[*] udav has an issue with usbnet port for some devices.
2019-08-19 08:07:55 +00:00
mrg
43e0dcd183 move the check against un_phyno from usbnet back into the drivers
that do this (axe, axen, mue, smsc, ure.)  it made mii scanning
only work for phy 0, and aue needs it for at least one device.

fix smsc to return usbd_status not -1 on failure.  XXX smsc was
writing to '*val' even in error cases, it does not now.

remove a double call to IFQ_SET_READY() (noticed by chuq).

avoid unlock+instant relock by using usbnet_lock_mii_un_locked().
2019-08-19 07:33:37 +00:00
mrg
6134657d6b move the call to rnd_attach_source() earlier and add a matching
call to rnd_detach_source() into detach.

fixes an attach-detach-reattach issue where the rnd source was
already known.
2019-08-19 07:20:07 +00:00
mrg
9e4638357c add USBHIST_CALLARGS() frontend to KERNHIST_CALLARGS().
add USBNETHIST_CALLARGS() frontend to USBHIST_CALLARGS().

use both in read/write reg, instead of aprint.

use %jx and (uintptr_t) and fix the 32 bit debug build.
2019-08-19 06:35:14 +00:00
knakahara
d982d50fe6 add vmx(4) basic statistics counters.
Sorry, I have forgotten this TODO in r1.40 commit message.
2019-08-19 05:25:38 +00:00
knakahara
fcc7b36097 fix panic when vmx(4) is detached. 2019-08-19 05:23:50 +00:00
hkenken
2e222ac115 Support write protect gpio pin. 2019-08-19 03:48:41 +00:00
hkenken
44df834153 Enable FDT_INTR_MPSAFE flag. 2019-08-19 03:45:51 +00:00
ozaki-r
236d5619f0 Add MBUFTRACE to ALL configs 2019-08-19 03:25:40 +00:00
ozaki-r
08e0fb1c08 can: add missing mowner variables for MBUFTRACE 2019-08-19 03:24:38 +00:00
ozaki-r
f64bb57d26 l2tp: initialize mowner variables for MBUFTRACE 2019-08-19 03:24:05 +00:00
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