From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] bad panic "Kernel stack overflow" - demo exploit
Date: Tue, 17 Aug 2004 17:40:51 +0200 [thread overview]
Message-ID: <200408142332.22142.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <200407032025.52944.blaisorblade_spam@yahoo.it>
Alle 20:25, sabato 3 luglio 2004, BlaisorBlade ha scritto:
> Alle 21:33, giovedì 1 luglio 2004, BlaisorBlade ha scritto:
About this hunk of the patch, sorry. I tested the patch well, then I added
this part without testing, and understood this a lot of time after. Sorry.
Since CONFIG_KERNEL_STACK_ORDER is usually 2, THREAD_SIZE becomes 16k (I've
just realized this). So this hunk is wrong. The rest works very happily.
> uml-linux-2.6.7/arch/um/kernel/process_kern.c~check_is_user_before_panic
2004-07-03 16:41:39.473637592 +0200
> +++ uml-linux-2.6.7-paolo/arch/um/kernel/process_kern.c 2004-07-03
17:53:21.867574296 +0200
> @@ -165,7 +165,7 @@ int copy_thread(int nr, unsigned long cl
> {
> p->thread = (struct thread_struct) INIT_THREAD;
> p->thread.kernel_stack =
> - (unsigned long) p->thread_info + 2 * PAGE_SIZE;
> + (unsigned long) p->thread_info + THREAD_SIZE;
> return(CHOOSE_MODE_PROC(copy_thread_tt, copy_thread_skas, nr,
> clone_flags, sp, stack_top, p, regs));
> }
> _
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-08-20 10:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-28 11:39 [uml-devel] Patch for arch/um/kernel/trap_kern.c to fix bad panic azu
2004-06-29 18:34 ` BlaisorBlade
2004-06-30 10:04 ` [uml-devel] bad panic "Kernel stack overflow" - demo exploit azu
2004-07-01 12:01 ` BlaisorBlade
2004-07-01 13:34 ` BlaisorBlade
2004-07-01 17:57 ` Alex Züpke
2004-07-01 19:33 ` BlaisorBlade
2004-07-03 18:25 ` BlaisorBlade
2004-08-17 15:40 ` BlaisorBlade [this message]
2004-08-20 15:09 ` Jeff Dike
2004-09-05 16:41 ` BlaisorBlade
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=200408142332.22142.blaisorblade_spam@yahoo.it \
--to=blaisorblade_spam@yahoo.it \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox