summaryrefslogtreecommitdiff
path: root/distrib/sets/lists/debug/mi
AgeCommit message (Collapse)Author
2023-07-05tests/libexec/ld.elf_so: Fix helper library makefiles.riastradh
1. Consolidate logic into a single helper.mk to reduce duplication. 2. Set NO* variables, not MK* variables which are reserved for user. 3. Avoid eager X!= in favour of lazy ${X:sh}. 4. Mark _g.a set list entries obsolete. Never should've been built! PR misc/57462
2023-06-21Looks like this debug library disappeared with the new heimdal. Markpgoyette
it obsolete to fix the MKDEBUGLIB build.
2023-06-16mark some openssl 1.1 files as obsolete with openssl 3wiz
2023-06-06Fix markup of libh_ MKDEBUGLIB=yes only filesmartin
2023-06-06Fix MKDEBUGLIB build by adding these installed files to the debugpgoyette
set list. XXX One could argue that these files are not of any use, so why install them? I don't have a good argument either way, and this is (for now) a simple work-around for PR bin/57455 Please feel free to commit a different fix to avoid installing these files at all.
2023-06-02Add recent ld.elf_so test helpers debug infomartin
2023-05-31ld.elf_so: Fix set lists for MKDEBUG=yes builds with t_tls_extern.riastradh
XXX pullup-10
2023-05-24obsolete mkstr(1) and xstr(1)lukem
These were only used on PDP-11 for two programs we don't ship, and have been obsolete since the VAX days. xstr never worked in the build.sh cross-build environment (22 years), or parallel make environment (nearly 28 years), didn't work in the orignal 386bsd import, and has never been needed in NetBSD as we don't have the older BSD programs (pascal, pre-nvi ex) that needed mkstr/xstr on PDP-11. PR toolchain/35964
2023-05-10update the sets for OpenSSL-3.xchristos
2023-04-21Add new test t_open_pr_57260gutteridge
New test case that reflects the fix in PR kern/57260. The majority of work for this case itself was by riastradh@, who'd supplied the basis for it in the ticket, and provided further guidance.
2023-01-30add t_strchrnulchristos
2022-12-26make gnu ctf needed for all new binutils.christos
2022-11-30tests: build and install t_ip_reass.cozaki-r
2022-11-22Fix h_lualibm debug set lists.jakllsch
2022-11-21lua libm API from Phil Rulonchristos
2022-11-17tests: build and install added test filesozaki-r
2022-11-04tests: add tests for invalid extra operations on a shutdown socketozaki-r
The tests cover some error paths that normally happen.
2022-08-28fix setschristos
2022-08-27Add sincos{,f,l} from FreeBSDchristos
2022-06-06build system: Revert all the recent additions of MK[...] knobs thatnia
allow conditionally disabling the building of certain user space programs in the 'base' set. There is not enough consensus that this is the right way and a few people had strong objections, see source-changes-d@.
2022-05-31libc: Reintroduce getentropy.riastradh
This was introduced two years ago when the getrandom/getentropy API question was still open, and removed because the discussion was ongoing. Now getentropy is more widely adopted and soon to be in POSIX. So reintroduce the symbol into libc since we'll be keeping it anyway. Discussion of details of the semantics, as interpreted by NetBSD, is ongoing, but the symbol needs to get in before the netbsd-10 branch. The draft POSIX text is (https://www.opengroup.org/austin/docs/austin_1110.pdf): SYNOPSIS #include <unistd.h> int getentropy(void *buffer, size_t length); DESCRIPTION The getentropy() function shall write length bytes of data starting at the location pointed to by buffer. The output shall be unpredictable high quality random data, generated by a cryptographically secure pseudo-random number generator. The maximum permitted value for the length argument is given by the {GETENTROPY_MAX} symbolic constant defined in <limits.h>. RETURN VALUES Upon successful completion, getentropy() shall return 0; otherwise, -1 shall be retunred and errno set to indicate the error. ERRORS The getentropy() function shall fail if: [EINVAL] The value of length is greater than {GETENTROPY_MAX}. The getentropy() function may fail if: [ENOSYS] The system does not provide the necessary source of entropy. RATIONALE The getentropy() function is not a cancellation point. Minor changes from the previous introduction of getentropy into libc: - Return EINVAL, not EIO, on buflen > 256. - Define GETENTROPY_MAX in limits.h. The declaration of getentropy in unistd.h and definition of GETENTROPY_MAX in limits.h are currently conditional on _NETBSD_SOURCE. When the next revision of POSIX is finalized, we can expose them also under _POSIX_C_SOURCE > 20yymmL as usual -- and this can be done as a pullup without breaking existing compiled programs.
2022-05-29mk: Add MKTIMED and MKMOUSED flags for compiling NetBSD without timednia
and moused
2022-05-29mk: Add a MKPPP flag to exclude pppd(8) and related utilities fromnia
the build
2022-05-28mk: Add MKFINGER, MKTALK flags for not buildingnia
talk, talkd, finger, fingerd.
2022-05-28mk: Add MKNTP, MKTCPDUMP knobs.nia
2022-05-27mk: Add a MKLFS flag for excluding the log-structured filesystem userspacenia
tools from the build.
2022-05-25mk: Rename the MKMBONE option to MKMROUTING for greater accuracy andnia
to match the related kernel config option.
2022-05-25mk: Allow setting MKDHCPD=no to build base without the ISC DHCP server,nia
useful for embedded images that don't need to act as one.
2022-05-25debug pieces should also be installed conditionally based on MKMBONEnia
2022-04-29Add a new test for PR kern/56713 and set to expected_failure for now.pgoyette
2022-04-08membar_ops(3): Add some automatic tests.riastradh
These tests run two threads for five seconds each to try to trigger races in the event of broken memory barriers. They run only on machines with at least two CPUs; on uniprocessor systems there's no point -- the membars can correctly just be (instruction barrier) no-ops.
2022-04-06Add fsck_udf to the debug setsreinoud
2022-03-28Add t_linkchristos
2022-02-24enable blkdiscard(8) build.mrg
2022-01-23PR/56657: Juraj Hercek: Add plainrsa-gen utility mentioned in racoon.conf(5)christos
and fix it for OpenSSL 1.1
2021-12-31change CONFIG to @CONFIG@ to indicate substitution is going to happen.christos
2021-12-29Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.christos
2021-12-07A driver and user land utility for the Sparkfun Serial Controlled Motorbrad
Driver module as illustrated here: https://www.sparkfun.com/products/13911 A SCMD module is a ARM SOC simular to a Arduino in front of a motor driver chip. The single SCMD module can control two motors and up to 16 additional modules can be chained together using an internal I2C bus. One can interface with the SCMD using tty uart commands, SPI or I2C. The driver in this commit adds a kernel driver for the I2C and SPI interfaces. The command line utility provides a set of convenience commands that support most of the functions of the SCMD and is able to use the tty uart mode, SPI user land or the included kernel driver in a uniform manor. The use of the SCMD module is mostly for small robots and the like, but it can control anything that is controllable by voltage.
2021-11-18Add a test case for backtrace(3) across a signal handler.thorpej
2021-10-23Fix a regression introduced in kern_event.c,v 1.129 that would causethorpej
"udata" to get clobbered on ONESHOT events, and add a unit test for it. Reported by martin@ (manifested in his case as a KASSERT() firing when running unit tests in COMPAT_NETBSD32).
2021-10-23Add support for the EVFILT_EMPTY filter, which is activated when thethorpej
write buffer associated with the file descriptor is empty. This is currently implemented only for sockets, and is intended primarily to provide visibility to applications that all previously written data has been acknowledged by the TCP layer on the receiver. Compatible with the same filter in FreeBSD.
2021-10-13Add support for the NOTE_SECONDS, NOTE_MSECONDS, NOTE_USECONDS,thorpej
NOTE_NSECONDS, and NOTE_ABSTIME filter flags to EVFILT_TIMER, API-compatible with the same in FreeBSD.
2021-10-10Add a test case for the race condition in PR kern/50094, modeled afterthorpej
the Go run-time scenario described in the PR.
2021-10-10Add a test case to heavily exercise EVFILT_PROC + NOTE_TRACK.thorpej
2021-09-30Added tests for the linear hook APIsyamaguchi
2021-09-19Add native implementations of eventfd(2) and timerfd(2), compatible withthorpej
the Linux interfaces of the same name.
2021-08-29Inetd enhancements by James Browning, Gabe Coffland, Alex Gavin, Solomon Ritzowchristos
Described in: https://www.mail-archive.com/tech-userlevel@netbsd.org/msg03114.html And developed in: https://github.com/ritzow/src/pull/1 From their notes: All new functionality should be explained by the updated manpage. The manpage has been refactored a bit: A new section "Directives" has been added and the information about default hostnames and IPsec directives has been moved there, and the new file include directive information is also there. getconfigent has the most major changes. A newline is no longer read immediately, but is called only by a "goto more" (inside an if(false) block). This allows multiple definitions or directives to exist on a single line for anything that doesn't terminate using a newline. This means a key-values service definition can be followed by another key-values service definition, a positional definition, or an ipsec, hostname, or .include directive on the same line. memset is no longer used explicitly to clear the servtab structure, a function init_servtab() is used instead, which uses a C struct initializer. The servtab se_group field is its own allocation now, and not just a pointer into the user:group string. Refactored some stuff out of getconfigent to separate functions for use by parse_v2.c. These functions in inetd.c are named with the form parse_*() parse_v2.c only has code for parsing a key-values service definition into a provided servtab. It should not have anything that affects global state other than line and line_number. Some function prototypes, structures, and #defines have been moved from inetd.c to inetd.h. The function config_root replaces config as the function called on a config file load/reload. The code removed from the end of config(void) is now called in config_root, so it is not run on each recursive config call. setconfig(void) was removed and its code added into config_root because that is the only place it is called, and redundant checks for non-null globals were removed because they are always freed by endconfig. The fseek code was also removed because the config files are always closed by endconfig. Rate limiting code was updated to add a per-service per-IP rate limiting form. Some of that code was refactored out of other places into functions with names in the form rl_*() We have not added any of the license or version information to the new files parse_v2.c, parse_v2.h, and inetd.h and we have not updated the license or version info for inetd.c. Security related: The behavior when reading invalid IPsec strings has changed. Inetd no longer exits, it quits reading the current config file instead. Could this impact program security? We have not checked for memory leaks. Solomon tried to use dmalloc without success. getconfigent seemed to have a memory leak at each "goto more". It seems like inetd has never free'd allocated strings when throwing away erroneous service definitions during parsing (i.e. when "goto more" is called when parsing fields). OpenBSD's version calls freeconfig on "goto more" (https://github.com/openbsd/src/blob/c5eae130d6c937080c3d30d124e8c8b86db7d625/usr.sbin/inetd/inetd.c#L1049) but NetBSD only calls it when service definitions are no longer needed. This has been fixed. freeconfig is called immediately before any "goto more". There shouldn't be any time when a servtab is in an invalid state where freeconfig would break.
2021-08-12h_findcc.debug is not obsoletemartin
2021-08-12oops, fix h_findcc entrymartin
2021-08-12Add new mkdep test helper h_findccmartin