From: cinap_lenrek@felloff.net
To: 9front@9front.org
Subject: Re: [9front] stats(1) suicide
Date: Sat, 9 Aug 2014 17:42:25 +0200 [thread overview]
Message-ID: <85ce5f14cc01e339c5d77bcbbb37af15@felloff.net> (raw)
In-Reply-To: <7DA01EF3-861B-4638-B9E7-A03D7933956D@ar.aichi-u.ac.jp>
many thanks kenji. i see whats wrong now. the bug is in iobufinit().
xiop = ialloc(niob * RBUFSIZE, 0);
niob is uint so we get 32bit result.
iobufinit+0x114 0x000000000021ecd2 MOVL niob(SB),BP
iobufinit+0x11b 0x000000000021ecd9 SHLL $0xe,BP /* multiplication by shift */
iobufinit+0x11e 0x000000000021ecdc MOVL BP,BP
iobufinit+0x120 0x000000000021ecde MOVL $0x0,0x8(SP)
iobufinit+0x128 0x000000000021ece6 CALL ialloc(SB)
you must have raised fsmempercent so that it used more than 4g
for buffers causing the overflow.
i pushed fix now that does 64bit multiplications on amd64 so it
should work now after pull and recompiling cwfs and kernel.
--
cinap
next prev parent reply other threads:[~2014-08-09 15:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 2:51 sl
2014-08-07 11:56 ` [9front] " cinap_lenrek
2014-08-08 7:45 ` arisawa
2014-08-08 16:01 ` sl
2014-08-08 21:30 ` arisawa
2014-08-08 21:44 ` sl
2014-08-08 22:35 ` arisawa
2014-08-08 22:57 ` cinap_lenrek
2014-08-09 6:05 ` arisawa
2014-08-09 15:42 ` cinap_lenrek [this message]
2014-08-09 22:46 ` arisawa
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=85ce5f14cc01e339c5d77bcbbb37af15@felloff.net \
--to=cinap_lenrek@felloff.net \
--cc=9front@9front.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;
as well as URLs for NNTP newsgroup(s).