lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAFXDVL-S=1ojQ2MngF0yVNSxdPzqh5un95jGkpXCLFU03WVHOw@mail.gmail.com>
Date:	Thu, 21 Jul 2011 17:13:52 -0400
From:	Ganesh Karuppur Rajagopalan <ganesh.kr356@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	Pallav Bose <pallavbose@...il.com>
Subject: Stopping a kthread in module exit(system hangs!) - linux 2.6.39.1

Hi all,


The kernel version we are  using is 2.6.39.1 . In our block device
driver module we create and run a kthread using "kthread_run" during
module_init.This kthread runs until we issue a "kthread_stop" from the
module_exit code.In the thread function we repeatedly check for
"kthread_should_stop" and when the condition is met (due to the
kthread_stop call) we "return 0;". Our thread function wouldn't return
 in any other scenario.

Our problem right now is that when we do an "rmmod" the system just
hangs!.This we have identified is due to the kthread_stop. Can you
please give us some pointers/directions regarding the possible
underlying issue.Specifically is there a problem while calling
kthread_stop and waiting on the thread completion in the module exit
code.


Thanks and Regards
Ganesh
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ