Commit Graph

7171 Commits

Author SHA1 Message Date
Eirikr Hinngart
4b664c2e93
Merge pull request #9 from Oichkatzelesfrettschen/zxlyp6-eirikr/replace-__netbsd__-with-minix-conditionals
Replace __NetBSD__ checks with MINIX-specific conditionals
2025-05-29 20:33:56 -07:00
Eirikr Hinngart
d8c46b9ffb
Merge pull request #8 from Oichkatzelesfrettschen/40pmin-eirikr/replace-__netbsd__-with-minix-conditionals
Replace __NetBSD__ checks with MINIX-specific conditionals
2025-05-29 20:27:51 -07:00
Eirikr Hinngart
4fbc3d2367 Update MINIX conditionals 2025-05-29 20:27:42 -07:00
Eirikr Hinngart
3f8d979753 Update MINIX conditionals 2025-05-29 20:27:36 -07:00
Eirikr Hinngart
6ba10c43ac
Merge pull request #7 from Oichkatzelesfrettschen/eirikr/review-and-update-build.sh-for-posix-compliance
Remove NetBSD-specific build defaults
2025-05-29 19:07:09 -07:00
Eirikr Hinngart
2c739c8009 build.sh: drop NetBSD version logic 2025-05-29 19:06:58 -07:00
Eirikr Hinngart
6e5b206f2d
Merge pull request #6 from Oichkatzelesfrettschen/eirikr/create-languages.md-and-list-languages
Add language overview
2025-05-29 19:06:33 -07:00
Eirikr Hinngart
2020ccfd09 docs: add language overview 2025-05-29 19:06:20 -07:00
Eirikr Hinngart
8e8eebeca7
Merge pull request #5 from Oichkatzelesfrettschen/eirikr/scan-for-netbsd-references-and-reword-text
Clean NetBSD wording
2025-05-29 19:06:06 -07:00
Eirikr Hinngart
50facea8e7 docs: remove NetBSD wording 2025-05-29 19:05:54 -07:00
Eirikr Hinngart
1d8fb7f4b5
Merge pull request #4 from Oichkatzelesfrettschen/eirikr/update-error-strings-for-minix-context
Fix wording for MINIX CPUSTATES messages
2025-05-29 18:48:43 -07:00
Eirikr Hinngart
a4d9be31c5 Update MINIX-specific messages and comments 2025-05-29 18:48:21 -07:00
Eirikr Hinngart
fccc1b043b
Merge pull request #3 from Oichkatzelesfrettschen/eirikr/remove-comment-from-config.h-and-verify-macros
Remove outdated NetBSD note in config
2025-05-29 18:45:31 -07:00
Eirikr Hinngart
44602b33b7 config.h: drop NetBSD comment 2025-05-29 18:45:17 -07:00
Eirikr Hinngart
412e9894b1
Merge pull request #2 from Oichkatzelesfrettschen/eirikr/audit-and-update-build-system-for-minix-support 2025-05-29 18:18:36 -07:00
Eirikr Hinngart
7174a0cda0 Replace NetBSD source dir references with MINIXSRCDIR 2025-05-29 18:18:25 -07:00
Eirikr Hinngart
8e9767528a
Merge pull request #1 from Oichkatzelesfrettschen/eirikr/update-copyright-headers-and-format-code
Remove NetBSD headers
2025-05-29 17:09:38 -07:00
Eirikr Hinngart
13d6f1e4aa Replace NetBSD headers with MINIX license 2025-05-29 17:09:26 -07:00
Sevan Janiyan
4db99f4012 Remove building with NOCRYPTO option
Infrastructure change to come in a separate commit.
https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
Patch for CVE-2018-049.
Prevent shell execution with r command.
Check bounds before dereferencing in encryption routines.
Document -S to disable ! commands.

Sync with NetBSD-8

closes #268

Change-Id: I1c2849e0097b0cc9f89beef5ee24ccd9d73b4ee2
2018-11-14 08:26:58 +01:00
Sevan Janiyan
0578da2163 Drop main() prototype. Syncs with NetBSD-8
closes #267

Change-Id: I80a2e3329463e3473fa45fbc20681861a9ba658f
2018-11-14 08:25:25 +01:00
Sevan Janiyan
c9e73d66fc etc/services - sync with NetBSD-8
close #278

Change-Id: I36c2a58bbcdc397e15813740058d05c517a77a60
2018-11-13 08:45:27 +01:00
Sevan Janiyan
4322f20d76 etc/protocols - sync with NetBSD-8
Change-Id: I443aafe164a9671fcd440c695a481f88b80b3bcb
2018-11-13 08:45:09 +01:00
Sevan Janiyan
93184c8457 Sync some manuals from bin & sbin with NetBSD-8
Grammar fixes.
Add/correct HISTORY section.

closes #276

Change-Id: I0640104acea9be90f4cbbda34abfb47c8a0b753b
2018-11-13 08:40:01 +01:00
Sevan Janiyan
8e97a2d023 sbin/newfs_v7fs: sync with NetBSD-8
need <sys/stat.h>
Document history.

closes #275

Change-Id: I988a269b1fffc58238008b4aa4bd8d2a56e123c4
2018-11-13 08:38:56 +01:00
Sevan Janiyan
25d017aa13 sbin/newfs_msdos: sync with NetBSD-8
Allow 0 timestamp.
Grammar fixes.
Use the create_size if given to compute the real size instead of stat'ing
the file again, which might have been larger to start with.
Document history.

closes #274

Change-Id: Ibf881f22f351c7a17488b24a05c2110be1d65ae0
2018-11-13 08:37:07 +01:00
Sevan Janiyan
609f541dd3 bin/stty: sync with NetBSD-8
need <time.h> for time(3)

closes #273

Change-Id: I23c6747e2490192a2ff7b98ce9f55b2e9d45be00
2018-11-13 08:36:16 +01:00
Sevan Janiyan
df78030728 bin/rmdir: sync with NetBSD-8
NetBSD PR/48182: Fix rmdir -p handling of top-level (root) directory.

closes #272

Change-Id: I5a69ac84ca236ca03feea49dc9c84537147c2d65
2018-11-13 08:35:40 +01:00
Sevan Janiyan
e8ccbb3b67 bin/ls: sync with NetBSD-8
NetBSD PR 50997 David Binderman: fix format strings.

closes #271

Change-Id: I27934ac0328b3f774f2adeada3ca6e0d62637821
2018-11-13 08:34:48 +01:00
Sevan Janiyan
92435d6dd9 Sync bin/df with NetBSD-8
closes #270

Change-Id: Ide8717d095ed8e8ae7c942470f2af8c6a169fcc0
2018-11-13 08:34:09 +01:00
Sevan Janiyan
02efe53e8c Drop main() prototype.
Sync with NetBSD-8

closes #269

Change-Id: I4ce3bcbc1a1dc71745fe77bd581d07aeafc2f01b
2018-11-13 08:32:17 +01:00
Sevan Janiyan
2529152f60 Save the redirect & use HTTPS
Change-Id: I149964614957566d8bf52ba5100d067de6536731
2018-10-31 07:31:54 +01:00
Sevan Janiyan
2a4046681a Update post installation article url
Change-Id: I97516481bf3e19b7f03c7e432ff882fc053ff9e8
2018-10-31 07:31:48 +01:00
Jakub Jermář
3d71ae06b1 Replace misplaced string VMware with VirtualBox
In the case of vbfs the host is VirtualBox so mentions of VMware must be
copy-paste errors.

closes #264

Change-Id: Ieb1316155be8f8fb81e3e5a2b21147594f6cb4d9
2018-10-28 10:16:39 +01:00
Christopher Simons
03704f431e replace logger with NetBSD version
closes #265

Change-Id: I31cb8e0ae57cc2c18a6aab1d2749818e1656c294
2018-10-27 17:05:47 +02:00
Christopher Simons
2ffe8daa0e usage.8: fix typo: slower then -> slower than
Change-Id: Ifc23506f857ef748f50c5e5d3143b034c0086032
2018-10-27 16:56:17 +02:00
Christopher Simons
f94fc08000 part.8: fix typo: other then -> other than
Change-Id: I966376d9d34b30a7bdd87272858d50248ca41221
2018-10-27 16:56:17 +02:00
Christopher Simons
c38c77c1ca dhcp-eval.5: fix typo: greater then -> greater than
Change-Id: I90a91f5392cfe6b07c0fab8ce34c8ceead2ce548
2018-10-27 16:56:17 +02:00
Christopher Simons
d189cd4505 vol.1: fix typo: larger then -> larger than
Change-Id: I962f05774d9cf8ce4fb441ff7e2765a895649805
2018-10-27 16:56:17 +02:00
Christopher Simons
081c95a7f4 import games/worm from NetBSD
closes #262

Change-Id: I63674a1e5457bbb3d30708e12f25c30487d70324
2018-10-27 16:56:17 +02:00
Christopher Simons
68b3d8c1a0 import games/worms from NetBSD
closes #261

Change-Id: I83e978c24a632c851772787695c0af6c5b2d09c6
2018-10-27 16:56:17 +02:00
Christopher Simons
fb9c64b2fa import games/wtf from NetBSD
closes #260

Change-Id: Ia3bbe28d77dff7f21fe7de3d0c03a65f6681049c
2018-10-27 16:56:17 +02:00
Tai Groot
8e2f9ecaf4 Fixed tiny spelling error in proc.c
an returned -> and returned

closes #255

Change-Id: I936e95c6d026f83f66a48120aa9a331b8797b89c
2018-10-26 08:56:14 +02:00
Sevan Janiyan
7377a594e4 Sync with manuals from netbsd-8 branch.
Change-Id: I82fdb7486ae4f0f8f622046538806471bfb17c1d
2018-08-25 12:05:46 +02:00
Sevan Janiyan
a513517459 Sync with cat.c from netbsd-8
When cat is invoked with -se, print a '$' on blank lines.

Change-Id: I1bdcced967261a231eab93e8d28736f9f52f53fd
2018-08-25 12:05:46 +02:00
Lionel Sambuc
145839b147 Fix Compilation on Ubuntu 18.04
* Fix Compilation of GCC on Ubuntu 18.04
   Apply the following patch:
     https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=ec1cc0263f156f70693a62cf17b254a0029f4852

 * Fix GNU make build on new GNU glibc systems

Change-Id: I44fcdc23b037a53d8cf50ec09ba9f210a1e127c8
2018-08-24 21:29:20 +02:00
Lionel Sambuc
03ac74ede9 Fix ARM NDEBUG Builds
Change-Id: I1250744d54b75d6380393afe848a6eb8c5dc894d
2018-03-31 19:34:03 +02:00
Arne Welzel
35b65c5af1 minix/tests/arm: naive tests to cause data aborts
Some assembly code to cause unaligned access as well as
segmentation faults to exercise the data abort path.

Change-Id: Ie419114b76a8db849537a94fda781019cf14d50d
2018-03-25 17:44:11 +02:00
Arne Welzel
0dd719f1bd kernel/arm: send SIGSEGV to processes
On second thought, handle unknown faults caused by processes by sending
SIGSEGV to them instead of bringing the whole system to a grind.

arm/archconst: use values defined in armreg.h

Change-Id: Ieed5bb06910ab0c8eef1e68b0b4eec680867acd3
2018-03-25 15:16:29 +02:00
Arne Welzel
5e9e5b98f6 bsd.own.mk: use -mno-unaligned-access on ARM
Without this option, gcc may emit code accessing unaligned memory. This,
and the fact that SCTRL.A (System Control Register - Alignment Check) is
set to 1 in Minix causes data aborts when such code is encountered.

This was the cause of #104. The `minix-service' executable caused
unaligned memory accesses calling into getpwnam(). These then trigger
data abort exceptions. On ARM, these were previously forwarded to `vm'
as pagefaults. However, `vm' did not properly handle them, but instead
allocated one page for the faulting address (over and over again) and
then resumed the process at the faulting instruction (over and over
again). This behavior masked the whole story as an OOM.

Below the assembly version getpwent.c in which unaligned memory
accesses are even highlighted...

 ...
 341         ldr     lr, [sp, #48]
 342         cmp     lr, #0
 343         bne     .L46
 344         ldr     r0, [r4]        @ unaligned
 345         add     r1, r7, #5
 346         str     r0, [sp, #4]    @ unaligned
 347         ldr     r4, [sp, #4]
 348         mov     r5, r4, asr #31
 349         strd    r4, [r8, #40]
 ...

This should fix #104. It was tested on an actual Beaglebone Black.

An alternative fix would be to disable alignment checking by setting
SCTRL.A to 0 and allowing unaligned memory accesses.

Change-Id: I4d366eb0af1b2936bca369fd28014fb829228ad5
2018-03-25 11:23:21 +02:00
Arne Welzel
7c3424c244 kernel/arm: do not treat all data aborts as pagefaults
For now, distinguish alignment, translation and permission faults.
The first kind of faults cause the kernel to send SIGBUS to the
process causing the fault, the latter two are forwarded to `vm' as
pagefaults. Previously, any data abort was forwarded to `vm' as
a pagefault, resulting in hard to debug issue #104.

Any unhandled fault status results in a disaster. This seems
better than naively hoping `vm' can do something about it.

Change-Id: I526f575bb2681e087e20fd49c5c0846cdd450c31
2018-03-25 11:22:35 +02:00