Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2002 15:41:32 -0700 (PDT)
From:      Andreas Gustafsson <gson@nominum.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/38527: /dev/random does not obey O_NONBLOCK flag
Message-ID:  <200205242241.g4OMfWVD095116@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         38527
>Category:       kern
>Synopsis:       /dev/random does not obey O_NONBLOCK flag
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 24 15:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Gustafsson
>Release:        4.5-STABLE
>Organization:
Nominum, Inc
>Environment:
FreeBSD yomiko.engr.nominum.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed May  1 17:12:00 PDT 2002     root@yomiko.engr.nominum.com:/usr/obj/usr/src/sys/YOMIKO  i386
>Description:
In FreeBSD 4.5, reads on /dev/random are nonblocking by default.
This is incompatible with both the NetBSD and the Linux
/dev/random. Reads should be nonblocking if and only if the
O_NONBLOCK flag was passed to open().

>How-To-Repeat:
Type "od -c </dev/random" and note that the od process exits
after printing a few bytes of random data.  Repeat on a NetBSD
or Linux system and note that od blocks until more entropy has
been gathered (e.g., after vigorous movement of the mouse).

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205242241.g4OMfWVD095116>