public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kasper Dupont <kasperd@daimi.au.dk>
To: nataraja kumar <hainattu@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: A question on kernel stack
Date: Sun, 23 Feb 2003 15:33:21 +0100	[thread overview]
Message-ID: <3E58DBB1.7849015E@daimi.au.dk> (raw)
In-Reply-To: 20030221180508.18214.qmail@web20206.mail.yahoo.com

nataraja kumar wrote:
> 
> hi,
> my apologies if i am wrong. please let me know
> why does kernel use kernel stack when process jumps
> from user mode to kernel mode. why can't user stack
> be used ?

1) The user stack is in user space, which can only be
   accessed by this process (or any sharing the same
   vm). Trying to access the stack of another process
   would fail.
2) The stack pointer is used to find the task_struct
   of the current process. You'd need another location
   for the task_struct, and a way to find it.
3) Various security issues as others have already
   mentioned.

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);

      parent reply	other threads:[~2003-02-23 14:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21 18:05 A question on kernel stack nataraja kumar
2003-02-21 18:09 ` Oliver Neukum
2003-02-21 18:27 ` Brian Gerst
2003-02-21 19:25 ` Richard B. Johnson
2003-02-23  7:43 ` cs02m023
2003-02-23 14:33 ` Kasper Dupont [this message]

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=3E58DBB1.7849015E@daimi.au.dk \
    --to=kasperd@daimi.au.dk \
    --cc=hainattu@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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