Subject: Re: netconsole module cannot be removed

From: Chuck Ebbert <[email-masked]>
Date: Mon, 26 Feb 2007 18:07:48 -0500

Stephen Hemminger wrote:
> On Mon, 26 Feb 2007 15:35:11 -0500
> Chuck Ebbert <[email-masked]> wrote:
> 
>> Trying to remove netconsole, rmmod goes into a tight loop with
>> 100% CPU usage. It can't be killed with 'kill -9'. Shutdown
>> works, though. Kernel is 2.6.20 FC6 config, and I'm 99.9%
>> sure the module signing has nothing to do with this.
>>
> 
> No it probably has to do with printing a message during module removal.
> 

Works fine in 2.6.19.5

Hangs in vanilla 2.6.20 in netpoll_cleanup()

Call trace: 
 flush_cpu_workqueue
 flush_workqueue
 cancel_rearming_delayed_workqueue
 netpoll_cleanup
 sys_delete_module

It varies, but is always in one of the first three functions when you
do alt-sysrq-p.