From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoann Padioleau To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Thu, 5 Jun 2014 01:23:22 +0000 Message-ID: <7D1034D6-A3F6-41A6-BDB3-7E711675137A@fb.com> Content-Type: text/plain; charset="us-ascii" Content-ID: <756A68293EB1DE4EB645FF640EC61A9A@fb.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [9fans] other kernel bug Topicbox-Message-UUID: f5323c60-ead8-11e9-9d60-3106f5b1d025 Hi, I think I've found another one :) in confinit() we do: kmem -=3D 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 =3D xalloc(conf.nswppo*sizeof(Page*)); so in confinit() it should be conf.nswppo*sizeof(Page*)