Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 20 Feb 2001 22:02:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 20 Feb 2001 22:02:41 -0500 Received: from asbestos.linuxcare.com.au ([203.17.0.30]:52220 "EHLO halfway") by vger.kernel.org with ESMTP id ; Tue, 20 Feb 2001 22:02:26 -0500 From: Rusty Russell To: Philipp Rumpf Cc: Alan Cox , linux-kernel@vger.kernel.org Subject: Re: Linux 2.4.1-ac15 In-Reply-To: Your message of "Mon, 19 Feb 2001 05:54:11 CDT." Date: Wed, 21 Feb 2001 14:02:04 +1100 Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In message you write: > > We unlink the module > > We free the memory > > > > At the same time another cpu may be walking the exception table that we fre e. > > True. > > Rusty had a patch that locked the module list properly IIRC. This is a while back, but I thought the solution Philipp and I came up with was to simply used a rw semaphore for this, which was taken (read only) on page fault if we have to scan the exception table. Rusty. -- Premature optmztion is rt of all evl. --DK - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/