* Re: Preempt count check when leaving IRQ? (Was: Re: 2.5.44
@ 2002-11-07 21:52 Petr Vandrovec
0 siblings, 0 replies; only message in thread
From: Petr Vandrovec @ 2002-11-07 21:52 UTC (permalink / raw)
To: davem; +Cc: Robert Love, linux-kernel, roger.larsson
On 7 Nov 02 at 1:41, Roger Larsson wrote:
>
> This is another CHECK to do then.
>
> Make a copy of preempt count when entering an IRQ.
> Check that we have the same value when leaving.
> (using -acX we only have to add the check when leaving)
Hi Dave,
I have bad news for you: doing 'cat /proc/net/arp' sometime kills
my system hard.
Problem is with reading /proc/net/arp: arp_seq_start does
read_lock_bh(&arp_tbl.lock), and this lock is held and held and held...
as long as neigh_get_bucket() returns non-NULL, or until reading
of /proc/net/arp stops...
... and so it sometime happens that lock is still held when accessing
userspace while copying data in read, and shortly after that we run
userspace with (1) this lock held and (2) bh disabled, and scheduler
does not like such configuration.
I'd say that all machines here are affected, and only I suffer
from problem because of I'm running shell script which periodically pings
all machines on subnet, reading their ethernet addresses back from
/proc/net/arp...
Unfortunately I do not have any idea how to fix it correctly, so for now
I just removed /proc/net/arp from my system, because of 'cat /proc/net/arp'
preceded by ping is quickest way I know to kill my system from user account.
Thanks,
Petr Vandrovec
vandrove@vc.cvut.cz
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-07 22:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-07 21:52 Preempt count check when leaving IRQ? (Was: Re: 2.5.44 Petr Vandrovec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox