2.2.9 i386 bug?

Konstantin Boldyshev (konst@voshod.com)
Sat, 12 Jun 1999 21:24:26 +0400


This is a multi-part message in MIME format.

------=_NextPart_000_0006_01BEB519.F28EB080
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: 7bit

hello

I've noticed strange behaviour of 2.2.9 i386 kernel. Here is explanation:

If sys_exit call in a user program is missing - this program hangs and
cannot be killed.
At all (kill -9 and SysRq will not help). Even if you kill that terminal -
program itself
remains anyway. Only way to kill - reboot.

This can lead to weird things..all can be done as nonpriveleged user.

On 2.0.36 kernel such program just dumps core, on 2.2.9 it becames
immortal..
also zero lenght core file is created..

May be this affects older 2.2. series too..

Sample code is enclosed - ELF binary and asm source.

Konstantin.

------=_NextPart_000_0006_01BEB519.F28EB080
Content-Type: application/octet-stream;
name="immortal"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="immortal"

f0VMRgEBAQAAAAAAAAAAAAIAAwABAAAAdIAECDQAAACYAAAAAAAAADQAIAABACgAAwACAAEAAAB0
AAAAdIAECHSABAgAAAAAAAAAAAUAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAALnN5bXRhYgAuc3RydGFiAC5zaHN0cnRhYgAudGV4dAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAGwAAAAEAAAAGAAAAdIAECHQAAAAAAAAAAAAAAAAAAAABAAAA
AAAAABEAAAADAAAAAAAAAAAAAAB0AAAAIQAAAAAAAAAAAAAAAQAAAAAAAAA=

------=_NextPart_000_0006_01BEB519.F28EB080
Content-Type: application/octet-stream;
name="immortal.asm"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="immortal.asm"

O2ltbW9ydGFsIHByb2dyYW0KOwo7b24gMi4wLjM2IGl0IGp1c3QgZHVtcHMgY29yZQo7b24gMi4y
LjkgaXQgY2Fubm90IGJlIGtpbGxlZCBhbmQgbGl2ZXMgdGlsbCByZWJvb3QKOwo7dG8gY29tcGls
ZToKOwo7bmFzbSAtZiBlbGYgaW1tb3J0YWwuYXNtCjtsZCAtcyAtbyBpbW1vcnRhbCBpbW1vcnRh
bC5vCgoKc2VjdGlvbgkudGV4dAlhbGlnbj0wCiAgICBnbG9iYWwJX3N0YXJ0Cl9zdGFydDoK

------=_NextPart_000_0006_01BEB519.F28EB080--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/