| To: | linux-kernel@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | [2.6.0, pktgen] divide-by-zero |
| From: | Lennert Buytenhek <buytenh@xxxxxxx> |
| Date: | Wed, 31 Dec 2003 06:13:16 -0500 |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.3.28i |
Hi,
When generating packets with pktgen with count=10, I get a divide-by-zero
oops in inject().
Line 273 in net/core/pktgen.c seems unsafe:
__u64 pps = (__u32)(info->sofar * 1000) / ((__u32)(total) / 1000);
What if total < 1000 ?
cheers,
Lennert
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] clean up tcp_sk(), 2.6.0, Ingo Molnar |
|---|---|
| Next by Date: | 2.4 and ip fragmentation question, Stephan von Krawczynski |
| Previous by Thread: | [PATCH] [bonding 2.6] Fix compilation warning in bond_alb.c, Amir Noam |
| Next by Thread: | 2.4 and ip fragmentation question, Stephan von Krawczynski |
| Indexes: | [Date] [Thread] [Top] [All Lists] |