Commit Graph

8896 Commits

Author SHA1 Message Date
christos
a461f65adc Move the rump module test programs in the regular mi file. These are not
really kernel modules and the other md module test is in the md.amd64 file
already.
2020-05-01 17:14:28 +00:00
ryo
1da5a7c800 Add a test for sigaltstack(2) and SA_ONSTACK 2020-04-30 11:03:29 +00:00
riastradh
5084c1b50f Rewrite entropy subsystem.
Primary goals:

1. Use cryptography primitives designed and vetted by cryptographers.
2. Be honest about entropy estimation.
3. Propagate full entropy as soon as possible.
4. Simplify the APIs.
5. Reduce overhead of rnd_add_data and cprng_strong.
6. Reduce side channels of HWRNG data and human input sources.
7. Improve visibility of operation with sysctl and event counters.

Caveat: rngtest is no longer used generically for RND_TYPE_RNG
rndsources.  Hardware RNG devices should have hardware-specific
health tests.  For example, checking for two repeated 256-bit outputs
works to detect AMD's 2019 RDRAND bug.  Not all hardware RNGs are
necessarily designed to produce exactly uniform output.

ENTROPY POOL

- A Keccak sponge, with test vectors, replaces the old LFSR/SHA-1
  kludge as the cryptographic primitive.

- `Entropy depletion' is available for testing purposes with a sysctl
  knob kern.entropy.depletion; otherwise it is disabled, and once the
  system reaches full entropy it is assumed to stay there as far as
  modern cryptography is concerned.

- No `entropy estimation' based on sample values.  Such `entropy
  estimation' is a contradiction in terms, dishonest to users, and a
  potential source of side channels.  It is the responsibility of the
  driver author to study the entropy of the process that generates
  the samples.

- Per-CPU gathering pools avoid contention on a global queue.

- Entropy is occasionally consolidated into global pool -- as soon as
  it's ready, if we've never reached full entropy, and with a rate
  limit afterward.  Operators can force consolidation now by running
  sysctl -w kern.entropy.consolidate=1.

- rndsink(9) API has been replaced by an epoch counter which changes
  whenever entropy is consolidated into the global pool.
  . Usage: Cache entropy_epoch() when you seed.  If entropy_epoch()
    has changed when you're about to use whatever you seeded, reseed.
  . Epoch is never zero, so initialize cache to 0 if you want to reseed
    on first use.
  . Epoch is -1 iff we have never reached full entropy -- in other
    words, the old rnd_initial_entropy is (entropy_epoch() != -1) --
    but it is better if you check for changes rather than for -1, so
    that if the system estimated its own entropy incorrectly, entropy
    consolidation has the opportunity to prevent future compromise.

- Sysctls and event counters provide operator visibility into what's
  happening:
  . kern.entropy.needed - bits of entropy short of full entropy
  . kern.entropy.pending - bits known to be pending in per-CPU pools,
    can be consolidated with sysctl -w kern.entropy.consolidate=1
  . kern.entropy.epoch - number of times consolidation has happened,
    never 0, and -1 iff we have never reached full entropy

CPRNG_STRONG

- A cprng_strong instance is now a collection of per-CPU NIST
  Hash_DRBGs.  There are only two in the system: user_cprng for
  /dev/urandom and sysctl kern.?random, and kern_cprng for kernel
  users which may need to operate in interrupt context up to IPL_VM.

  (Calling cprng_strong in interrupt context does not strike me as a
  particularly good idea, so I added an event counter to see whether
  anything actually does.)

- Event counters provide operator visibility into when reseeding
  happens.

INTEL RDRAND/RDSEED, VIA C3 RNG (CPU_RNG)

- Unwired for now; will be rewired in a subsequent commit.
2020-04-30 03:28:18 +00:00
rillig
0cf5f48424 usr.bin/make: add test case for lazy conditions 2020-04-29 23:15:21 +00:00
rjs
9df5444666 The x86_pte tests are only built when MKKMOD=yes. 2020-04-28 13:43:45 +00:00
mlelstv
6676af1407 Add missing futex tests. 2020-04-26 21:05:36 +00:00
thorpej
276ef22378 Add a NetBSD native futex implementation, mostly written by riastradh@.
Map the COMPAT_LINUX futex calls to the native ones.
2020-04-26 18:53:31 +00:00
maxv
e497fc86e6 Add tests on the x86 PTEs. We scan the MMU page tables directly and verify
certain properties.
2020-04-26 09:08:40 +00:00
rin
e14b16b8c0 Adjust for binutils 2.34. 2020-04-26 06:58:05 +00:00
bouyer
224cc4e632 Add /usr/include/xen/intrdefs.h to sets
Add xen to KLINKFILES for amd64/i386
2020-04-25 15:46:59 +00:00
kre
9d0d79c629 Update to tzdata2020a (new zone file America/Nuuk)
XXX pullup -8 -9
2020-04-25 12:18:47 +00:00
uki
6f0f0600e3 Add -unknown- to "./netbsd" in modules/mi to fix "build.sh syspkgs" failure 2020-04-23 11:41:28 +00:00
maxv
7ee848d944 Add tests for USER_LDT. 2020-04-19 13:22:58 +00:00
kre
e9f637c8af Since dhcpcd-hools/02-dump seems to have been removed from the
repository, don't attempt to install it, and don't expect it to
be installed.    If a better fix is to return 02-dump, then this
change can be reverted (by anyone, just go ahead and do it).

dhcpcd(8) should also have mention of 02-dump removed, if removing
it was intentional.
2020-04-14 03:16:26 +00:00
simonb
a91470c59b Add uxrcom driver for Exar XR21V141x USB serial adapters. Based in part
on the OpenBSD single-port XR21V1410 uxrcom driver, but adds support
for multi-port chipsets and uses the common umodem framework instead of
being a standalone driver.

Thanks to skrll@ for much USB clue and mrg@ for financing the
development of this driver.
2020-04-12 01:10:53 +00:00
christos
407ffe11fc Add new t_extattr 2020-04-11 01:51:14 +00:00
mlelstv
f8df89e092 revert to previous 2020-04-05 05:19:24 +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
mlelstv
e264b2bd0f one more netsmb reference. 2020-04-04 22:08:33 +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
christos
8809b7dc13 fix netsmb, libgnuctf 2020-04-04 19:26:51 +00:00
christos
ec53555ab5 gnuctf is only binutils=234 2020-04-04 17:00:05 +00:00
christos
1a8140ac32 fix libgnuctf 2020-04-04 16:05:39 +00:00
christos
1e0e781857 fix sets for new binutils 2020-04-04 16:04:01 +00:00
jdolecek
b28734a61b remove SMBFS and nsmb/netsmb - userland part 2020-04-04 15:39:13 +00:00
mlelstv
9f445f8e17 More binutils version mismatch. 2020-04-04 12:06:57 +00:00
mlelstv
19fee71a55 conditionally list library versions for binutils 2.31 and 2.34 2020-04-04 09:57:12 +00:00
roy
da35319256 Adjust set lists for dhcpcd chroot 2020-04-02 13:03:22 +00:00
kamil
bf4492493d Add ioctlprint - descriptive ioctl value printer
ioctlprint(1) is embedded in the kdump(1) program.
2020-04-02 03:32:46 +00:00
maxv
0512ed0af2 Put the ioctl definitions in a header, and install it. 2020-03-31 16:28:28 +00:00
christos
f56084844e Add rpcapd 2020-03-30 02:12:38 +00:00
christos
66d7aa31df enable remote for libpcap and add rpcapd 2020-03-29 17:13:46 +00:00
christos
3958d16a96 As described in tech-userlevel:
- Modify the writing code to only write entries in the new
  format for the terminal descriptions that require it.
- Store new format entries as <name>@v3
- Store old format entries with clamped values as <name> for
  backwards compatibility
- Lookup first <name>@v3 and then <name> if that is not found.
- Don't create terminfo2 anymore; old programs keep working with
  clamped entries, and new programs be able to use the wide
  fields with using the original db file.
2020-03-27 15:11:57 +00:00
thorpej
8ddade78c3 Let xunlong,orangepi-lite2 share bwfm config with raspberrypi,3-model-b-plus;
it seem to work fine and there's no better alternative at the moment.
2020-03-27 04:31:18 +00:00
kre
5388a00941 Document strerror_l()
While here also document (but comment it out since it isn't
available - yet) strerror_lr().   To include that, simply
uncomment the relevant lines, and (twice I think) s/returns/return/
on lines just after currently commented out lines (that is, it
currently says, "A returns" after the comments are returned, we
need it to be "A and B return" - the "and B" appears when the comment
markers are removed, removing the 's' from returns must be done manually.

In addition to adding strerror_l() some additional enhancements were
made to the general strerror() doc.
2020-03-25 18:45:42 +00:00
christos
4fa722caef add pw_gensalt 2020-03-25 17:13:49 +00:00
roy
bb2ce1fb3d curses: Add stubs for mouse functions
No mouse support actually included.
But that doesn't matter because most terms don't actually support a mouse.

We should look into hooking these into wsmouse(4) and xterm mouse
in the future.

Compatable with nCurses mouse API version 2.
2020-03-23 13:37:36 +00:00
thorpej
3639ae7e3e Install the common AP6212 nvram config and use it for sinovoip,bpi-m2-zero. 2020-03-22 22:36:12 +00:00
thorpej
fa16de81c1 The raspberrypi,model-zero-w uses the same nvram config file as the
raspberrypi,3-model-b.
2020-03-22 22:17:11 +00:00
thorpej
e36e7c169a Install the "bwfm" firmware for the Pinebook Pro. 2020-03-22 21:13:35 +00:00
thorpej
4886cefda0 Add new bwfm firmware binaries and config files. Only install the
SDIO firmware binaries and platform-specific config files on platforms
where they're relevant.
2020-03-22 20:21:53 +00:00
ad
5de49fc7c2 Wrap vnode_impl.h in defined(_KERNEL) || defined(_KMEMUSER), and install
it for kmem grovellers.
2020-03-22 14:27:33 +00:00
skrll
73cad4db9c hopefully fix builds 2020-03-14 06:39:20 +00:00
roy
aadfdb111b terminfo: promote numeric parameters from short to int
POSIX mandates implementations must support upto a short but may exceed it.
When NetBSD terminfo was implemented, no terminfo description used over
a short, but because ncurses has supported ints for some time, some now do.

Infact, such a terminfo description was imported where colour pairs for
screen-256color went up to 65536 which exposed a bug in the existing
implementation where it set to zero. Because the number might mean
something more than a range, we need to be able to store it accurately.

This requires a version bump because whilst the API hasn't changed thanks
to C int promotion, the ABI has. Also the underlying database structure
has changed as well - we now store the numeric paramter inside a uint32_t
field rather than a uint16_t one.
Whilst this change can still read the old style database, the old one
cannot read the new one and thus we now maintain the database as
terminfo2.cdb, leaving the old library and database alone so old programs
still work fine.

libcurses, libfrom, libmenu and libpanel have also been bumped to
accomoate this change.
2020-03-13 15:19:24 +00:00
pgoyette
e135ca8390 Add new netbsd32 quota modules to sets lists 2020-03-12 15:04:13 +00:00
skrll
fcbc11fb45 Fixup the evbarm PCI modules 2020-03-11 08:31:08 +00:00
christos
7aea3fca18 wrong test name 2020-03-09 02:22:20 +00:00
mgorny
43b5dbaaaf Update libc SOVERSION 2020-03-08 22:42:35 +00:00
mgorny
5fb02e28e8 Add tests for missing libc catalog entries 2020-03-08 22:08:46 +00:00
christos
40bc2ecca0 new test for ifconfig 2020-03-08 17:23:55 +00:00
skrll
304e3f3f2c Fix sets 2020-03-08 15:21:15 +00:00
kamil
fe331b9d9e Add new ptrace(2) test file
t_ptrace_sigchld - for SIGCHLD handler + ptrace(2).

Right now a single test is enabled (raise(SIGKILL)) and marked as failed
as it never finishes as the child is never collected before exiting the
parent uninterested about its child (SA_NOCLDWAIT).
2020-03-06 18:32:35 +00:00
christos
e13814a4fd fix pam annotations 2020-03-04 22:09:00 +00:00
christos
f13dbbb9b4 add libfido2, libcbor, pam-u2f, sort 2020-03-03 00:38:12 +00:00
skrll
9e9cdb30a4 if_ixl is MD 2020-02-29 18:46:12 +00:00
yamaguchi
7b177b731a Make ixl(4) be able to build as a module 2020-02-27 06:30:55 +00:00
christos
9a26835b4c new openssh 2020-02-27 00:25:49 +00:00
kamil
64685cea19 Register groups.0 and users.0 in distribution sets
Fixes MKCATPAGES=yes build.
2020-02-26 16:12:44 +00:00
riastradh
e4d662933e Draft man pages for the standard users and groups.
These are currently listed in order of uid because I went through
src/etc/group and src/etc/master.passwd line by line, and sorting any
other way after the fact -- like lexicographically, how it should be
-- was kinda inconvenient.

Feel free to sort, add information, add historical references,
correct any mistakes, &c., so that these remain living documents
describing NetBSD's standard users and groups and practices around
them.
2020-02-26 07:31:51 +00:00
mrg
ca82237625 updates for xkeyboard-config 2.29. 2020-02-23 11:17:03 +00:00
ad
284662e223 Add rw_lock_op(): return either RW_READER or RW_WRITER for a lock that is
known to be held by the caller.  Panic if the lock is not held.
2020-02-22 21:24:44 +00:00
uki
b373ac9cc5 PR misc/46937: add modules package, from Lloyd Parkes. 2020-02-11 11:36:52 +00:00
martin
5dcf5b437a Add new test programs 2020-02-11 09:32:07 +00:00
isaki
e758b536e1 Add ATF tests for audio(4).
91 passed test cases
    0 failed test cases.
    0 expected failed test cases.
    62 skipped test cases.

There are many skipped tests, because the test itself supports full-
duplex, half-duplex and uni-directional devices but pad(4) used in ATF
tests is uni-directional device.
2020-02-11 07:03:16 +00:00
riastradh
d78835f01e Test that fpu state is preserved by fork. 2020-02-11 03:15:10 +00:00
jmcneill
428130a8e6 Retire azalia(4). 2020-02-09 16:06:17 +00:00
kamil
bc3e03d8e1 Install LLVM sanitizers to /usr/lib/clang/9.0.0
This is the proper location where clang 9.0.0 looks for them.
2020-02-07 18:48:58 +00:00
thorpej
563163014b Add percpu_foreach_xcall(9). 2020-02-07 13:10:26 +00:00
uki
52ffe2313c Fix incorrect package name in xcomp 2020-02-06 12:13:45 +00:00
kamil
771c425869 Port realpath(1) from FreeBSD
realpath(1) wraps realpath(3) and returns resolved physical path.

This utility shipped with GNU and FreeBSD is sometimes
used in scripts in the wild.
2020-02-02 21:49:43 +00:00
tsutsui
fc9073f9fe Add MAX/MIN PAGE_SIZE and PAGE_SHIFT definitions of m68k for jemalloc(3).
Background:
- All m68k ports have fixed PAGE_SIZE value in their kernels,
  but each port uses different PAGE_SIZE value (4096 or 8192)
  due to historical reasons.
- Currently module(7) binaries are built per each port so
  all m68k kernel sources don't support run-time variable PAGE_SIZE.
- MI <uvm/uvm_param.h> assumes that the port supports a variable
  PAGE_SIZE on module(7) builds if both MAX_PAGE_SIZE and MIN_PAGE_SIZE
  are defined and they have different values.
- On the other hand, jemalloc(3) checks MAX_PAGE_SHIFT in
  src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h
  for internal optimization.
- m68k ports share userland binaries (especially pkgsrc binaries)
  among all ports, so we need to define MAX_PAGE_SHIFT as 13 to
  support m68k ports where PAGE_SIZE==8192.
  (though this would affect only if static binaries built on
   4k page hosts are executed on 8k page hosts)

To solve these inconsistency on PAGE_SIZE definitions,
we should have an independent PAGE_SIZE related definitions
for userland, but it requires major reorganization.
For now (especially for netbsd-9) we define MAX/MIN PAGE_SIZE and
PAGE_SHIFT values in <m68k/vmparam.h> only in !defined(_KERNEL) case.

Discussed on source-changes-d@ and tech-kern@ with christos@ and thorpej@:
 https://mail-index.netbsd.org/source-changes-d/2020/01/thread1.html#012035
 https://mail-index.netbsd.org/tech-kern/2020/01/thread1.html#025954

Should be pulled up to netbsd-9.
2020-02-01 19:41:48 +00:00
riastradh
d92a26fbe9 New function percpu_create.
Associates a constructor and destructor with the percpu.  Currently
the constructor runs immediately, but in principle we could use the
same API for future CPU hotplug support.

This lets you sleep for allocation or draining users before
deallocation when setting up or tearing down a percpu -- currently we
have many abuses of percpu_foreach in tree for that purpose.

Proposed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/30/msg026036.html
2020-02-01 12:49:02 +00:00
jmcneill
bc2c80f256 Build radeonsi driver. 2020-01-31 20:56:03 +00:00
maya
5e031685d6 remove urio(4), a driver for the Rio500 MP3 player.
At this point it is highly unlikely this 1999 device still has users,
but it still comes up in the context of maxv's USB-fuzzing (and any device
could pretend to be a urio(4)), so it's best to get rid of it.

Renamed all major entries to obsolete, as was done in previous removals.

This still requires an update to sanitizers, but they're located in
"external", perhaps it should be first committed upstream?

Proposed on tech-kern a month ago.
2020-01-29 18:39:00 +00:00
thorpej
da7319bed1 Add <net/if_stats.h>. 2020-01-29 03:17:34 +00:00
roy
4bfa4dda38 These directories may not be installed for aarch64 2020-01-25 11:26:39 +00:00
uki
1edad8f421 Fix incorrect package name, lacked category prefix. 2020-01-25 00:12:42 +00:00
thorpej
c718a72d76 I overlooked the esh(4) man page when removing HIPPI support; remove it
now.  Thanks maxv@ for noticing and pointing it out.
2020-01-22 14:01:50 +00:00
taca
7f302b7b1d Revive entries for uyurex(4) as obsolete. 2020-01-21 03:29:56 +00:00
pgoyette
09a5fcaf68 Split the compat_50 module into two, separating the QUOTA-related
stuff from the rest of the module.  This allows loading of the
(main) compat_50 module on kernels that don't include ``options
QUOTA''.

Welcome to 9.99.40 !

Addresses PR kern/54875
2020-01-21 02:37:16 +00:00
thorpej
4541d6828b Remove FDDI support. 2020-01-20 18:38:17 +00:00
riastradh
08a157de6e Remove filemon(4).
Discussed on tech-kern:
https://mail-index.NetBSD.org/tech-kern/2020/01/13/msg025938.html

This was never (intentionally) enabled by default, and the design has
some shortcomings.  You can get mostly the same results with ktrace,
as in usr.bin/make/filemon/filemon_ktrace.c which is now used instead
of filemon for make's meta mode.

If applications require higher performance than ktrace, or nesting
that ktrace doesn't support, we might consider adding something back
into the vfs system calls themselves, without hijacking the syscall
table.  (Might want a more reliable output format too, e.g. one that
can handle newlines in file names.)
2020-01-19 20:41:17 +00:00
thorpej
ed469c22d6 Remove Token Ring support. 2020-01-19 20:00:35 +00:00
thorpej
332fd700ea Remove the de(4) driver, which has long since been supplanted by the
tlp(4) driver, which supports more chips and more board variants.
2020-01-19 17:53:14 +00:00
martin
51bed8e97e Fix set lists after HIPPI removal 2020-01-19 10:50:25 +00:00
jmcneill
6c8891e8fa Build ati driver on evbarm. 2020-01-19 10:45:49 +00:00
thorpej
85654ec7a9 Remove HIPPI support and the esh(4) driver that uses it. There have not
been any users of HIPPI for some time, and it is unlikely to be resurrected.
2020-01-19 06:55:21 +00:00
thorpej
c1d9ec8d89 Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
2020-01-19 01:25:03 +00:00
jmcneill
c91ab881ac Build radeon and nouveau drivers on evbarm. 2020-01-19 00:58:13 +00:00
kre
657e82114e Move recently added .debug files from tests/mi to debug/mi (with all the
others) and while so doing, give them the "debug" attribute.

While here, sort.
2020-01-18 17:18:41 +00:00
christos
a1e5957c5f fix names of debug files and missing directories 2020-01-17 20:14:39 +00:00
christos
22846ab0d9 remove trailing , 2020-01-17 19:44:12 +00:00
christos
8f8c9a1ff6 Add libarchive tests 2020-01-17 16:23:04 +00:00
maya
09ad70fb6c Remove uyurex(4).
This is a driver for a "nonsense machine" made by the art group Maywa-Denki
in 2008. It was disabled by default.

Unfortunately even so it draws development attention (flaws found in the
code, MP-ification needs) and it is best not to continue to maintain this
driver.

Proposed without objections on tech-kern.
2020-01-17 15:00:20 +00:00
kamil
ee05bbd41a Document dlinfo(3)
Man-page taken from FreeBSD.
2020-01-13 08:25:02 +00:00
ryo
6d2cfc2125 add support Aquantia AQC seriese 10G network adapters.
this driver is based on the FreeBSD version https://github.com/Aquantia/aqtion-freebsd ,
but drastically rewritten for NetBSD.
2020-01-01 10:11:21 +00:00
uki
6cb418f169 Done giving syspkg names without xorg_server_ver=110 2019-12-31 05:01:49 +00:00
uki
09a8769c6e Give syspkg name to macppc machine dependency files 2019-12-31 01:54:19 +00:00
uki
22f63fdf6d Give syspkg name to x68k machine dependency files 2019-12-31 01:20:06 +00:00
uki
469e7eba30 Fix incorrect obsolete package name 2019-12-30 05:37:19 +00:00
uki
23cdb66599 Give syspkg names to sparc machine dependency files 2019-12-30 05:36:51 +00:00
uki
57981cf58f Give syspkg name to sparc64 machine dependency files 2019-12-30 04:35:45 +00:00
uki
62f03abadc Give syspkg names to machine dependency files in alpha 2019-12-29 07:31:36 +00:00
uki
71f15fcb7a give syspkg names to i386 machine dependencies files in x11 2019-12-29 03:00:35 +00:00
maxv
87107185b5 Revert the removal of filemon. 2019-12-23 06:45:36 +00:00
maxv
e67f51b8f7 Retire filemon, discussed on tech-kern@. 2019-12-18 07:37:17 +00:00
christos
a7f52e3116 PR/54768: elo: Missing cksum(1) convenience links (and docs) for new sha2
functions.
2019-12-15 03:55:56 +00:00
ad
0c2afd2995 Include radixtree in the kernel. 2019-12-14 15:30:37 +00:00
yamaguchi
a5e8635231 Ported driver for Intel Ethernet 700 series
reviewed by msaitoh and knakahara
2019-12-10 12:08:52 +00:00
riastradh
1ec67535be Add missing MLINK for membar_datadep_consumer(3).
Detected by the indefatigable wizd.
2019-12-07 15:13:59 +00:00
jmcneill
06647ff168 Move dtrace_syscall_linux out of mi set list 2019-12-04 11:47:17 +00:00
hikaru
068d6bf691 Add HMAC-SHA-{256,384,512} test cases. 2019-12-03 04:20:45 +00:00
pgoyette
22f5562b74 Add the new unit-tests for make(1) to the sets list, fixing the build. 2019-11-30 04:06:22 +00:00
riastradh
845417da2c Missed another spot.
Marked mb.9 obsolete but forgot to mark mb_memory.9 &c. too.
2019-11-30 00:02:15 +00:00
riastradh
86f9decda4 New atomic load/store operations for the kernel.
Guarantee no fusing and no tearing, and can optionally impose
ordering relative to other memory operations.

Unordered:
- atomic_load_relaxed
- atomic_store_relaxed

Ordered:
- atomic_load_acquire
- atomic_load_consume
- atomic_store_release

These are intended to match C11 semantics, and can be defined in
terms of the C11 atomic API when ready.
2019-11-29 22:17:23 +00:00
riastradh
bb04fd03e6 Nix obsolete mb(9) man page. 2019-11-29 20:31:35 +00:00
hikaru
87bee1d028 Add opencrypto driver for Intel QuickAssist. 2019-11-20 09:37:44 +00:00
uki
dab314a7bd Fix uncorrect package name in xdebug mi 2019-11-14 02:27:18 +00:00
uki
d81276d301 Give syspkg names to lintlib packages 2019-11-12 10:14:11 +00:00
joerg
76c7fc5f6b Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da) 2019-11-11 22:44:56 +00:00
christos
6fd58cbce2 Add __FPTRCAST 2019-11-10 18:47:13 +00:00
rin
2055c79d5d Try to fix build failure due to missing obsolete qualifier. 2019-11-04 00:51:33 +00:00
rin
31575e7ffd Fix previous; restore accidentally removed newline. 2019-11-04 00:33:29 +00:00
uki
59b3edf18c Give syspkg names to xdebug files without some machine dependent files 2019-11-03 01:35:47 +00:00
christos
45e68d0766 Fix sets for gcc-8 2019-11-02 21:34:58 +00:00
msaitoh
2eec381762 Port SMSC LAN87xx 10/100 Ethernet PHY driver from FreeBSD with some cleanup
and IFM_NONE support.
2019-11-01 02:53:22 +00:00
msaitoh
d4bacf091b Add jmphy(4) from OpenBSD. 2019-10-30 12:06:25 +00:00
uki
c9356f17fb Give syspkg names to xserver amd64 md files without xorg_server_ver=110 2019-10-30 11:59:02 +00:00
joerg
19861c4632 Fix aarch64 set for !gcc build 2019-10-28 18:08:44 +00:00
pgoyette
e372fea7cc Add debug entry for newly introduced nvmmctl utility. 2019-10-28 15:42:07 +00:00
maya
087d862b47 Disable filemon.
It isn't suited for general use (that is, it poses security risks),
but the existence of the module means it is auto-loaded when /dev/filemon
is opened, which can be done by any user.

Thanks Ilja van Sprundel for the heads up.
2019-10-28 13:19:50 +00:00
maxv
a8c6c0bf54 Add nvmmctl, with two commands for now. 2019-10-28 13:04:18 +00:00
ozaki-r
b2358a5409 Implement a front-end driver of virtio-9p called vio9p
In conjunction with mount_9p, it enables a NetBSD system running as a VM guest
to mount an exported filesystem by the host via virtio-9p.  It exports a 9p
end-point of virtio-9p via a character device file for mount_9p.

Reviewed by yamaguchi@
2019-10-28 02:56:40 +00:00
uki
efe35ffde2 Give syspkg names to xserver without machine dependet files 2019-10-26 07:31:39 +00:00
martin
fdafaadd05 Add support for Nuvoton NCT5104D GPIO chips, as found on PC Engines APU
systems. From Andrew Doran in PR kern/54648.
2019-10-25 17:39:56 +00:00
uki
6e824db87c Give syspkg names to xserver mi files 2019-10-23 21:40:36 +00:00
uki
ac8ca99519 Architecture dependency files are obsolete 2019-10-23 21:31:32 +00:00
uki
823b76dc06 Give syspkg names to xetc files 2019-10-22 06:28:18 +00:00
uki
5111726743 Give syspkg names to xcomp all online manuals 2019-10-22 03:01:53 +00:00
uki
03eb71223f Give syspkg names. catman, htmlman, man are remaining 2019-10-21 11:59:01 +00:00
christos
1e0c7fc18e remove sup 2019-10-15 18:33:23 +00:00
uki
dd7dd1d4bb Give syspkg's names to xcomp mi files until extensions. 2019-10-15 04:25:44 +00:00
christos
10efdc47b0 bump libssh 2019-10-12 18:34:14 +00:00
mrg
4324503887 remove shared libraries from 'obsolete' lists. should fix eg:
/usr/pkg/lib/libaudiofile.so.1: Shared object "libstdc++.so.8" not found

oops.  sorry for anyone affected by this.
2019-10-12 09:09:14 +00:00
nros
951054b00a Add manpage links for frexpf and frexpl.
Manpage links were missing for frexpf and frexpl even thogh they were
mentioned in the manpage for frexp.
2019-10-11 18:36:22 +00:00
msaitoh
d3ce678f8d Add support IC Plus IP1000* PHYs. PR/kern 42314 first reported by
Tomokazu HARADA and patch provided by Andrius V.
2019-10-07 11:53:40 +00:00
jhigh
c7ab523edc adding full scheme comparison to libcrypt:crypt and pwhash tests 2019-10-05 18:06:16 +00:00
mrg
7cd6de38ea gcc 8 set lists updates. i don't appear to have broken gcc 7 builds
but i only tested a couple of them.
2019-10-03 00:59:49 +00:00
maya
50f7458533 Split out /rescue to its own set and adapt installers/images to add it.
This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.
2019-10-02 11:15:59 +00:00
maya
ff1ecf5fdf Mark /rescue/edlabel as MI-obsolete, so we can remove all remaining MD
rescue set list files.
2019-10-02 09:47:24 +00:00
maya
586fb1f9e7 Remove ldconfig from /rescue, and mark it MI obsolete.
- ldconfig in netbsd refers to a.out binaries only. We've been ELF-only
  since NetBSD 2.0 or so, and having it in /rescue served little purpose
  even before that, as /rescue is standalone.
- Using MI obsolete to avoid the need for MD set lists where ldconfig
  is the sole entry
2019-10-02 09:45:10 +00:00
rin
d66ba54477 Describe roundup2(9) in roundup(9).
Bump date.

Install it also as roundup2(9).
2019-10-02 08:21:08 +00:00
christos
8edcd49088 grr forgot one libpcap. 2019-10-01 21:36:54 +00:00
christos
831945a111 new libpcap 2019-10-01 16:07:14 +00:00
kamil
7c33c59848 Fix MKDEBUG distrib sets
Add libpthread, libnvpair and ZFS libs to dynamicroot.
2019-09-23 16:07:07 +00:00
christos
02cdd248ec Add a new member to struct vfsstat and grow the unused members
The new member is caled f_mntfromlabel and it is the dkw_wname
of the corresponding wedge. This is now used by df -W to display
the mountpoint name as NAME=
2019-09-22 22:59:37 +00:00
brad
2e0a32871b Add USE_SHLIBDIR=yes to a number of Makefiles for the libraries used
by /sbin/{zfs,zpool,mount_zfs}.  The general effect is to move them
from /usr/lib to /lib.  Compatibility links are installed in /usr/lib
and nothing that is installed, say in /usr/pkg, appears to break.

With this, it is possible to have a /var and /usr mount using ZFS
legacy mounting early on in the boot process.

Run tested on amd64 and i386 and compile tested on evbarm.
2019-09-22 18:45:19 +00:00
jmcneill
a594e6948a Add support for Mellanox 5th generation ethernet devices. This driver
supports the ConnectX-4 Lx EN, ConnectX-4 EN, ConnectX-5 EN, and
ConnectX-6 EN adapters.

Driver ported from OpenBSD.
2019-09-21 14:04:12 +00:00
mrg
fe950ae3d5 add mos(4) driver for Moschip MCS7730/MCS7830/MCS7832 usb ethernet.
ported from openbsd.  usbnet version loses about 40% of code.
2019-09-20 10:34:54 +00:00
mrg
472957cfb8 enable building modules for if_aue(4), if_cdce(4), if_cue(4),
if_kue(4), if_upl(4), if_url(4), and if_urndis(4)
2019-09-17 07:36:51 +00:00
mrg
e0661ac046 build exec_elf32 module on arm64. 2019-09-17 04:43:47 +00:00
mlelstv
3f34a4a221 Include mount_zfs man pages only for MKZFS builds. 2019-09-16 08:31:05 +00:00
brad
12ea0a140d Add support for legacy ZFS filesystems, specified by mountpoint=legacy
in the ZFS properties of the dataset and a simple man page for
mount_zfs.  With this, it is possible to put ZFS filesystems in
/etc/fstab as file system type zfs.

Add a rc.d script that kicks the module ZFS load mostly before
mountall runs simular to what LVM does.  This allows for any legacy
mounts to be specified in critical_local_filesystems and allows for
ZFS pools on top of cgd (probably among other things).  Introduce a
rc.conf variable called zfs which needs to be set to YES, in the usual
manor of things, to get zvols and ZFS dataset support rather then just
assume that 'zfs mount' does that in mountall.  Fix a problem in
mountall if ZFS is not compiled into the system.
2019-09-15 19:38:08 +00:00
christos
6d45a93d7f fexecve(2) related additions. 2019-09-15 16:58:11 +00:00
christos
7a5da1b9e8 add t_fcntl 2019-09-15 16:28:09 +00:00
martin
c96e2cf529 Add new multiboot2.h header. 2019-09-13 05:13:54 +00:00
uki
64399a4579 Give package name to xcomp machine dependency files 2019-09-12 09:45:43 +00:00
roy
5dd6236aa5 resolvconf: Build the pdnsd subscriber
Not the most ideal, but technically it works.
2019-09-08 21:04:31 +00:00
roy
c1380af7c7 resolvconf: Build the pdns_recursor subscriber
As it now does something more useful than libc.
2019-09-08 20:55:57 +00:00
christos
944c9a93f6 fix more bind bump. 2019-09-06 11:12:06 +00:00
christos
9049affe72 bump for bind 2019-09-05 19:37:46 +00:00
riastradh
1d19105e89 Revert "Add more missing firmwares."
This reverts
https://mail-index.NetBSD.org/source-changes/2019/08/27/msg108499.html
which broke the tree on case-insensitive file systems.

See discussion at
https://mail-index.NetBSD.org/source-changes-d/2019/08/27/msg011590.html
for alternatives considered.

This does _not_ simply mark the new files as `obsolete' in the set
lists, because if we marked foo.bin obsolete then on a case-
insensitive file system, then it would try to delete the FOO.bin that
we still want installed.  We'll require a manual change announced in
UPDATING and on current-users.

ok msaitoh
2019-09-03 15:34:08 +00:00
roy
c977d4cfab curses(3): add curses_version()
Returns NetBSD-Curses %s
Where %s is the NetBSD version taken from sys/param.h

Discussed on tech-net@, only for ncurses compat.
2019-09-02 09:08:29 +00:00
mrg
0483faae68 document usbnet diagnostics in usbnet(4). remove all the no longer
present messages in specific drivers for the usbnet drivers.
2019-08-30 08:54:58 +00:00
rmind
0e4f0bc520 Install thmap(9) man page. 2019-08-28 21:48:14 +00:00
uki
1c8b0f6e10 syspkg naming for xcomp shl.mi 2019-08-28 12:24:03 +00:00
kamil
1a5f018b01 Enhance the support of LLVM sanitizers
Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.
Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.
2019-08-27 22:48:53 +00:00
msaitoh
1286d0263a Add more missing firmwares. 2019-08-27 12:45:04 +00:00
msaitoh
0745f2c8df Add missing TAHITI_vce.bin, RV770_uvd.bin, RS780_uvd.bin and R600_uvd.bin.
Fix panic on my own HP EliteDesk 705 G1 SFF. It also fixes PR kern/53988
reported by Onno van der Linden.
2019-08-26 15:35:14 +00:00
kamil
a0f3a067f2 Correct the build rules of LLVM sanitizers
Fix generation of .a.syms files in LLVM sanitizers. The old rules weren't
functional and sometimes they were fatal in the build.

Add the .a.syms files to distribution sets.
These files are generated only in certain .a files in 64bit version of
sanitizers.

Correct the location of files with LLVM sanitizers. Move the LLVM sanitizer
entries from base to comp files.
2019-08-26 04:49:45 +00:00
mrg
1db21b1df3 fix MKCXX=no:
- don't build GDB
- don't build sanitizers
- don't build GCC commands
- fix some set lists
2019-08-23 08:17:26 +00:00
kamil
4ed00d96e7 Enhance MKSANITIZER support
Add i386 support for LLVM sanitizers.

Add new build phases do-sanitizer-* for building LLVM sanitizers after libs
and before other programs. This phase is important as sanitizers need
to link with libs and sanitized programs must link with sanitizer runtimes.
2019-08-23 06:38:27 +00:00
adam
4e86ae76ab Fix building compiler_rt with MKCOMPAT=no; approved by kamil@ 2019-08-22 18:15:44 +00:00
nakayama
d9ec4c1e4c Remove obsolete entry for libgomp.so.1.2.
Upgrading from netbsd-8 to netbsd-9 removes this library file, but some
programs (eg. packages compiled on netbsd-8) still use it.
2019-08-21 13:48:37 +00:00
uki
03076a9ebe Give syspkg name to xbase mi files 2019-08-20 12:08:17 +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
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
kamil
645a2f39f4 Ship with sanitizer/lsan_interface.h for LLVM 7
Leak Sanitizer header is already needed in the distribution for built with
Address Sanitizer (MKSANITIZER):

 - dist/llvm/utils/TableGen/TableGen.cpp
 - dist/clang/utils/TableGen/TableGen.cpp

Next version of LLVM (9.0) will ship with LSan.
2019-08-15 16:31:17 +00:00
kamil
c208434299 Ship with sanitizer/lsan_interface.h for GCC 7
Leak Sanitizer is there.
2019-08-15 16:01:27 +00:00
kamil
f3834eb55d Add LLVM sanitizers in the MKLLVM=yes build
Enable in all the supported variations for NetBSD/amd64:

 - Address Sanitizer
 - Thread Sanitizer
 - Memory Sanitizer
 - Undefined Behavior Sanitizer
 - SafeStack
 - libFuzzer
 - XRay

This change enables the features on amd64 for start.
2019-08-14 01:42:08 +00:00
uki
92beaecdd6 Give syspkg names to xbase mi binaries and manuals 2019-08-13 12:29:00 +00:00
uki
59582bcdc9 Give syspkg names to xbase shl.mi files 2019-08-12 03:51:23 +00:00
uki
7ba21873da Change xbase MD package names for more correctly 2019-08-12 03:48:32 +00:00
mrg
2e9fdde4cf usbnet may be stable now. document it. 2019-08-10 20:35:35 +00:00
skrll
8b3bf7f98b Build an if_udav module (untested) 2019-08-08 16:06:14 +00:00
mrg
773ec77d3f introduce a library of common code / backends to share code between
USB ethernet drivers.

usbnet.h introduces a new set of APIs to provide common solutions
for these driver features:
 - USB endpoint pipe handling
 - rx and tx chain handling
 - generic handlers or support for several struct ifnet callbacks
 - MII bus locking
 - interrupt handling
 - partial autoconf handling: much of attach, and detach/activate
   can use common versions directly.

currently, only axen(4) and cdce(4) are converted.  the reductions
in these drivers are quite significant:  if_cdce.c is reduced from
1000 lines to 320 lines, and if_axen is reduced from 1902 lines
to 1021 lines.

add a "usbnet" module and make the if_axen module depend upon it.
2019-07-31 09:13:16 +00:00
christos
1367962cfd add new wcsrtombs test 2019-07-28 13:49:22 +00:00
roy
7a897ead2a leot wants the ability to start wpa_supplicant from dhcpcd
without having to start wpa_supplicant seperately, thus the example
hook is restored.
2019-07-26 13:29:36 +00:00
wiz
0d8cd421b1 Fix set name in previous. 2019-07-26 10:42:41 +00:00
roy
be7d6d28fc Stop installing 10-wpa_supplicant.
Only install 50-ypbind when MKYP=yes.

Partially addresses PR install/54351.
2019-07-26 10:34:26 +00:00