mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Chris Peterson" <cpeterso@cpeterso.com>
To: linux-kernel@vger.kernel.org
Subject: network devices: to IRQF_SAMPLE_RANDOM or not to IRQF_SAMPLE_RANDOM?
Date: Tue, 13 May 2008 09:49:00 -0700	[thread overview]
Message-ID: <a24804730805130949o32687f74id4fce833c3589641@mail.gmail.com> (raw)

Should network devices be allowed to contribute entropy to /dev/random?

This issue has been discussed before, but does not seem to have been
settled: some net drivers [1] use IRQF_SAMPLE_RANDOM when calling
request_irq(), but the vast majority do not. It seems like all net
drivers should follow the same entropy paranoia policy (whether that
is all net drivers should use IRQF_SAMPLE_RANDOM, no net drivers, or a
compile-time option).

Robert Love wrote a patch that added such a compile-time option,
CONFIG_NET_RANDOM (though I believe he stopped maintaining it in
2004). [2]

chris

[1] net drivers that use IRQF_SAMPLE_RANDOM:

drivers/net/3c523.c
drivers/net/3c527.c
drivers/net/atlx/atl1.c
drivers/net/cris/eth_v10.c
drivers/net/ibmlana.c
drivers/net/macb.c
drivers/net/mv643xx_eth.c
drivers/net/netxen/netxen_nic_main.c
drivers/net/niu.c
drivers/net/qla3xxx.c
drivers/net/tg3.c
drivers/net/xen-netfront.c

[2] http://www.kernel.org/pub/linux/kernel/people/rml/netdev-random/

             reply	other threads:[~2008-05-13 16:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-13 16:49 Chris Peterson [this message]
2008-05-13 17:33 ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a24804730805130949o32687f74id4fce833c3589641@mail.gmail.com \
    --to=cpeterso@cpeterso.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®