[linux-audio-dev] [SOURCE] rt monitor to kill runaway RT processes

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] [SOURCE] rt monitor to kill runaway RT processes
From: Roger Larsson (roger.larsson_AT_skelleftea.mail.telia.com)
Date: Wed Aug 28 2002 - 17:02:29 EEST


Hi,

One problem with audio systems that
a) runs as RT processes
b) allows user loaded plugins

Is that it is very simple to make a DOS (Denial of service) attack.
This has resulted in that the feature to run arts in RT mode has been
disabled... see artswrapper.c, search for NO_MORE_LOCAL_DOS_HOLE

I made this code as a proof of concept for a monitor that catches and
reduces priority for processes that misuse this feature.
(this version reduces the priority for all RT processes at once...)

I have been away for some time, so I do not know what happened to it.
But I see that the RT possibility is still removed from arts (Stefan?)

But I figured out that those of you that develops RT plugins might find
it useful even in this form.

Note:
* it has not been tested on SMP (it is likely to be buggy...)
 * if your runaway RT program runs on highest SCHED_FIFO priority
    this monitor can not help you.

/RogerL

-- 
Roger Larsson
Skellefteċ
Sweden



New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Aug 28 2002 - 17:00:45 EEST