NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/38086: bge(4) does not seem to call rnd_attach_source() like other network interfaces do



>Number:         38086
>Category:       kern
>Synopsis:       bge(4) does not seem to call rnd_attach_source() like other 
>network interfaces do
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 22 22:15:01 +0000 2008
>Originator:     Greg A. Woods
>Release:        NetBSD 4.0_STABLE 2008/02/22
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 4.0_STABLE GENERIC.MP
Architecture: i386
Machine: i386
>Description:

        I can't seem to add "net" type devices to collect entropy or
        timing for rnd(4) on my Dell PE2650 running NetBSD-4.0_STABLE.
        It has bge(4) ethernet interfaces, and only bge(4) interfaces.

        (FYI, without using additional, more active, devices as entropy
        sources for rnd(4) it's very painful to use like PGP regularly,
        at least when I'm not doing builds or background cvs or rsync
        activity, or similar disk intensive work in the background.  My
        network is reasonably secure and private and I'm not quite so
        worried about crackers futzing with rnd(4)!)

>How-To-Repeat:

# rndctl -ls
Source                 Bits Type      Flags
cd0                       0 disk estimate, collect
fd0                       0 disk estimate, collect
ld0                11620593 disk estimate, collect
pckbd0                 2176 tty  estimate, collect
         11622776 bits mixed into pool
             1344 bits currently stored in pool (max 4096)
         11299122 bits of entropy discarded due to full pool
           322310 hard-random bits generated
           302282 pseudo-random bits generated
# rndctl -Cc -t net
# rndctl -ls
Source                 Bits Type      Flags
cd0                       0 disk estimate, collect
fd0                       0 disk estimate, collect
ld0                11620593 disk estimate, collect
pckbd0                 2176 tty  estimate, collect
         11622776 bits mixed into pool
             1344 bits currently stored in pool (max 4096)
         11299122 bits of entropy discarded due to full pool
           322310 hard-random bits generated
           302282 pseudo-random bits generated
$ fgrep -i ethernet /var/run/dmesg.boot
bge0 at pci1 dev 6 function 0: Broadcom BCM5701 Gigabit Ethernet
bge0: ASIC BCM5701 B5 (0x0105), Ethernet address 00:06:5b:ed:e2:d1
bge1 at pci1 dev 8 function 0: Broadcom BCM5701 Gigabit Ethernet
bge1: ASIC BCM5701 B5 (0x0105), Ethernet address 00:06:5b:ed:e2:d2

>Fix:

        add the necessary call to rnd_attach_source() somewhere in if_bge.c?

        pull the change into the netbsd-4 and other supported release branches!

>Unformatted:
 


Home | Main Index | Thread Index | Old Index