Commit Graph

275533 Commits

Author SHA1 Message Date
sevan
841fdb7e60 Support the use of DHCP in the install environment 2020-04-05 14:36:43 +00:00
jdolecek
ff14298d06 no need to pollute dmesg by xennet_watchdog(), turn the message into DPRINTFN() 2020-04-05 14:20:18 +00:00
jdolecek
1322d29b97 remove nsmb from MD list of devices to create for 'all' 2020-04-05 14:09:17 +00:00
christos
749ba30f7b We generate this. 2020-04-05 13:25:01 +00:00
roy
e457e4abc4 tools: Build tic with full fat terminfo 2020-04-05 12:31:39 +00:00
roy
9e387da605 terminfo: Add guards to optionally build parts of libterminfo
Reading from a database is now optional.
Compiling terminfo descriptions (including from $TERMINFO) is now optional.
Compat support is now optional.

This removes 17k on amd64 from the binary size, which allows it to be used
again on space constrained ramdisks.
2020-04-05 12:31:02 +00:00
martin
d001b02d00 Adapt to libterminfo as part of libhack-curses 2020-04-05 11:19:01 +00:00
martin
fa0d5eae99 Extend the curses hack to terminfo - build selected parts of
libterminfo as part of libhack, so we can drop unwanted features
for small install media.
2020-04-05 11:18:02 +00:00
ryo
d052e2b491 add entry for NetMos NM9900 Octa UART
notice: On the boards I've obtained, the number on the cable stamp
doesn't match the actual unit number of the attached device.
Cable's 0,1,2,..,7 corresponds to comN+0,2,4,6,1,3,5,7 :-(
2020-04-05 10:43:09 +00:00
mlelstv
f8df89e092 revert to previous 2020-04-05 05:19:24 +00:00
christos
5c3c6e4f74 PR/55137: Kouichi Hashikawa: ipfstat -f incorrect output
- make sure frag is initialized to 0
- initialize ipfr_p field
2020-04-05 02:51:34 +00:00
christos
088d18f154 PR/55137: Kouichi Hashikawa: ipfstat -f incorrect output
Fix incorrect byte order.
2020-04-05 02:50:27 +00:00
christos
102c608adf we don't delete entries, we mark them obsolete so that postinstall can
delete the files.
2020-04-05 01:21:43 +00:00
christos
ab8a9ee1de us and them, then! 2020-04-05 00:36:25 +00:00
ad
035ad6a85b Allocate PV entries in PAGE_SIZE chunks, and cache partially allocated PV
pages with the pmap.  Worth about 2-3% sys time on build.sh for me.
2020-04-05 00:21:11 +00:00
ad
065aeb9d9a NetBSD 9.99.54 - namei changes. 2020-04-04 23:58:54 +00:00
christos
c6e7fca7f4 Document and set a default for KERNEL_DIR 2020-04-04 23:54:06 +00:00
kamil
e6494e6f4f Switch to type generic PRIu macros
Fixes build on i386.
2020-04-04 23:22:12 +00:00
christos
2cc98f83cd make sure _OSRELEASE is defined where it is needed. 2020-04-04 23:19:08 +00:00
kamil
b8ac715762 Fix LLVM sanitizers build after removal of netsmb
Cherry-pick upstream commit:

From 695ca346eb0c724fb79c6f166cfecd736eae6608 Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski <n54@gmx.com>
Date: Sun, 5 Apr 2020 00:54:55 +0200
Subject: [PATCH] [compiler-rt] Fix build on NetBSD 9.99.52+

Add a fallback definition of the netsmb device driver that
was removed.
2020-04-04 23:17:34 +00:00
jdolecek
ffdabc7e1f stop xfer timeouts during recovery, all xfers will be requeued anyway
this avoids race with the timeout routine when processing the xfers
for requeueing

should fix PR kern/54790 by Izumi Tsutsui
2020-04-04 22:30:02 +00:00
mlelstv
e264b2bd0f one more netsmb reference. 2020-04-04 22:08:33 +00:00
jdolecek
2f9d652e0f fix deadlock in wdcwait() when xfer timeout happens while the atabus
thread sleeps in wdcwait() - check current lwp rather than relying
on global ATACH_TH_RUN channel flag

should fix the hang part of the problem reported in
http://mail-index.netbsd.org/netbsd-users/2020/03/12/msg024249.html

thanks to Paul Ripke for providing extensive debugging info
2020-04-04 21:36:15 +00:00
dholland
7ec84f335a Move the note about sys_errlist[] users to COMPATIBILITY, and strengthen it. 2020-04-04 21:29:54 +00:00
dholland
903a8c167f Add missing ERRORS section. 2020-04-04 21:26:44 +00:00
fox
a4861c96ec lib/libusbhid: Fix possible left shift changes signedness bit.
This bug was reported by UBSan runs.

lib/libusbhid/parse.c:246:20

Can result in left shift changes signedness bit as a side effect positive number
can go negative, cast it to unsigned for the operation and silence the issue.

Reviewed by: kamil@
2020-04-04 21:26:16 +00:00
fox
f76ca3088f lib/libusbhid: Fix possible left shift changes signedness bit.
This bug was reported by UBSan runs.

lib/libusbhid/usage.c:247:27
lib/libusbhid/usage.c:244:28
lib/libusbhid/usage.c:235:13

Can result in left shift changes signedness bit as a side effect positive number
can go negative, cast it to unsigned for the operation and silence the issue.

Reviewed by: kamil@
2020-04-04 21:23:04 +00:00
fox
ef659d5053 lib/libusbhid: Fix possible left shift changes signedness bit.
This bug was reported by UBSan runs.

lib/libusbhid/data.c:58:25
lib/libusbhid/data.c:91:7
lib/libusbhid/data.c:92:7

Can result in left shift changes signedness bit as a side effect positive number
can go negative, cast it to unsigned for the operation and silence the issue.

Reviewed by: kamil@
2020-04-04 21:21:35 +00:00
dholland
4aee32ddde Minor clarification. And a typo. Bump date. 2020-04-04 21:20:39 +00:00
ad
c70743cce9 Mark uvm_map_entry_cache with PR_LARGECACHE. 2020-04-04 21:17:02 +00:00
kamil
068c592bb4 Add new example kernel module: current_time
Submitted by Apurva Nandan.
2020-04-04 21:15:04 +00:00
christos
42413888fc silence lint. 2020-04-04 21:13:20 +00:00
christos
9dd097b5c2 Always include the sampling member so that the struct size is consistent. 2020-04-04 21:00:03 +00:00
ad
3b26322cff vrelel(): clear VV_MAPPED with the vnode still locked. 2020-04-04 20:54:42 +00:00
ad
e1c1e00642 Regen. 2020-04-04 20:52:18 +00:00
ad
c90f9c8c81 Merge the remaining changes from the ad-namecache branch, affecting namei()
and getcwd():

- push vnode locking back as far as possible.
- do most lookups directly in the namecache, avoiding vnode locks & refs.
- don't block new refs to vnodes across VOP_INACTIVE().
- get shared locks for VOP_LOOKUP() if the file system supports it.
- correct lock types for VOP_ACCESS() / VOP_GETATTR() in a few places.

Possible future enhancements:

- make the lookups lockless.
- support dotdot lookups by being lockless and inferring absence of chroot.
- maybe make it work for layered file systems.
- avoid vnode references at the root & cwd.
2020-04-04 20:49:30 +00:00
christos
d361eb2a3d Switch x86 to the new binutils. 2020-04-04 20:47:56 +00:00
christos
1ddbc14e50 Regen everyone! 2020-04-04 20:45:42 +00:00
thorpej
7f4d3fb1f5 Man page for _lwp_gettid(2).
(Not yet installed, pending adding the libc stub.)
2020-04-04 20:31:11 +00:00
thorpej
4626c667bc Regen for _lwp_gettid(2). 2020-04-04 20:27:27 +00:00
ad
53a0f3bd01 preempt_needed(), preempt_point(): simplify the definition of these and
key on ci_want_resched in the interests of interactive response.
2020-04-04 20:21:53 +00:00
thorpej
851998c374 NetBSD 9.99.53 -- struct lwp changed. 2020-04-04 20:21:26 +00:00
thorpej
98a9cebbb6 Add support for lazily generating a "global thread ID" for a LWP. This
identifier uniquely identifies an LWP across the entire system, and will
be used in future improvements in user-space synchronization primitives.

(Test disabled and libc stub not included intentionally so as to avoid
multiple libc version bumps.)
2020-04-04 20:20:12 +00:00
ad
dac58e129b - sched_idle(): if a migration took place, rather than going idle briefly
to avoid stealing back the LWP, remember the target CPU and avoid it.

- sched_preempted(): only choose a totally idle CPU; in the interests of
  overall throughput it's better to make use of SMT / slow CPUs.
2020-04-04 20:17:58 +00:00
christos
d8e96a2d4f Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.
2020-04-04 19:50:53 +00:00
is
f6bfb0c4d8 Multilink fragment protocol type. 2020-04-04 19:46:01 +00:00
christos
8809b7dc13 fix netsmb, libgnuctf 2020-04-04 19:26:51 +00:00
kamil
52363f3637 Avoid copying zero-sized objects (from the NULL address)
Detected with UBSan
2020-04-04 19:24:51 +00:00
jdolecek
9cd2b890e6 remove also files.netsmb from here 2020-04-04 19:02:53 +00:00
christos
1aa528a00a smb is no more. 2020-04-04 17:57:16 +00:00