[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87vcmp14qx.fsf@rustcorp.com.au>
Date: Thu, 01 Mar 2012 12:06:54 +1030
From: Rusty Russell <rusty@...abs.org>
To: Dmitry Antipov <dmitry.antipov@...aro.org>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: Rusty Russell <rusty.russell@...aro.org>,
linux-kernel@...r.kernel.org, linaro-dev@...ts.linaro.org,
patches@...aro.org, Dmitry Antipov <dmitry.antipov@...aro.org>
Subject: Re: [PATCH] module: debugging check for runaway kthreads
On Wed, 29 Feb 2012 19:21:13 +0400, Dmitry Antipov <dmitry.antipov@...aro.org> wrote:
> Debugging option CONFIG_MODULE_KTHREAD_CHECK provides a way to check
> whether all kernel threads created by the module and have used module
> code as a thread worker function are really exited when the module is
> unloaded. The following pseudo-code contains example of an error which
> is likely to be catched with this debugging check:
Nice idea, but that's 101 lines of code, for very little gain.
How about a debug option which unmaps all module pages on removal,
and ensures they don't get reused? That might catch a multitude of
problems. And yes, I realize it might be a bigger patch...
Thanks,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists