Return-path: Received: from mx2.suse.de ([195.135.220.15]) by Galois.linutronix.de with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fEbak-0005QS-Ok for speck@linutronix.de; Fri, 04 May 2018 16:21:49 +0200 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DCFE8AF2F for ; Fri, 4 May 2018 14:21:40 +0000 (UTC) Date: Fri, 4 May 2018 16:21:40 +0200 From: Michal Hocko Subject: [MODERATED] Re: [PATCH 7/8] L1TFv3 5 Message-ID: <20180504142140.GV4535@dhcp22.suse.cz> References: <9422c9bcd3e664ce0f3a5eeadd45fa9127e0b5ba.1525403858.git.ak@linux.intel.com> <20180504134300.GU4535@dhcp22.suse.cz> <20180504141120.GD75137@tassilo.jf.intel.com> MIME-Version: 1.0 In-Reply-To: <20180504141120.GD75137@tassilo.jf.intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Fri 04-05-18 07:11:20, speck for Andi Kleen wrote: > > still applies. Just in case the previous post got lost in the noise I > > repeat that I would prefer if we issued pr_want about truncated swap > > file. It is quite a stretch to expect such a large swap storage but > > let's keep users aware of the fact just in case. > > The warning is already there in swapfile.c > > last_page = swap_header->info.last_page; > if (last_page > maxpages) { > pr_warn("Truncating oversized swap area, only using %luk out of %luk\n", > maxpages << (PAGE_SHIFT - 10), > last_page << (PAGE_SHIFT - 10)); > } right you are, I've missed that one. -- Michal Hocko SUSE Labs