| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
PR: standards/122051
|
|
|
|
| |
sessions to be pinned to cpus by login class.
|
|
|
|
|
|
|
|
|
|
|
|
| |
"If you don't get a review within a day or two, I would firmly recommend
backing out the changes"
back out all my changes, i.e. not comes from merging from OpenBSD as
unreviewed by secteam@ yet.
(OpenBSD changes stays in assumption they are reviewd by OpenBSD)
Yes, it means some old bugs returned, like not setted rs_stired = 1 in
arc4random_stir(3) causing double stirring.
|
|
|
|
| |
Submitted by: Kostik Belousov
|
|
|
|
| |
Obtained from: gonzo@
|
|
|
|
|
|
|
|
|
|
| |
1) Unindent and sort variables.
2) Indent struct members.
3) Remove _packed, use guaranteed >128 bytes size and only first 128
bytes from the structure.
4) Reword comment.
Obtained from: bde
|
|
|
|
|
| |
XXX Deprecated
alias in /sys/dev/random/randomdev.c
|
| |
|
|
|
|
| |
return just (arc4random() % upper_bound)
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
|
|
|
|
| |
suggested in the Ilya Mironov's article). 768 taken from another
research where it treats as default for RC4-drop(768):
http://www.users.zetnet.co.uk/hopwood/crypto/scan/cs.html#RC4-drop
Minor style tweak.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
2) Use gettimeofday() and getpid() only if reading from /dev/urandom
fails or impossible.
3) Discard N bytes on very first initialization only (i.e. don't
discard on re-stir).
4) Reduce N from 1024 to 512 as really suggested in the
"(Not So) Random Shuffles of RC4" paper:
http://research.microsoft.com/users/mironov/papers/rc4full.pdf
|
|
|
|
|
|
|
|
|
| |
2) Eliminate "struct arc4_stream *as" arg since only single arg is
possible.
3) Set rs.j = rs.i after arc4random key schedule to be more like arc4
stream cipher.
Obtained from: OpenBSD
|
| |
|
| |
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
|
|
|
| |
2) Increase arc4_count to the limit OpenBSD use.
Submitted by: Thorsten Glaser <tg@mirbsd.de> (1)
Obtained from: OpenBSD (2)
|
|
|
|
|
|
|
| |
the chunk map instead of red-black trees where possible. Remove the
red-black trees and node objects that are obsoleted by this change. The
net result is a ~1-2% memory savings, and a substantial allocation speed
improvement.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. architecture-specific files
2. long double format-specific files
3. bsdsrc
4. src
5. man
The original order was virtually the opposite of this.
This should not cause any functional changes at this time. The
difference is only significant when one wants to override, say, a
generic foo.c with a more specialized foo.c (as opposed to foo.S).
|
|
|
|
|
|
|
| |
handlers added with signal(3).
Submitted by: gnn (slightly modified by me)
MFC after: 1 week
|
|
|
|
| |
PR: docs/125630
|
|
|
|
|
|
|
|
|
|
| |
This change removes the requirement that an ACL contain no ACL_USER
entries with a uid the same as those of a file, or ACL_GROUP entries
with a gid the same as those of a file. This requirement is not in the
specification, and not enforced by the kernel's ACL implementation.
Reported by: Iustin Pop <iusty at k1024 dot org>
MFC after: 1 week
|
|
|
|
|
|
| |
PR: 125546
Submitted by: Mateusz Guzik <mjguzik at gmail dot com>
MFC after: 3 days
|
|
|
|
| |
nonexistant __cpuset* there.
|
|
|
|
|
|
| |
is never used.
Found by: LLVM/Clang Static Analyzer
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix a number of potential memory leaks in libgeom related to doing realloc
without freeing old pointer if things go wrong.
- Fix a number of places in libgeom where malloc and calloc return values
were not checked.
- Check malloc return value and provide sufficient warning messages when XML
parsing fails.
PR: kern/83464
Submitted by: Dan Lukes <dan - at - obluda.cz>
Approved by: kib (mentor)
|
|
|
|
|
| |
Submitted by: Jilles Tjoelker <jilles stack nl>
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
statement. Add the one from the current NetBSD version.
- Also bump a date to reflect my content changes I have done in previous
revision
Approved by: imp
MFC after: 3 days
|
|
|
|
|
|
| |
PR: docs/75995
Submitted by: Tarc <tarc@po.cs.msu.su>
MFC after: 3 days
|
|
|
|
|
|
| |
- remove contractions
MFC after: 3 days
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
schedule a chmod() fixup for directories. In particular, this fixes
sgid handling on systems where the sgid bit is inherited from the
parent directory (which means that the actual mode of the dir
does not match the mode used in the mkdir() system call.
It may be possible to tighten this condition a bit. In
working through this, I also found a few other places where
it looks like we can avoid a redundant syscall or two. I've
commented those here but not yet tried to address them.
|
| |
|
| |
|
|
|
|
|
| |
PR: docs/120248
Submitted by: Heiko Wundram <wundram (a) beenic.net>
|
|
|
|
|
|
| |
this by hand in userland utilities.
MFC after: 1 month
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
bit by removing some calls to the inline function addtype().
|
|
|
|
|
|
| |
normal and wide character versions of it.
No functional change.
|
|
|
|
|
|
| |
by moving the positional argument handling code to a new file,
printf-pos.c, and moving common definitions to printflocal.h.
No functional change intended.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In particular, encapsulate the state of the type table in a struct,
and add inline functions to initialize, free, and manipulate that
state. This replaces some ugly macros that made proper error handling
impossible.
While here, remove an unneeded test for NULL and a variable that is
initialized (many times!) but never used. The compiler didn't catch
these because of rampant use of the same variable to mean different
things in different places.
This commit should not cause any changes in functionality.
|
|
|
|
|
|
| |
SIGPIPE for individual sockets (PR: kern/118626).
While here, s/insure/ensure/.
|
|
|
|
| |
whether the CPU supports SSE or not here is rather odious.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Save and restore the control part of the MXCSR in addition to the
i387 control word to ensure that the two are consistent.
Note that standards don't require longjmp to restore either control
word, and none of Linux, MacOS X 10.3 and earlier, NetBSD, OpenBSD,
or Solaris do it. However, it is historical FreeBSD behavior, and
bde points out that it is needed to make longjmping out of a signal
handler work properly, given the way FreeBSD clobbers the FPU state
on signal handler entry.
2. Don't clobber the FPU exception flags in longjmp. C99 requires them
to remain unchanged.
|