public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Userspace process may be able to DoS kernel
@ 2006-10-11 16:54 Günther Starnberger
  2006-10-12  6:02 ` Joerg Platte
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Günther Starnberger @ 2006-10-11 16:54 UTC (permalink / raw)
  To: linux-kernel

[I'm not subscribed on this list - please CC answers to me.]

Hello,

It seems that the latest version of Skype may exhibit a problem in the
kernel where a non-root userspace process is able to block the whole
system for durations of up to several minutes. If someone is able to
reproduce the steps which cause the problem he may be able to DoS a
system by consecutively causing soft lockups.

There were some reports of this problem on other lists before, but
mostly on tainted systems. I was able to reproduce this problem on a
non-tainted mostly vanilla 2.6.17.6 kernel (it includes the suspend2
patches). As most users who reported this problem are using Ubuntu,
the problem may be related to one of the settings in Ubuntu's kernel
config. The configuration of my kernel is also based on the Ubuntu
kernel config. As I am not using the patched kernel by Ubuntu I hope
that the LKML is the right place to report this issue.

The lockup usually occurs when Skype 1.3.x for Linux (I'm using
1.3.0.53) sits around idle for some time and then (presumably) uses
the sound device (i.e. for me it happens when I call a contact -
others reported this problem occurs for incoming messages [there may
be an audio notification of the messages enabled]). The lockup can
take from several seconds (where it is not detected by the kernel) up
to some minutes. The whole system seems to be blocked - i.e. there is
not even disk IO.

dmesg reports the following:
BUG: soft lockup detected on CPU#0!
 <c01562cd> softlockup_tick+0xad/0xf0  <c012e609> update_process_times+0x39/0x90
 <c011600b> smp_apic_timer_interrupt+0x5b/0x70  <c0110037>
get_offset_pmtmr+0x97/0x1060
 <c0103d20> apic_timer_interrupt+0x1c/0x24  <c013d390> hrtimer_get_res+0x0/0x60
 <c0110037> get_offset_pmtmr+0x97/0x1060  <c0106b9f> do_gettimeofday+0x1f/0xd0
  <c0129654> getnstimeofday+0x14/0x40  <c01398d1> sys_clock_gettime+0x31/0xb0
 <c01031e7> sysenter_past_esp+0x54/0x75

A copy of my kernel config is available at:
http://virtual.sysfrog.org/~gst/config.txt

The hardware where this problem occurs here is a X41 Thinkpad (Pentium
M Dothan). There are also reports on other non-Intel CPUs e.g. AMD
Turion 64.

Please see the more extensive documentation of this problem on
https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/+bug/53216
(although some of the people there use tainted kernels).

I will upgrade my 2.6.17.6 kernel to 2.6.18 and try to reproduce the
problem there in the following days (but I fear that I won't have much
time before the weekend).

bye,
/gst

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2006-11-11 13:15 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 16:54 Userspace process may be able to DoS kernel Günther Starnberger
2006-10-12  6:02 ` Joerg Platte
2006-10-12  6:49   ` Willy Tarreau
2006-10-12 10:54     ` Joerg Platte
2006-10-12 11:30   ` Pekka Enberg
2006-10-12 11:41     ` Joerg Platte
2006-10-12 11:57       ` Pekka Enberg
2006-10-12 20:11         ` Joerg Platte
2006-10-12 20:25           ` Günther Starnberger
2006-10-13 13:24             ` Joerg Platte
2006-10-12 15:51 ` Lee Revell
2006-10-12 16:55   ` Günther Starnberger
2006-10-12 17:05     ` Lee Revell
2006-10-12 20:30   ` Günther Starnberger
2006-10-12 20:37     ` Lee Revell
2006-10-12 15:56 ` Lee Revell
2006-10-12 16:10   ` Jan Engelhardt
2006-10-12 16:19     ` Lee Revell
2006-10-12 22:02       ` Jan Engelhardt
     [not found] ` <200611100803.03958.lists@naasa.net>
     [not found]   ` <20061109231958.f18cd1ef.akpm@osdl.org>
2006-11-11 12:29     ` Joerg Platte
2006-11-11 12:39       ` Arjan van de Ven
2006-11-11 13:15         ` Joerg Platte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox