summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>2002-11-30 09:30:49 -0200
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>2002-11-30 09:30:49 -0200
commit15d9a07865573aa48aa4c2d9db8baeac42d10ba9 (patch)
tree5ac4a8beb7f5c28c0a3e6c8a3bab4d2acc3c8a45 /include/linux
parentb53a0adee63a0cb3bdbd1ef37dfcbe4d8bbde1f2 (diff)
o arp: fix seq_file handling bug
When midnigth commander viewer is invoked it first opens the file, read 4 bytes (probably looking for a magic number), reading only 4 bytes makes state->is_pneigh not to be set neither the lock is taken, because only the header is being produced (v = (void *)1), so when arp_seq_stop is called the lock is dropped without having being taken: b00m Thanks to Serge Kuznetsov for reporting this to me. Other seq_file code may have this problem, but by using mc viewer in all of /proc/net I haven't been able to reproduce this problem with any other file.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions