bug in 2.0.38?

From: Tomi Leppikangas (tomilepp@ousrvr2.oulu.fi)
Date: Thu Feb 24 2000 - 03:42:48 EST


Hi,

I made program that continously read /proc/net/arp and
watches mac address changes. This works pretty well, exept
that sometimes i get stale information, there is two
entryes for one ip. Looks like kernel updates information
while reading from proc.

I notised that this could happen when read buffer is too
small, but that was not case.

I looked kernel source, and looks like in net/ipv4/arp.c
in function arp_run_bh there is no chekking for
ARP_LOCKED() after arp_fast_lock(). There is cli(),
but that isnt enought?

-- 
##        Tomi.Leppikangas@oulu.fi         ##
##  http://www.student.oulu.fi/~tomilepp/  ##

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:09 EST