Announcement

Collapse
No announcement yet.

"pkill_on_warn" Proposed For Killing Linux Processes That Cause A Kernel Warning

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • drjohnnyfever
    replied
    Originally posted by perpetually high View Post

    Right, I meant more a buggy kernel module that trips up the kernel. I could be totally wrong by the way in my assumptions. Newbie here. Trying to ask dumb questions so I can learn
    A bad program should segfault and die. A kernel warning means some code in the kernel did something unexpected. As far as I understand that shouldn't happen unless the kernel strayed outside intended behavior. It might well be possible for WARNS to be triggered by some other less serious condition but I think there are INFO messages for that kind of thing.

    Leave a comment:


  • perpetually high
    replied
    Originally posted by drjohnnyfever View Post

    A WARN means an assertion was tripped in the kernel. That is the definition of doing something wrong.
    Right, I meant more a buggy kernel module that trips up the kernel. I could be totally wrong by the way in my assumptions. Newbie here. Trying to ask dumb questions so I can learn

    Leave a comment:


  • drjohnnyfever
    replied
    Originally posted by perpetually high View Post

    The kernel can still panic from bad code or unintended consequences of a code change whatever. Separate from this issue. You would still want the mechanism in place to not panic the kernel when it did nothing wrong
    A WARN means an assertion was tripped in the kernel. That is the definition of doing something wrong.

    Leave a comment:


  • perpetually high
    replied
    Originally posted by drjohnnyfever View Post

    Well, if that is the case we don't actually need panic() at all. Just remove it.
    The kernel can still panic from bad code or unintended consequences of a code change whatever. Separate from this issue. You would still want the mechanism in place to not panic the kernel when it did nothing wrong

    Leave a comment:


  • drjohnnyfever
    replied
    Originally posted by tildearrow View Post

    It's a kernel option. You are able to configure this.

    Personally having some time to save my work and reboot is better than losing my work due to a kernel bug causing a panic.
    Unless meanwhile that kernel is eating all your data already on the disk instead of panicking. The reason you panic is because you are in *a bad state*

    Leave a comment:


  • drjohnnyfever
    replied
    Originally posted by perpetually high View Post

    Maybe I’m missing something but I think the #1 job of a kernel is *not* to panic. Don’t care what caused it. Just don’t panic. Warn me and then let me tell the developers and never run it again
    Well, if that is the case we don't actually need panic() at all. Just remove it.

    Leave a comment:


  • billbo
    replied
    Err what about the parent of the process? If I have my exploit fork before trying the "dangerous" code, the parent can keep chugging along and try again in a new child.

    Leave a comment:


  • tildearrow
    replied
    Originally posted by drjohnnyfever View Post
    I can understand panicking on warning, but isn't shooting down programs that triggered a kernel bug sort of missing the point? The kernel should do the honorable thing and kill itself.
    It's a kernel option. You are able to configure this.

    Personally having some time to save my work and reboot is better than losing my work due to a kernel bug causing a panic.

    Leave a comment:


  • perpetually high
    replied
    Originally posted by drjohnnyfever View Post
    I can understand panicking on warning, but isn't shooting down programs that triggered a kernel bug sort of missing the point? The kernel should do the honorable thing and kill itself.
    Maybe I’m missing something but I think the #1 job of a kernel is *not* to panic. Don’t care what caused it. Just don’t panic. Warn me and then let me tell the developers and never run it again

    Leave a comment:


  • drjohnnyfever
    replied
    I can understand panicking on warning, but isn't shooting down programs that triggered a kernel bug sort of missing the point? The kernel should do the honorable thing and kill itself.

    Leave a comment:

Working...
X