From: "Hyok S. Choi" <hyok.choi@samsung.com>
To: Linux-Kernel List <linux-kernel@vger.kernel.org>,
uClinux development list <uclinux-dev@uclinux.org>
Subject: [PATCH 2/4] nommu - nommu patch for fs/namei.c
Date: Sat, 07 May 2005 17:12:21 +0900 [thread overview]
Message-ID: <0IG400CRB1JBSY@mmp1.samsung.com> (raw)
nommu patch against 2.6.12-rc3-mm3, fs/namei.c, do_getname() :
to test the segment if it is KERNEL_DS or not is valid for nommu
architecture. need to skip it if it is nommu.
Signed-off-by : Hyok S. Choi <hyok.choi@samsung.com>
Index: linux-2.6.12-rc3-mm3/fs/namei.c
================================================================
--- linux-2.6.12-rc3-mm3/fs/namei.c 2005-05-06 09:58:39.000000000 +0900
+++ linux-2.6.12-rc3-mm3-hsc0/fs/namei.c 2005-05-06
17:45:01.000000000 +0900
@@ -116,12 +116,14 @@
int retval;
unsigned long len = PATH_MAX;
+#ifdef CONFIG_MMU
if (!segment_eq(get_fs(), KERNEL_DS)) {
if ((unsigned long) filename >= TASK_SIZE)
return -EFAULT;
if (TASK_SIZE - (unsigned long) filename < PATH_MAX)
len = TASK_SIZE - (unsigned long) filename;
}
+#endif
retval = strncpy_from_user(page, filename, len);
if (retval > 0) {
reply other threads:[~2005-05-07 8:38 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=0IG400CRB1JBSY@mmp1.samsung.com \
--to=hyok.choi@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=uclinux-dev@uclinux.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
all inboxes | Powered by JetHome®