9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] other kernel bug
@ 2014-06-05  1:23 Yoann Padioleau
  2014-06-05  1:56 ` cinap_lenrek
  0 siblings, 1 reply; 10+ messages in thread
From: Yoann Padioleau @ 2014-06-05  1:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hi,

I think I've found another one :)

in confinit() we do:

    kmem -= conf.upages*sizeof(Page)
            + conf.nproc*sizeof(Proc)
            + conf.nimage*sizeof(KImage)
            + conf.nswap
            + conf.nswppo*sizeof(Page); // <- BUG

but in swapinit we actually do
    iolist = xalloc(conf.nswppo*sizeof(Page*));

so in confinit() it should be conf.nswppo*sizeof(Page*)





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-10  5:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-05  1:23 [9fans] other kernel bug Yoann Padioleau
2014-06-05  1:56 ` cinap_lenrek
2014-06-06  3:59   ` Bruce Ellis
2014-06-06  4:15     ` cinap_lenrek
2014-06-10  1:00       ` Yoann Padioleau
2014-06-10  1:07         ` erik quanstrom
2014-06-10  1:20           ` Ethan Grammatikidis
2014-06-10  4:35         ` Kurt H Maier
2014-06-10  4:46         ` cinap_lenrek
2014-06-10  5:14         ` cinap_lenrek

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).