From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756035AbbFPHn0 (ORCPT ); Tue, 16 Jun 2015 03:43:26 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43683 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751989AbbFPHnS (ORCPT ); Tue, 16 Jun 2015 03:43:18 -0400 Date: Tue, 16 Jun 2015 09:43:09 +0200 From: Michal Hocko To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Darren Hart , Hans de Goede , Ben Skeggs , Stuart Hayes , Matthew Garrett , Andrew Morton , platform-driver-x86@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: Possible broken MM code in dell-laptop.c? Message-ID: <20150616074308.GB24296@dhcp22.suse.cz> References: <201506141105.07171@pali> <20150615211816.GC16138@dhcp22.suse.cz> <201506152327.59907@pali> <20150616063346.GA24296@dhcp22.suse.cz> <20150616071523.GB5863@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150616071523.GB5863@pali> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 16-06-15 09:15:23, Pali Rohár wrote: [...] > Michal, thank you for explaining this situation! > > Darren, I will prepare patch which will fix code and use __free_page(). > > (Btw, execution on fail_rfkill label caused kernel panic) I am sorry, I could have made it more clear in the very first email. A panic is to be expected because free_page will translate the given address to a struct page* but this is what the code gave it. So an unrelated struct page would be freed (or maybe an invalid one). -- Michal Hocko SUSE Labs