From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 935E9CA9EA0 for ; Mon, 28 Oct 2019 08:45:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 55093214AF for ; Mon, 28 Oct 2019 08:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572252301; bh=dZ6FLCsQxObMJCgR5PzcGKpgiqh8ZNo3SCLPQXysdP4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=zUH7pP2S6ViyXvE4X+Q0L1TceaOiqwhEr8ss4FooVFJ/HfDkcCPP+Lc8lnWgx3rzT thRFQNb5WO1u/MUFlGN/rWKVNWRgtYMb3nmUSauopfEpLTkOgXMx0HP7GmfYFqY7Ir +Tz/Rqov5B4CVwTTRWCPNqWWph47rx77q59NLILg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731623AbfJ1IpB (ORCPT ); Mon, 28 Oct 2019 04:45:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:56666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731611AbfJ1IpA (ORCPT ); Mon, 28 Oct 2019 04:45:00 -0400 Received: from localhost (unknown [91.217.168.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A7DBB20717; Mon, 28 Oct 2019 08:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572252300; bh=dZ6FLCsQxObMJCgR5PzcGKpgiqh8ZNo3SCLPQXysdP4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hl1Grj6N/ezbgF5xVfO+XwWfUGLDX+0dHLihGTyC2lDIsniCvcfObGldllfFzrp3e gbqDhV9lKOLsopBaF+GYhhN0lqY7yAyycj2Hyz0vrtjxAsfAPei4XGP0YXQ1HvVK88 Yv0WcQxo/tunXGvZ9w3pCOhyjuybXDklMcrcKtps= Date: Mon, 28 Oct 2019 04:44:57 -0400 From: Sasha Levin To: gregkh@linuxfoundation.org Cc: david@redhat.com, akpm@linux-foundation.org, mhocko@kernel.org, n-horiguchi@ah.jp.nec.com, stable@vger.kernel.org, torvalds@linux-foundation.org Subject: Re: FAILED: patch "[PATCH] mm/memory-failure.c: don't access uninitialized memmaps in" failed to apply to 4.14-stable tree Message-ID: <20191028084457.GJ1560@sasha-vm> References: <1572183691251118@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1572183691251118@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Sun, Oct 27, 2019 at 02:41:31PM +0100, gregkh@linuxfoundation.org wrote: > >The patch below does not apply to the 4.14-stable tree. >If someone wants it applied there, or to any other stable or longterm >tree, then please email the backport, including the original git commit >id to . > >thanks, > >greg k-h > >------------------ original commit in Linus's tree ------------------ > >>From 96c804a6ae8c59a9092b3d5dd581198472063184 Mon Sep 17 00:00:00 2001 >From: David Hildenbrand >Date: Fri, 18 Oct 2019 20:19:23 -0700 >Subject: [PATCH] mm/memory-failure.c: don't access uninitialized memmaps in > memory_failure() > >We should check for pfn_to_online_page() to not access uninitialized >memmaps. Reshuffle the code so we don't have to duplicate the error >message. > >Link: http://lkml.kernel.org/r/20191009142435.3975-3-david@redhat.com >Signed-off-by: David Hildenbrand >Fixes: f1dd2cd13c4b ("mm, memory_hotplug: do not associate hotadded memory to zones until online") [visible after d0dc12e86b319] >Acked-by: Naoya Horiguchi >Cc: Michal Hocko >Cc: [4.13+] >Signed-off-by: Andrew Morton >Signed-off-by: Linus Torvalds I took in 83b57531c58f4 ("mm/memory_failure: Remove unused trapno from memory_failure") for 4.14 to address this. -- Thanks, Sasha