hey Linux kernel followers. is there some existing way to kill a single process in uninterruptible sleep (*presses power button for five seconds* you called that uninterruptible?) and release the lock it's stuck on, or do i have to write a kernel module myself?
-
Show this thread
-
i think it'd actually be enough to release one specific lock, but Linux says "disabling lock debugging due to kernel taint" when i insmod nvidia and i want to know absolutely nothing about kernel taint thank you very much
1 reply 0 retweets 19 likesShow this thread -
ok I've learned about /proc/$PID/stack but what if my process is in R state and not SIGKILLable and there's nothing in kernel stack and both gdb and strace just hang if I try to trace it and I have to SIGKILL them. what do I do then
5 replies 0 retweets 7 likesShow this thread -
Replying to @whitequark
wait, processes can get into a state where you can't sigkill them? how even?
2 replies 0 retweets 0 likes -
Replying to @MadRubicant
when a process is running in kernel context, you can't just immediately terminate it because it might be in the middle of changing some kernel data structure. so SIGKILL only gives a hint to the kernel that returning an error fast is better than taking long
1 reply 0 retweets 0 likes
but if the kernel has a bug and is stuck in kernel context - e.g. in an endless loop -, there is no safe way to terminate it
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.