From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
To: linux-mm@kvack.org, linux-kernel@vger.rutgers.edu
Subject: question for ia32/linux experts
Date: Thu, 6 May 1999 19:00:27 -0700 (PDT) [thread overview]
Message-ID: <199905070200.TAA88193@google.engr.sgi.com> (raw)
Hi all,
I have a question about the RESTORE_ALL macro in
kern/arch/i386/kernel/entry.S.
The macro seems to imply that the "popl %ds", "popl %es" and
"iret" might take faults/exceptions. Exactly how can you
force these conditions in Linux? It seems to me that a user
program can not just fill in arbitrary values into ds/es
before a system call (since the processor would check the
validity of the segment register contents at load time in
user space), forcing the kernel to take the exception path
for the popl's.
The "iret" might have a problem, possibly if the user
invoked a system call that unmapped his code or stack, but
it seems to me that should cause page_fault from a user
mode eip (instead of from kernel mode with the eip pointing
to the iret instruction). What else can force an exception in
this case?
Thanks. Please CC me (kanoj@engr.sgi.com) on any replies.
Kanoj
PS - Any code snippets that trigger these conditions will be
greatly appreciated ...
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
reply other threads:[~1999-05-07 2:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=199905070200.TAA88193@google.engr.sgi.com \
--to=kanoj@google.engr.sgi.com \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.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