From: Jeff Dike <jdike@addtoit.com>
To: olivier.crameri@epfl.ch
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] system call accessing the host os
Date: Wed, 5 Apr 2006 21:43:38 -0400 [thread overview]
Message-ID: <20060406014338.GB6924@ccure.user-mode-linux.org> (raw)
In-Reply-To: <b54af0b00604051320l54bab57ag311746325c887d7f@mail.gmail.com>
On Wed, Apr 05, 2006 at 10:20:44PM +0200, Olivier Crameri wrote:
> Thanks for the answer. I bumped CONFIG_KERNEL_STACK_ORDER to 3, but it
> doesn't help.
I didn't think so, since the symptoms were wrong. However, keep that
in the back of your mind since you're dealing with some piggy parts of
libc.
> When I said that using malloc didn't work, I meant the following: I'm
> using malloc to allocate a buffer in the UML kernel. I'm not passing a
> user level buffer to the system call.
38K isn't big enough for it to fall back to vmalloc, so the pages not
being present probably isn't an issue.
> Then, when I use fread to read
> my file into this buffer, if I read a small number of bytes, it works.
> However when I try to fread the entire file (38k), fread returns 0.
What's the break point between working and non-working?
> Later on, I use sscanf to parse my buffer. No matter what happens,
> sscanf returns 0, which is wrong even if there is no error. The exact
> same code compiled in the host works perfectly.
This, I don't understand.
What version of UML are you using?
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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:[~2006-04-06 2:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-05 17:16 [uml-devel] system call accessing the host os Olivier Crameri
2006-04-05 17:18 ` D. Bahi
2006-04-05 18:18 ` Jeff Dike
2006-04-05 20:20 ` Olivier Crameri
2006-04-06 1:43 ` Jeff Dike [this message]
2006-04-06 7:18 ` Olivier Crameri
2006-04-07 0:20 ` Blaisorblade
2006-04-06 23:42 ` Jeff Dike
2006-04-07 8:20 ` Olivier Crameri
[not found] <946EDC7F-5F36-4453-93E8-36BBC8D9F032@epfl.ch>
2006-04-05 17:24 ` Olivier Crameri
2006-04-05 17:28 ` D. Bahi
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=20060406014338.GB6924@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=olivier.crameri@epfl.ch \
--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