| From | Subject | Date |
|---|---|---|
| Alexander Hall | fsck and mount handling in bsd.rd
As noted by Peter Miller, the fsck and mount procedures in bsd.rd
differ from /etc/rc. Specifically, he had issues with usb disks that
were not always present at boot. While /etc/rc would not fsck
those (since fs_passno == 0) and ignore any issues with mount -a,
the upgrade process was a bit more picky and bailed out.
This diff aims to resolve such situation by doing the following:
- Do not run fsck for fstab entries with zero or empty fs_passno
- Ask for permission to continue upgrade if one ...
| Dec 22, 2:59 am 2010 |
| Anthony J. Bentley | malloc.3 typo
Hi,
This looks like a typo, almost changes the meaning of the sentence:
Index: lib/libc/stdlib/malloc.3
===================================================================
RCS file: /cvs/src/lib/libc/stdlib/malloc.3,v
retrieving revision 1.68
diff -u lib/libc/stdlib/malloc.3
--- lib/libc/stdlib/malloc.3 26 May 2010 08:22:11 -0000 1.68
+++ lib/libc/stdlib/malloc.3 22 Dec 2010 06:02:47 -0000
@@ -235,7 +235,7 @@
Unused pages on the freelist are read and write protected to
cause a ...
| Dec 21, 11:08 pm 2010 |
| Matt Connor | Re: Allegations regarding OpenBSD IPSEC
> .. steam ciphers is bad ...
Steam has much more entropy than a pseudo-number generator, in which
case our implementation is obsolete.
-Matt
| Dec 21, 6:12 pm 2010 |
| Kurt Knochner | Re: Allegations regarding OpenBSD IPSEC
I was just asking if the implementation of the RC4 based PRNG is done
correctly and if there has been a test of the quality of the PRNG
output. It just looked strange for me to seed the algorithm of the
PRNG with a plain time value, though it's just a few bytes at the
beginning of a larger block of data. So, if you believe the
implementation of the PRNG is correct, there is no need to further
I did not say, that anything you generate is crap.
| Dec 21, 6:08 pm 2010 |
| Kurt Knochner | Re: Allegations regarding OpenBSD IPSEC
so, you are saying, that the use of nanotime() in arc4_stir() is irrelevant?
That would be a result I can accept, as I already said: It could mean nothing.
| Dec 21, 6:01 pm 2010 |
| Kurt Knochner | Re: Allegations regarding OpenBSD IPSEC
Damn, you're right. It seems my grep pattern was "initialized" in the
After adjusting my grep pattern, I found several more locations. A lot
of those need the filesystem. However at least one (for sure much
more) is indeed calling arc4random while there is no filesystem
mounted.
True (that it's false).
So, I guess the discussion about the use of nanotime() is finished, as
there is "common agreement" that it has no influence on the PRNG,
right?
| Dec 21, 9:44 pm 2010 |
| Kurt Knochner | Re: Allegations regarding OpenBSD IPSEC
you're right. As you posted in the other thread, the output of the
PRNG is saved during shutdown and that file is loaded as entropy data
I understood the code, just my description of the process was not
O.K. where do you need ramdom bytes during that state of the kernel?
All locations where arc4random* is called in the kernel are these:
src/sys/dev/ic/if_wi.c: sc->wi_icv = arc4random();
src/sys/dev/ic/if_wi_hostap.c: arc4random();
src/sys/dev/ic/rt2860.c: uint32_t val = ...
| Dec 21, 9:26 pm 2010 |
| Kurt Knochner | Re: Allegations regarding OpenBSD IPSEC
It's up to you to make that decision. You know the code better than
anybody else.
| Dec 21, 6:12 pm 2010 |
| Kurt Knochner | Re: Allegations regarding OpenBSD IPSEC
that's true, if one uses just /dev/arandom (as other consumers will
call arc4random() in the "background" as well). However if one changes
the code of arc4random() and arc4random_buf() to emit all generated
random values, we will get the whole sequence, from the very first
byte, no matter what "consumer" requestes data. Reading from
/dev/arandom will then generate the required amount of random values
for the statistic tests, while we can still record all values.
I'll see if I'll be able to do ...
| Dec 22, 8:29 am 2010 |
| Eichert, Diana | Re: Allegations regarding OpenBSD IPSEC
-----Original Message-----
From: owner-tech@openbsd.org [mailto:owner-tech@openbsd.org] On Behalf Of
Joachim Schipper
or use syslog(3) to output to your destination of choice.
| Dec 22, 9:43 am 2010 |
| Theo de Raadt | Re: Allegations regarding OpenBSD IPSEC
> Is there any documented test for the quality of the PRNG?
Are you talking about our use of MD5, or our use of RC4?
If you are talking about our RC4, then there is; I will put it this
way: If our use of RC4 in this exactly-how-a-stream-cipher-works way
is bad, then every other use on this planet of steam ciphers is bad,
and very broken. We are relying on the base concept.
The idea is that you can initialize a stream cipher with near-crap and
it will work OK for the way we are using ...
| Dec 21, 6:00 pm 2010 |
| Theo de Raadt | Re: Allegations regarding OpenBSD IPSEC
[list of 16]
No, there is much more than that. Processes get started and
initialize their libc-based prng's, as well as other state, including
The MD5 is required.
| Dec 21, 9:31 pm 2010 |
| Theo de Raadt | Re: Allegations regarding OpenBSD IPSEC
12 to 16 bytes of kind-of-known but not really known data are mixed with
256 - (12 to 16) bytes of data to from the initial state of RC4, which is
then filtered by dropping the first 256 or 256*4 bytes of data as written
in the best paper that exists today.
Is it relevant?
| Dec 21, 6:09 pm 2010 |
| Theo de Raadt | Re: Allegations regarding OpenBSD's PRNG
Holy cow, you are dense.
I am going to throw out estimates here because (a) it has been a long
time since we tested, and (b) so much can vary machine to machine.
Without a hardware RNG device, a typical i386 desktop machine can
provide (based on interrupt sources) around 1800 bytes of base entropy
to the MD5 thrasher -- per minute.
Meanwhile, OpenBSD is consuming about 80 KB of arc4random output per
minute. How do you convert 1800 bytes of input to 81920 bytes of
output, while giving ...
| Dec 22, 1:34 pm 2010 |
| Theo de Raadt | Re: Allegations regarding OpenBSD IPSEC
What else do you think we should use? Where do we invent entropy from
False.
On some architectures, some entropy might have been fetched.
On some architectures, the system clock might have been read with enough
accuracy and random time advancement to provide some unknown.
On MOST architectures, the above two are true.
On some they are not.
Soon after mounting, /etc/rc will load a bucketload more entropy (even
on the first boot, I should add, since even the installation ...
| Dec 21, 5:46 pm 2010 |
| Theo de Raadt | Re: Allegations regarding OpenBSD IPSEC
That is completely irrelevant because get_random_bytes() is only used
as the *source material* for a RC4-based PRNG.
WE HAVE THREE LAYERS OF PRNG.
| Dec 21, 5:50 pm 2010 |
| Theo de Raadt | Re: Allegations regarding OpenBSD IPSEC
I am so sad.
8 years after the fact, people still forget that our kernel rc4 stream
is cut up among hundreds of consumers.
Go ahead, do a FIPS check on it. You will be doing a FIPS check on
4096 bytes here, then a gap of unknown length, then 4096 bytes here,
then a gap of unknown length, then 4096 bytes here, then a gap of
unknown length, ....
After sharing a single pie with 200 people, you are using statistics
to claim it had no strawberries on it.
| Dec 21, 5:49 pm 2010 |
| Theo de Raadt | Re: Allegations regarding OpenBSD's PRNG
Four days ago, if you were using a particular set of hardware drivers,
then yes. But the software ipsec stack was fixed for this NINE YEARS
AGO.
No. The upper bits are 'more known'. The lower bits are 'less known'.
We don't save entropy over boots. You are speaking of one specific way
of solving this, and we don't do that. You can read the code in /etc/rc
and /etc/rc.shutdown.
At shutdown, we save a block of OUTPUT from the PRNG.
At boot, right after some extremely early system ...
| Dec 21, 8:26 pm 2010 |
| Consilier CFI | Vacante si proprietati
Daca aveti probleme cu vizionarea acestui email dati [click aici] pentru
a vizualiza varianta online!
[IMAGE]
[IMAGE]
Newsletter 21.12.2010
[IMAGE]
CaseFaraIntermediari.roUrmariti-ne pe Facebook!Urmariti-ne pe Twitter!Urmariti-ne pe Blogger!
Ultimele anunturi adaugate
Vezi toate anunturile
[IMAGE]
[IMAGE]
Apartament 4 camere - Dorobanti, Bucuresti
Apartament 4 camere - Dorobanti, Bucuresti
105.000 EUR
VANZARE
DETALII ...
| Dec 22, 9:46 am 2010 |
| Jason McIntyre | Re: allow bioctl to read passphrase from stdin
i think this is reasonable, though i'd maybe change the "It" to "This
option" (both here and -p).
anyone else agree?
| Dec 22, 4:57 am 2010 |
| Jason McIntyre | Re: allow bioctl to read passphrase from stdin
fixed, thanks.
| Dec 22, 9:25 am 2010 |
| Jason McIntyre | Re: keynote.{1,3,4,5}: fix IEEE conference name
fixed, thanks.
| Dec 22, 9:40 am 2010 |
| Joachim Schipper | Re: Allegations regarding OpenBSD IPSEC
This isn't even remotely clever, but printf() and some base64 encoding
should work fine for a one-off experiment. There *is* a limit to how
much you can print before you fill up the dmesg; if insufficient, try
compiling with a CONFIG.MP_LARGEBUF like this:
---
include "arch/amd64/conf/GENERIC.MP"
option MSGBUFSIZE=131072
---
You may wish to look at misc/ent.
Joachim
| Dec 22, 8:43 am 2010 |
| Kjell Wooding | Re: Allegations regarding OpenBSD's PRNG
Perhaps that's why you seem unwilling to listen to what you are being told.
Can you please stop wasting time asking questions before you bother to read
about what you are asking?
You have flipped the bozo bit. You're on your own until you bother doing
some of your homework.
-kj
| Dec 22, 2:10 pm 2010 |
| Kjell Wooding | Re: Allegations regarding OpenBSD's PRNG
Can you please stop wasting time asking questions before you bother to read
about what you are asking?
Oh good grief. Yes, ARC4 is being used to stretch a random source. Feel free
to hunt for the distinguisher in the OpenBSD multi-consumer model. There's a
good paper in there. If you can show a distinguisher (even without
reseedings) with an equivalent number of consumers randomly pulling data
from the stream, then you might be able to tell us how long we should go
between reseeding.
I ...
| Dec 22, 10:44 am 2010 |
| Kenneth R Westerback | Re: allow bioctl to read passphrase from stdin
Yes. I agree.
| Dec 22, 5:21 am 2010 |
| Kenneth R Westerback | New acpi challenges! New Dell XPS blows up in acpivideo!
Got a new Dell XPS 401 laptop today and booted amd64 -current bsd.mp
off of a usb stick. It immediately blew up in acpi. bsd.rd did not
blow up.
There seems to be a minor (i.e. non ddb> causing) issue prior to
acpivideo:
acpiec0 at acpi0
acpicpu1 at acpi0: PSS
Hand transcribed:
<usual dmesg -- see below>
acpivideo at acpi0: GFX0
0xffff8000001d6788 cnt:01 stk: 00 objref: 0xffff8000001c3c08
index: 0 opcode: Cond Ref
[\HDOS] 0xffff8000001c3c08 cnt: 04 stk: 00 method: 08
Could not ...
| Dec 22, 2:08 pm 2010 |
| Lawrence Teo | keynote.{1,3,4,5}: fix IEEE conference name
The keynote.{1,3,4,5} man pages reference a paper entitled
"Decentralized Trust Management" by M. Blaze, J. Feigenbaum, and J.
Lacy, but the name of the conference is incorrect.
That paper was presented at the IEEE Symposium on Security and
Privacy [1, 2], and not the "IEEE Conference on Privacy and
Security."
[1] http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=502679
[2] http://www.crypto.com/papers/
The following diff fixes the conference name.
Lawrence
Index: ...
| Dec 22, 7:51 am 2010 |
| Kevin Chadwick | Re: Allegations regarding OpenBSD's PRNG
On Wed, 22 Dec 2010 11:00:43 -0600
Well I would have thought it's certainly better, though I'm not in the
crypto internals know and haven't been studying very closely, so I can't
comment.
Cron, Mail server, web server, relays all create many processes and you
should be monitoring any important system too.
The unix philosophy of many small programs means a high number of
processes is rather likely. The daily script itself uses many, though
admittedly in this case only once a day.
Isn't ...
| Dec 22, 10:33 am 2010 |
| Kevin Chadwick | Re: Allegations regarding OpenBSD's PRNG
On Wed, 22 Dec 2010 05:08:56 -0600
There was a thread "called how to use /dev/srandom" where theo sent
this, which may be relevant?
=======================================================================
For those who don't want to go read the code, the algorith on the very
back end is roughly this:
(a) collect entropy until there is a big enough buffer
(b) fold it into the srandom buffer, eventually
That is just like the past.
But the front end is different. From the ...
| Dec 22, 5:57 am 2010 |
| Marsh Ray | Re: Allegations regarding OpenBSD's PRNG
Yes, they very nearly are. To a man with a memory of 30 minutes or so,
every new year is unrelated to the old one. To a statistical test that
only looks back on the last 30 bytes or so of history for a
low-probability event, something that changes every few MB won't affect it.
This distinguisher works on samples of any four bytes of output from any
RC4 stream regardless of keying. (But it needs less data if you're give
it slightly longer sequences.) Which is the key property of an RNG: ...
| Dec 22, 1:15 pm 2010 |
| Marsh Ray | Re: Allegations regarding OpenBSD's PRNG
[Just been following the discussions on the web archives, so sorry that
I'm replying out of the email thread]
* MD5 is used all the time in PRNGS. The collisions demonstrated aren't
an issue if the attacker has almost no control over the input.
* An unauthenticated attacker may be able to sample an almost arbitrary
amount of output from your PRNG by making new IPsec connections. As I
understand it, each now sends 128 bits or so of output as plaintext over
the wire in the IV. :-)
* How ...
| Dec 21, 7:55 pm 2010 |
| Marsh Ray | Re: Allegations regarding OpenBSD's PRNG
Haha, yeah I have been reading all over the map. My comments are
out-of-order too.
BTW, the nanotime in arc4_stir looks like it's redundant anyway since
I wasn't drawing conclusions and tried to indicate that with the use of
key words and phrases like "may" and "I don't know...but" and
I'd been reading in the thread something about XORing vs prepending
nanotime() and wanted to pitch in an answer this question. I do see now
that the random_bytes are coming from MD5. But ...
| Dec 22, 4:08 am 2010 |
| Marsh Ray | Re: Allegations regarding OpenBSD's PRNG
Consider the possibility that I have, in fact, read a little bit about
it and am asking some of these questions because I suspect you don't
actually have a good answer for them. People who are deeply convinced of
This one does it in 2^26 bytes:
http://www.iacr.org/cryptodb/data/paper.php?pubkey=2597
Let's see, (libc)arc4random.c says:
> arc4_count = 1600000;
That's about 2^20 so you'd get 41 reseedings generating that much input
data. But how much would these reseedings disrupt ...
| Dec 22, 12:24 pm 2010 |
| Marsh Ray | Re: Allegations regarding OpenBSD's PRNG
How is this different, except for perhaps the intermediate arc4 cipher.
What does that add, other than crappiness? (RC4 is known to be
Looking at lib/libc/crypt/arc4random.c it would appear that happens once
on startup or fork and then again after about every 1.6MB of random data
How is that noticeably different than any other system where processes
are reading from /dev/(u)random and kernel events are mixing in a
But a typical box doesn't have "hundreds and hundreds" of processes ...
| Dec 22, 10:00 am 2010 |
| Marsh Ray | Re: Allegations regarding OpenBSD IPSEC
You should definitely check out this page if you hadn't already:
http://www.phy.duke.edu/~rgb/General/dieharder.php
The dieharder test suite already comes with input modules for reading
Well if that's your goal, I think you probably need to patch the kernel
In any case, generic statistical tests might detect really horrible
brokenness but they're are not the thing to certify CSRNGs with. Somehow
people managed to run them on RC4 for years before anyone noticed that
the second byte of ...
| Dec 22, 10:33 am 2010 |
| Ryan McBride | Re: Allegations regarding OpenBSD's PRNG
I agree that there's a good paper in this, I would love to see the
entropy added by the multi-consumer model quantified, or even an upper
bound placed on it. In the past when I've given my talk on randomness
in the OpenBSD network stack, I've discussed this and I always ask for
someone to come forward with such a paper.
Unfortunately I don't get the impression that the amateur cryptographers
questioning the OpenBSD PRNG are qualified to produce such a paper (if
they were, they wouldn't be ...
| Dec 22, 1:09 pm 2010 |
| Martin Toft | Dec 22, 12:34 am 2010 | |
| Otto Moerbeek | Re: malloc.3 typo
No.
I'm trying to express there: you pay a bit (by reducing randomness),
but you also gains a bit (earlier detection).
-Otto
| Dec 21, 11:57 pm 2010 |
| Otto Moerbeek | Re: Allegations regarding OpenBSD IPSEC
Applied Cryptography only has a sketch. Details have to be filled in.
In summary, the kernel arc4 is reseeded completely with bytes from the
entropy pool periodically, while the libc arc4 is seeded once with
bytes form the kernel arc4 at first use after process startup and then
stirred with a sequence of random bytes obtained from the kernel after
every x bytes produced.
I can maybe guess why it is this way, but I'd like knowledgeable person to
comment on this.
Note that the ...
| Dec 22, 1:38 am 2010 |
| Otto Moerbeek | Re: Allegations regarding OpenBSD IPSEC
Believe it or not, but this diff has been circling around developers
already a few days ago.
| Dec 22, 1:44 am 2010 |
| Clint Pachl | Re: Allegations regarding OpenBSD IPSEC
Now that it's amateur suggestion hour (no offense Salva), I'm going to
take a shot.
Would it be possible to use what randomness the system does have to seed
some reader that pseudo-randomly reads arbitrary bits from the loaded
kernel image in RAM?
This may differ per system, but doesn't uninitialized RAM start in an
"unknown state?" If so, could that be added to the entropy pool if it is
determined to be random (i.e. not initialized to zeros)?
| Dec 22, 2:49 pm 2010 |
| Vadim Zhukov | Re: Allegations regarding OpenBSD IPSEC
And it's definitely worth looking... Patch below.
--
Best wishes,
Vadim Zhukov
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Index: rc
===================================================================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.345
diff -u -p -r1.345 rc
--- rc 8 Nov 2010 19:44:36 -0000 1.345
+++ rc 22 Dec 2010 05:25:37 ...
| Dec 21, 10:28 pm 2010 |
| service | 團購銷售課程
eh3<d9g62h7/h!i
7ef3
h*2g(g.go<fd>e-8e!eig(g62h7/eh3<ge8e 4h6(e"o<ee:e1,f<e0h*e71d<f%-i
7e.f e9+e
)gh*2g(cf,h*2g(e0fd>f4e$ig(eh3<gih7/hf9e<o<f
ef,f(eeggf%-f8ifef4i+c
h*2g(fio<99/e9412f31f%(d:) 13:30~17:6:30 [d8 e0f]
h*2g(e'e.9o<
eh3<h6(e"he8e 4h&f(!
eh3<e8e 4h&e&e?
eh3<e%e#gf/h<
f6h2;hg:d=h&eh3<?
eh3<e8e ...
| Dec 22, 1:19 am 2010 |
| Salvador Fandiño | Re: Allegations regarding OpenBSD IPSEC
Could a random seed be patched into the kernel image at installation time?
Admittedly this is not entropy, this is a just secret key and anyone
with access to the machine would be able to read it, but from the
outside, specially considered that machines are not rebooted so often
(and when they are, it is usually for updating them), it would look like
real random data.
- Salva
| Dec 22, 4:13 am 2010 |
| Ted Unangst | Re: Allegations regarding OpenBSD IPSEC
I think we'd much rather just have a good random generator, than rely
on one of uncertain quality. If the system really, really, really
needs random numbers before entropy is available, then we should fix
that problem, not try to magic up some entropy.
| Dec 22, 3:25 pm 2010 |
| Ted Unangst | Re: Allegations regarding OpenBSD's PRNG
I'm not sure how you arrived at this result. The new stream is
unrelated to the old one. Otherwise, why not just treat all RC4
streams as the same?
| Dec 22, 12:42 pm 2010 |
| Thomas Pfaff | Re: pf debug states: ioctl interface and state names.
On Wed, 22 Dec 2010 09:03:57 +0100
So the names in 2) should be removed from the pf.conf man page and the
names in 3) should be added, then? How about something like this (text
is mostly a copy of that in the pfctl man page for the -x option):
Index: pf.conf.5
===================================================================
RCS file: /cvs/src/share/man/man5/pf.conf.5,v
retrieving revision 1.482
diff -u -p -r1.482 pf.conf.5
--- pf.conf.5 15 Dec 2010 14:06:05 -0000 1.482
+++ pf.conf.5 22 ...
| Dec 22, 1:52 pm 2010 |
| Todo Diversion | Sr tech : Estas Fiestas Divertite con el mejor Karaoke F ...
Karaoke Full Completo
(Recomendado)
karaoke full
Karaoke es un programa que convierte tu PC en un completo karaoke.
Para mi gusto el mejor karaoke disponible el mercado para PC.
Software Full sin limitaciones.
Caractermsticas Principales:
* Acceso directo a las canciones por tmtulo
* Clasificacisn de las canciones por Idioma
* Modificacisn del tono de la mzsica
* Cambio del tamaqo de la letra
* Copia de la letra de la cancisn al portapapeles
* Sistema arrastrar y soltar para ...
| Dec 21, 9:40 pm 2010 |
| previous day | today | next day |
|---|---|---|
| December 21, 2010 | December 22, 2010 | December 23, 2010 |
