Up to [cvs.NetBSD.org] / src / common / lib / libc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 27 09:14:24 2021 UTC (8 months, 4 weeks ago) by skrll
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)
Provide all the LSE operation fuctions. The use of LSE instructions is currently disabled.
Revision 1.20 / (download) - annotate - [select for diffs], Thu Apr 30 03:28:18 2020 UTC (20 months, 3 weeks ago) by riastradh
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)
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.
Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 4 15:07:55 2019 UTC (2 years, 7 months ago) by hannken
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base, ad-namecache
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
Move the basic part of XDR to common/include/rpc and common/lib/libc/rpc. No functional change intended.
Revision 1.18 / (download) - annotate - [select for diffs], Fri Aug 3 03:35:17 2018 UTC (3 years, 5 months ago) by kamil
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)
Register a new directory in common/lib/libc/misc Registe misc/ with ubsan.c.
Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 30 05:47:24 2017 UTC (4 years, 1 month ago) by riastradh
CVS Tags: tls-maxphys-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)
Import SHA-3 code into libc and libkern. No new public symbols in libc, but publishing the symbols is a simple matter if/when we decide to do so. Proposed on tech-kern and tech-userlevel with no objections: https://mail-index.NetBSD.org/tech-kern/2017/11/11/msg022581.html https://mail-index.NetBSD.org/tech-userlevel/2017/11/11/msg010968.html
Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 10 23:25:49 2014 UTC (7 years, 5 months ago) by matt
CVS Tags: tls-maxphys-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.15: +4 -1 lines
Diff to previous 1.15 (colored)
MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU
Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 29 23:37:18 2014 UTC (7 years, 11 months ago) by joerg
CVS Tags: yamt-pagecache-base9, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Changes since 1.14: +1 -4 lines
Diff to previous 1.14 (colored)
Include compiler-rt in libc, libm and libkern.
Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 16 11:43:49 2014 UTC (8 years ago) by joerg
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)
Include bsd.own.mk in case it hasn't been yet.
Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 15 20:58:09 2014 UTC (8 years ago) by joerg
Changes since 1.12: +5 -2 lines
Diff to previous 1.12 (colored)
Use the quad support from compiler-rt for MKLIBGCC=no.
Revision 1.12 / (download) - annotate - [select for diffs], Sun Jul 8 01:21:12 2012 UTC (9 years, 6 months ago) by rmind
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)
Add MurmurHash2 -- a non-cryptographic hash function by Austin Appleby. The code is taken from the upstream and is in the public domain. OK christos@
Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 16 16:39:14 2011 UTC (10 years, 7 months ago) by joerg
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.10: +6 -1 lines
Diff to previous 1.10 (colored)
Add support for size optimised versions of the assembler functions in the small subdirectory. Provide more compact versions of the functions used by bootxx in x86.
Revision 1.10 / (download) - annotate - [select for diffs], Sun Oct 26 07:22:50 2008 UTC (13 years, 3 months ago) by mrg
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, rmind-uvmplock-base, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored)
look for COMMON_MACHINE_ARCH before MACHINE_ARCH or MACHINE_CPU.
Revision 1.9 / (download) - annotate - [select for diffs], Sun Jun 15 20:35:11 2008 UTC (13 years, 7 months ago) by christos
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, matt-mips64-base2
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)
Hook into sys
Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 22 12:34:58 2008 UTC (14 years ago) by nakayama
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)
Search files in arch/sparc64/atomic before arch/sparc/atomic in case of sparc64 32-bit kernel. Make sparc64 32-bit kernel works again.
Revision 1.7 / (download) - annotate - [select for diffs], Wed Nov 28 15:25:44 2007 UTC (14 years, 2 months ago) by ad
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.6: +6 -2 lines
Diff to previous 1.6 (colored)
Hook the atomic ops in. Right now they are only built into libkern, and only if available.
Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 27 21:23:15 2006 UTC (15 years, 3 months ago) by christos
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking-base, vmlocking, thorpej-atomic-base, reinoud-bufcleanup, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup
Branch point for: thorpej-atomic, newlock2, matt-armv6
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)
this is shared with the kernel now.
Revision 1.5 / (download) - annotate - [select for diffs], Tue Dec 27 08:43:05 2005 UTC (16 years, 1 month ago) by yamt
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.4: +6 -7 lines
Diff to previous 1.4 (colored)
lack of COMMON_ARCHDIR is not fatal.
Revision 1.4 / (download) - annotate - [select for diffs], Tue Dec 27 07:31:45 2005 UTC (16 years, 1 month ago) by yamt
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)
print a meaningful error rather than "Need an operator".
Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 21 21:47:30 2005 UTC (16 years, 1 month ago) by christos
Changes since 1.2: +7 -4 lines
Diff to previous 1.2 (colored)
x86_64 uses i386 assembly files in standalone mode.
Revision 1.2 / (download) - annotate - [select for diffs], Tue Dec 20 22:51:18 2005 UTC (16 years, 1 month ago) by christos
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)
Include string in the cpp flags.
Revision 1.1 / (download) - annotate - [select for diffs], Tue Dec 20 19:28:49 2005 UTC (16 years, 1 month ago) by christos
Merge libkern + libc common files. As requested by core.
This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.