From: "Martin J. Bligh" <mbligh@aracnet.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [Bug 420] New: Divide by zero (/proc/sys/net/ipv4/neigh/DEV/base_reachable_time)
Date: Fri, 28 Feb 2003 09:37:08 -0800 [thread overview]
Message-ID: <27440000.1046453828@[10.10.2.4]> (raw)
http://bugme.osdl.org/show_bug.cgi?id=420
Summary: Divide by zero
(/proc/sys/net/ipv4/neigh/DEV/base_reachable_time)
Kernel Version: 2.4.20, 2.5.63
Status: NEW
Severity: normal
Owner: davem@vger.kernel.org
Submitter: usui_mi@ybb.ne.jp
Distribution:Debian GNU/Linux 3.0, Vine Linux 2.6
Hardware Environment:
Software Environment:
Problem Description:
Divide by zero (/proc/sys/net/ipv4/neigh/DEV/base_reachable_time)
Steps to reproduce:
I found the problem of neigh_rand_reach_time() in net/core/neighbour.c.
This function called by neigh_periodic_timer() each 300 seconds,
and argument of neigh_periodic_timer() is p->base_reachable_time.
base_reachable_time can set to 0 by below sequence.
echo 0 > /proc/sys/net/ipv4/neigh/DEV/base_reachable_time
But neigh_rand_reach_time() divide by its argument.
unsigned long neigh_rand_reach_time(unsigned long base)
{
return (net_random() % base) + (base>>1);
}
next reply other threads:[~2003-02-28 17:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-28 17:37 Martin J. Bligh [this message]
[not found] <27440000.1046453828@[10.10.2.4].suse.lists.linux.kernel>
2003-02-28 18:31 ` Andi Kleen
2003-02-28 22:23 ` Abramo Bagnara
2003-02-28 22:26 ` Randy.Dunlap
2003-02-28 22:37 ` Robert Love
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='27440000.1046453828@[10.10.2.4]' \
--to=mbligh@aracnet.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®