Commit Graph

15376 Commits

Author SHA1 Message Date
kamil
8a7b75cec0 Import new C and C++ ATF tests for ASan
Add new tests:
 - tests/usr.bin/cc/t_asan_poison.sh
 - tests/usr.bin/c++/t_asan_poison.sh

These tests verify the following build options:
 - regular
 - profile
 - pic
 - pie
 - compat32
 - (static unsupported)

These tests verify whether ASan code can include compiler and sanitizer
specific header: <sanitizer/asan_interface.h>. The testing code checks
the ASAN_POISON_MEMORY_REGION() functionality, poisoning valid memory and
asserting that it triggers expected failure.

Patch submitted by <Siddharth Muralee>
2018-04-11 03:25:25 +00:00
rin
3bce0be59a Add progress(1) into /rescue.
No objection when proposed on tech-userlevel@.
2018-04-11 00:26:38 +00:00
maxv
be6b555629 Remove m_getclr. It is unused, confusing (vs m_clget), and is a weak
implementation (eg you can't request a zeroed pkthdr mbuf).
2018-04-10 16:12:29 +00:00
mlelstv
ffae521c1c increase sshramdisk from 24000k to 28000k. 2018-04-08 15:48:39 +00:00
christos
2f405e0803 new openssh 2018-04-06 19:00:08 +00:00
kamil
9f0bdbd997 Add new ATF tests for Address Sanitzier (ASan)
Add new C and C++ tests:
 - t_asan_double_free
 - t_asan_global_buffer_overflow
 - t_asan_heap_overflow
 - t_asan_off_by_one
 - t_asan_uaf

Each tests checks:
 - regular build
 - 32-bit
 - PIC
 - PIE
 - profile

These tests require paxctl(8) to disable ASLR in order to work in a
predictable way. This is especially true for all !regular builds with
additional compiler flags.

There are no static variations of these tests as this mode is not supported
in upstream ASan.

Enable these tests on amd64 and i386.

Patch submitted by <Siddharth Muralee>
Additional polishing by myself.
2018-04-04 23:51:35 +00:00
kamil
d03dc37b86 Sort files in usr/tests/usr.bin/c++/
No functional change intended.
2018-04-04 16:42:48 +00:00
kre
deb0051437 Document opendisk1() - it has been around long enough.
(pity about the name...)

XXX pullup-8
2018-04-04 04:43:46 +00:00
christos
9a42df71a6 the zombie test is not a rump test. 2018-04-03 18:03:16 +00:00
ryo
fe33aa2786 Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-04-01 04:35:01 +00:00
joerg
6b47d89f52 Bump image size again for new bloat. 2018-03-29 13:25:11 +00:00
joerg
2d65afd272 Move the complex logic for dynamically writing branches from ld.elf_so
into a header for reuse in crt0.o for static ifunc support. Change the
existing logic for sparc64 to use the Bicc variant of ba,a as it allows
+-8MB displacement compared to the BPcc variant's +-1MB. Teach the sparc
variant the same trick for using ba,a and not sethi+jmp when possible.
2018-03-29 13:23:39 +00:00
snj
0dd5024cb4 remove lingering x11 (xfree86) entries. 2018-03-29 04:43:55 +00:00
snj
84c9079f95 remove rstart, which hasn't been used since the xfree86 days. 2018-03-29 04:19:54 +00:00
joerg
d3991df102 Bump image to 1550MB to unbreak the LLVM build. 2018-03-28 22:38:47 +00:00
kamil
77dc83fa09 Add new C++ ATF tests
Add new variations for existing C++ tests:
 - Static
 - Profile+32-bit
 - PIC+32-bit
 - PIC+Profile
 - PIC+Profile+32-bit

All tests pass for NetBSD/amd64:
 - t_cxxruntime
 - t_hello
 - t_static_destructor

+--------------------------------------------------------------+
| Options            | cxxruntime | hello  | static_destructor |
+--------------------------------------------------------------+
| None               | Passed     | Passed | Passed            |
| 32-bit             | Passed     | Passed | Passed            |
| PIC                | Passed     | Passed | Passed            |
| PIE                | Passed     | Passed | Passed            |
| Profile            | Passed     | Passed | Passed            |
| Static             | Passed     | Passed | Passed            |
| Profile+32-bit     | Passed     | Passed | Passed            |
| PIC+32-bit         | Passed     | Passed | Passed            |
| PIC+Profile        | Passed     | Passed | Passed            |
| PIC+Profile+32-bit | Passed     | Passed | Passed            |
+--------------------------------------------------------------+

Add new C++11 std::call_once tests:
 - t_call_once
 - t_call_once2

Add new C++11 test with pthread_once(3) and C++ lambda:
 - t_pthread_once

All tests with the profile option for std::call_once and
pthread_once(3) are marked as expected failure (NetBSD/amd64).

Results for *_once*:
+------------------------------------------------------------+
| Options            | call_once | call_once2 | pthread_once |
+------------------------------------------------------------+
| None               | Passed    | Passed     | Passed       |
| 32-bit             | Passed    |  Passed    | Passed       |
| PIC                | Passed    | Passed     | Passed       |
| PIE                | Passed    | Passed     | Passed       |
| Profile            |  Failed   |  Failed    |  Failed      |
| Static             | Passed    | Passed     | Passed       |
| Profile+32-bit     |  Failed   |  Failed    |  Failed      |
| PIC+32-bit         | Passed    | Passed     | Passed       |
| PIC+Profile        |  Failed   |  Failed    |  Failed      |
| PIC+Profile+32-bit |  Failed   |  Failed    |  Failed      |
+------------------------------------------------------------+

Long term there is an option to refacotr the framework for C and C++ tests,
in order to reduce code duplication.

Patches sent by Yang Zheng <tomsun.0.7@gmail.com>
2018-03-24 00:26:51 +00:00
ryo
2c083542f7 separate cputypes.h for CPU_ID_* from armreg.h,
and add some implementor IDs, CortexA55,73,75 IDs.

(preliminary changes for merging aarch64)
2018-03-20 10:14:29 +00:00
rin
1a43a2d6aa Restore shlib version accidentally bumped in the previous commit.
Fix debug build for i386.
2018-03-14 13:23:31 +00:00
mrg
5b6e3f750b obsolete fontcacheproto.
prepare for xorgproto - split the non replaced list out.
2018-03-14 09:09:46 +00:00
kamil
ce34db38fd Add new ATF tests: kernel/t_zombie
New tests attempting to kill, stop, drop or revive a zombie:
 - signal1 (SIGKILL)
 - signal2 (SIGSTOP)
 - signal3 (SIGABRT)
 - signal4 (SIGHUP)
 - signal5 (SIGCONT)

New test race1 verifying whether there are any kernel races when processing
signals to zombies, executing in a loop for 5 seconds.

These tests were inspired by a kernel unexpected behavior when a lookup
of a dying process could result in two detected entities once as an alive
process and once as a zombie.

race1 is similar to t_ptrace_wait* race1, however without ptrace(2) involved.

Sponsored by <The NetBSD Foundation>
2018-03-14 02:13:47 +00:00
mrg
0955925eb7 clean up CRUNCHBIN.map 2018-03-13 02:22:43 +00:00
mrg
cbb4749bb3 update for new amdgpu and radeon driver versions. 2018-03-12 18:48:49 +00:00
christos
42004fe06d sort, add missing lint file 2018-03-11 23:49:39 +00:00
tih
62971bca43 Add myself. 2018-03-11 11:48:39 +00:00
mrg
cbcc8121fa mark fontcache files as obsolete. 2018-03-11 11:34:33 +00:00
mrg
8d3614ad11 build and install libXfont2. 2018-03-11 09:43:38 +00:00
mrg
6e5b391377 stop building libXfontcache as it is obsolete for a decade. 2018-03-11 07:18:49 +00:00
joerg
a64ef2fb9e Add ifunc support for statically linked applications on x86, ppc, sparc
and ARM.
2018-03-09 20:20:47 +00:00
christos
11ab244b7f use the magic - 2018-03-09 02:36:28 +00:00
christos
39cdfefb57 add missing debuglib 2018-03-08 20:39:40 +00:00
eadler
9cf2320656 distrib: add myself
ok pgoyette@
2018-03-05 00:06:24 +00:00
tsutsui
c12d6f2d6d Provide wdboot as a copy of sdboot for Milan.
It looks Milan's bootloader ROM emulates IDE disks as SCSI disks
so sdboot works for them, but atari's installboot checks a specified
device name and requires wdboot for wd(4) devices.
2018-03-04 03:14:51 +00:00
uwe
4312526650 Introduce sh3/sysarch.h and add SH3_SYNC_ICACHE 2018-03-02 23:11:42 +00:00
snj
20d4794225 no more /usr/X11R6 2018-03-01 07:18:39 +00:00
snj
e1cd7a269b prune 5.x upgrade section 2018-02-28 20:13:09 +00:00
snj
fdc61e1224 vax folks probably aren't the _most_ interested in current developments,
but i think most of them probably know, 16 years later, that we switched
from a.out to ELF.
2018-02-28 20:09:29 +00:00
pgoyette
b7994efa6a Update sets lists for new modular ichsmb(4) 2018-02-26 07:30:17 +00:00
kamil
bc6d305e96 Register the x86/imcsmb man/cat/html page 2018-02-25 12:53:22 +00:00
kamil
fc4bdd88b3 Correct OpenSSL 1.1 entries in plist
Fix references to:
./usr/share/man/cat3/BIO_get_data.0
./usr/share/man/cat3/SSL_CONF_cmd.0

This is obserbable with the MKCATPAGES=yes build option.
2018-02-25 12:28:18 +00:00
pgoyette
2d5aed5404 Update for newly added imcsmb driver modules. 2018-02-25 08:21:57 +00:00
martin
3cbaed46a2 PR lib/53044: remove tests not provided by OpenSSL 1.1.x 2018-02-22 14:24:03 +00:00
mrg
67c67975c6 bump image size for gcc 6 bloaty mc bloat face. 2018-02-22 07:21:10 +00:00
kamil
f4a8ff8348 Try to correct generation of the sun2 distribution
Mark the headers for GCC sanitizers as gcccmds.
2018-02-17 21:46:41 +00:00
mrg
35b187cd10 add missing gcc-6/xtestintrin.h 2018-02-17 21:32:22 +00:00
wiz
bdd9c5c945 t_timeleft.debug is still installed, remove 'obsolete' marker. 2018-02-17 08:07:06 +00:00
uwe
097b3add5a Actually install dhcpd6 rc script. Organize CONFIGFILES
alphabetically again while where.

PR 53018
2018-02-17 03:02:04 +00:00
knakahara
42c1bbb910 Currently, it is not necessary to install rss_config.h. Pointed out by msaitoh@n.o. 2018-02-16 10:19:03 +00:00
mrg
08873910d3 minimal basic support for ia64 and gcc6. i am not sure about the
bp part of the GetPcSpBp() port, cherry please look :-)
2018-02-16 07:59:05 +00:00
knakahara
5392e2869c Fix build failure, sorry. 2018-02-16 07:05:21 +00:00
mrg
a54e8b26f9 obsolete some GCC 4.8 files. 2018-02-13 10:02:12 +00:00