Re: Thread termination and synchronous IRP problem?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Wait with KernelMode/FALSE is NOT alertable at all, and the process is not
killable neither by Ctrl-C nor by Task Manager nor by KILL.EXE. It is just
plain hung in "semi-killed" state.

As far as I understand, a thread cannot get terminated while it is in
the kernel mode - thread's termination is postponed until it returns to
the user mode .

Correct. We are speaking about _whether KeWaitForSingleObject can be
interrupted_ by TerminateProcess or not.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

.



Relevant Pages

  • Re: Thread termination and synchronous IRP problem?
    ... killable neither by Ctrl-C nor by Task Manager nor by KILL.EXE. ... plain hung in "semi-killed" state. ... the kernel mode - thread's termination is postponed until it returns to ... It's alertable by CTRL-C apparently, which is meant to kill a process, ...
    (microsoft.public.development.device.drivers)
  • Re: Can TerminateThread() kill a thread that has entered the kernel?
    ... terminated as long as it is in kernel mode. ... Maybe Doron is more correct, ... then any ExAllocate should be done under KeEnterCriticalRegion. ... kmode code cannot be interrupted by thread termination, ...
    (microsoft.public.development.device.drivers)
  • Re: Can TerminateThread() kill a thread that has entered the kernel?
    ... not termination of the thread. ... terminated as long as it is in kernel mode. ... Maybe Doron is more correct, ...
    (microsoft.public.development.device.drivers)
  • Re: Thread termination and synchronous IRP problem?
    ... it cannot get terminated until it returns to the user mode. ... the kernel mode - thread's termination is postponed until it returns to ... Maxim Shatskih, Windows DDK MVP ...
    (microsoft.public.development.device.drivers)
  • Protecting a service from termination.
    ... What is the correct way of protecting a service from termination through the ... task manager or through a tool like kill.exe? ... Any information on how to accomplish this would be greatly appreciated! ...
    (microsoft.public.platformsdk.security)