From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Rob Landley <rob@landley.net>
Subject: Re: [uml-devel] Do we care about 4k stacks?
Date: Tue, 22 Nov 2005 20:24:30 +0100 [thread overview]
Message-ID: <200511222024.31218.blaisorblade@yahoo.it> (raw)
In-Reply-To: <200511210019.36848.rob@landley.net>
On Monday 21 November 2005 07:19, Rob Landley wrote:
> Just curious if this is at all relevant to us, in light of the "yank 8k
> stacks" patch proposed...
>
> $ make checkstack
> objdump -d vmlinux $(find . -name '*.ko') | \
> perl /home/landley/linux-2.6.15-rc1/scripts/checkstack.pl i386
That's _SO_ much? Ouch... I now understand a lot more why Al Viro removed
printf from UML usage (I tried to use printf rather than printk to report
that a console channel is disabled; I later solved the problem with the
kernel sprintf + a direct write() on stdout).
> 0xa010ddcf buffered_vfprintf: 33168
> 0xa010deca buffered_vfprintf: 33168
> 0xa00e5d5b buffered_vfprintf: 8416
> 0xa00e5e43 buffered_vfprintf: 8416
> 0xa0121ffb __res_vinit: 8256
> 0xa012293a __res_vinit: 8256
> 0xa011199c phys_pages_info: 8212
> 0xa01117bf __get_nprocs: 8208
> 0xa010a426 _IO_vfwprintf: 4376
> 0xa00ebe33 _IO_wfile_seekoff: 4280
> 0xa00ec0b9 _IO_wfile_seekoff: 4280
> 0xa00f8626 __unix_grantpt: 4252
> 0xa00f848f grantpt: 4188
> 0xa01103c6 execle: 4140
Ok, the two below functions are plain dumb - there's a MAXPATHLEN (i.e.
PATH_MAX i.e. 4096) array on the stack, and they could happily be fixed.
All the rest seems plain glibc code and thus unfixable.
> 0xa0005119 make_uml_dir: 4124
> 0xa00051bd make_uml_dir: 4124
> 0xa0023dc0 make_tempfile: 4124
> 0xa0023e5a make_tempfile: 4124
> 0xa00e01d7 openpty: 4124
> 0xa011cd40 _dl_get_origin: 4112
> 0xa011cdc4 _dl_get_origin: 4112
>
> Rob
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
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:[~2005-11-22 19:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 6:19 [uml-devel] Do we care about 4k stacks? Rob Landley
2005-11-21 14:56 ` Jeff Dike
2005-11-22 19:24 ` Blaisorblade [this message]
2005-11-23 4:44 ` Rob Landley
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=200511222024.31218.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=rob@landley.net \
--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