[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4936D287.6090206@cosmosbay.com>
Date: Wed, 03 Dec 2008 19:40:07 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: Andrew Morton <akpm@...ux-foundation.org>
CC: linux kernel <linux-kernel@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH] percpu_counter: fix CPU unplug race in percpu_counter_destroy()
Hi Andrew
While working on percpu_counter on net-next-2.6, I found
a CPU unplug race in percpu_counter_destroy()
(Very unlikely of course)
Thank you
[PATCH] percpu_counter: fix CPU unplug race in percpu_counter_destroy()
We should first delete the counter from percpu_counters list
before freeing memory, or a percpu_counter_hotcpu_callback()
could dereference a NULL pointer.
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
---
lib/percpu_counter.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
View attachment "percpu_counter_destroy.patch" of type "text/plain" (543 bytes)
Powered by blists - more mailing lists