Go to file
rin d48f610611 ksymsmmap: Add missing uao_reference(9) call for ks->ks_uobj.
Fix failure for savecore(8) and subsequent kernel panic, introduced to
kern_ksyms.c rev 1.03, at least for sh3 and alpha.

For sh3 and alpha, savecore(8) supports coff and ecoff, respectively, via
libkvm via nlist(3). nlist(3) routines for coff and ecoff use mmap(2) and
munmap(2) for /dev/ksyms.

This munmap(2) decrements reference count for ks->ks_uobj. Unless it is
incremented in ksymsmmap(), ks->ks_uobj will be freed unexpectedly.
2021-09-22 05:42:19 +00:00
bin It is either teaching gcc about aaah or adding FALLTHROUGH. 2021-09-16 19:44:01 +00:00
common fix various typos in comments, messages and documentation. 2021-09-19 10:34:06 +00:00
compat remove obsolete files. 2021-06-18 06:34:00 +00:00
crypto ipsectools: fix lint error 2021-09-14 21:49:31 +00:00
dist/pf Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. 2021-07-24 21:31:31 +00:00
distrib Add native implementations of eventfd(2) and timerfd(2), compatible with 2021-09-19 15:51:27 +00:00
doc Update the status of the thorpej-futex branch. 2021-09-20 02:26:05 +00:00
etc Move the sanitizer libraries from 9.0.0 -> 13.0.0 to match our current clang 2021-09-16 23:32:49 +00:00
external centralize version handling 2021-09-21 20:34:37 +00:00
extsrc
games fix various typos in comments, messages and documentation. 2021-09-19 10:34:06 +00:00
include Change the default for ACLs to be posix1e instead of nfsv4 to match FreeBSD. 2021-09-18 03:05:19 +00:00
lib s/Plese/Please/ in comment, and fix an article in obio_wdc.c comment. 2021-09-19 20:52:47 +00:00
libexec fix typos in word "successfully", mainly s/succesfully/successfully/. 2021-09-16 21:29:41 +00:00
regress introduce a SOL_LOCAL for unix-domain socket level socket options 2021-08-08 20:54:48 +00:00
rescue smb is no more. 2020-04-04 17:57:16 +00:00
sbin fix various typos in comments, messages and documentation. 2021-09-19 10:34:06 +00:00
share Fix pasto. WSKBDIO_*BELL ioctls take struct wskbd_bell_data. 2021-09-18 18:14:07 +00:00
sys ksymsmmap: Add missing uao_reference(9) call for ks->ks_uobj. 2021-09-22 05:42:19 +00:00
tests UsePrivilegeSeparation is no more 2021-09-21 15:56:55 +00:00
tools Patch the build script and toolchain to allow passing through 2021-09-18 01:47:07 +00:00
usr.bin make: reduce relocations, thereby reducing .text size 2021-09-21 23:06:18 +00:00
usr.sbin fix few more typos in comments, messages and documentation. 2021-09-19 11:37:00 +00:00
BUILDING Reintroduce the support of MKCATPAGES 2020-11-10 21:47:40 +00:00
Makefile G/c spurious whitespace. 2020-10-29 20:26:24 +00:00
Makefile.inc
README.md README: use https for man.NetBSD.org 2021-09-05 12:45:44 +00:00
UPDATING Change the default for ACLs to be posix1e instead of nfsv4 to match FreeBSD. 2021-09-18 03:05:19 +00:00
build.sh Patch the build script and toolchain to allow passing through 2021-09-18 01:47:07 +00:00

README.md

NetBSD

NetBSD is a free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices.

Building

You can cross-build NetBSD from most UNIX-like operating systems. To build for amd64 (x86_64), in the src directory:

./build.sh -U -u -j4 -m amd64 -O ~/obj release

Additional build information available in the BUILDING file.

Binaries

Testing

On a running NetBSD system:

cd /usr/tests; atf-run | atf-report

Troubleshooting

Latest sources

To fetch the main CVS repository:

cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P src

To work in the Git mirror, which is updated every few hours from CVS:

git clone https://github.com/NetBSD/src.git