LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-05-2015, 06:41 AM   #1
pfreezer
LQ Newbie
 
Registered: Mar 2015
Posts: 1

Rep: Reputation: Disabled
SIGSTOP signal cannot freeze kernel mode process


Hello,

I'm trying to create a kernel level mechanism that freezes processes.
So far I've been successful in doing so in some cases but whenever I have
a process running in kernel mode, this mechanism fails.

More precisely I have an Android app that launches two java.lang.Process
instances where each of which issue a shell ping command.
At this point I can see that the app and both processes are in the
sleeping state (S), meaning that their processes are in kernel mode, and
waiting for some syscall to terminate (possibly recvmsg or sendmsg).
In the kernel, I send a signal (SIGSTOP) to one of the ping processes to
freeze it.
I then check the state of the process and I can see that it actually
transitioned from the sleeping to the stopped state (T).
However, when I use strace on that ping process, it shows continuous
socket activity, which means that despite the state of the process, the
signal had no effect on the ping process's kernel level execution.

I would like to know if anyone can help me answer two questions:
Is this behavior normal?
Is there a way to freeze kernel level execution such as a system call?

Linux kernel: goldfish 3.4
Android: KitKat 4.4 r1.2

Thank you very much in advance
Best Regards
pfreezer

Last edited by pfreezer; 03-05-2015 at 07:28 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
does windows create process in user mode and linux in kernel mode ? golden_boy615 Linux - Security 2 07-01-2013 08:45 AM
[SOLVED] kernel: init: rsyslog main process killed by ABRT signal -- how to investigate ? masuch Linux - Newbie 6 08-10-2012 02:03 PM
running xfce: using a SIGSTOP to freeze a user's desktop joshiggins Linux - General 2 06-29-2008 06:11 PM
Signal SIGSTOP being ignored - why? bjdea1 Programming 6 06-27-2007 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration