Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp737255imm; Wed, 23 May 2018 04:54:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrhoW6SPfDfJZzlA10iknESAbmLfMZmQ6YprCVRFhyMZEMqbWdrROR7qXjwiQjsI4pGG1hv X-Received: by 2002:a17:902:bb93:: with SMTP id m19-v6mr2643073pls.74.1527076472767; Wed, 23 May 2018 04:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527076472; cv=none; d=google.com; s=arc-20160816; b=pKtfmxwFiYZxhZavAXWZEWHBvFoPp7pTdwYvnwNVfhfWg4lEFGS99HUyWSunxJsEq+ 2q2+N+mE7oBvudt5BOZNAH3BLK6jCe/iXxioOPMyd158nkqyU7vdbt7wG4wBDVorZnr9 DDc0SAI5z1WwLnMVznWuMThAVE1z18pqIJjK78t9dEqpWQYh1oND0kOQ2hXxIkf9Jeyd P2LSDDdw/OIIE2j+mhJc4yC4RHDQX72Bg4u3z85kBDHTFCiT7lY5TDz4L7ap/0+3fNH3 CibplFsThU3wvZgfl2XlZWtLlyc78nUSEx1cA38huLkM42GVgk2JFMhdKa/1hRacwSFW tmnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=jZUprKAVtUzdPO2pl2mDpkYlWBwmjWcSwRB0OGtREXM=; b=Xj/iYPN7XAYXCy6cV7BSYcpMbv8/QaE6lf9lvWI9d0+dfO4SoBT35EwjJo1AavhEVA dyH2rhfBoRjSE/L2oJ7AfLEHSNVc/bcOgA0/XyM0jZZgzZcUxtu0zSoAukaDMzKm68NN rQbx8kt2f23rlA5fHCavVhHFe8Zbr0NiazZirxi9ZKXZh3/zERfkJRAVRSplHbbrF2ws WFzM76veyZtgntlj0uNpEZwvMrakONx8dmpcKMYngWRMN/pPG2Oi7zwJN6ohfjF9lH6u ZF4ksAC5rgvGdsV34Om167HPl4f7wNDvoh59/L1y4YRHAicU6PA8WvnX4/9MEboVbCo6 escw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17-v6si1829492plp.485.2018.05.23.04.54.18; Wed, 23 May 2018 04:54:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932843AbeEWLwL (ORCPT + 99 others); Wed, 23 May 2018 07:52:11 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59172 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932629AbeEWLwK (ORCPT ); Wed, 23 May 2018 07:52:10 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B9A66401EF09; Wed, 23 May 2018 11:52:09 +0000 (UTC) Received: from [10.36.118.54] (unknown [10.36.118.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 438C12024CCE; Wed, 23 May 2018 11:52:05 +0000 (UTC) Subject: Re: [PATCH v2 2/2] kasan: fix memory hotplug during boot To: Andrey Ryabinin , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexander Potapenko , Dmitry Vyukov , "open list:KASAN" References: <20180522100756.18478-1-david@redhat.com> <20180522100756.18478-3-david@redhat.com> <09c36096-f8c8-b9e9-0bed-113e494f159a@virtuozzo.com> <20180522140735.71dcd92e7b013629a7f15f91@linux-foundation.org> <6642e0d8-671c-1c1e-3ae8-99ac34c3b667@virtuozzo.com> From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <4ec53da0-bdf6-9db4-b70b-6a05c4d40161@redhat.com> Date: Wed, 23 May 2018 13:52:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <6642e0d8-671c-1c1e-3ae8-99ac34c3b667@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 23 May 2018 11:52:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 23 May 2018 11:52:09 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23.05.2018 11:59, Andrey Ryabinin wrote: > > > On 05/23/2018 12:07 AM, Andrew Morton wrote: >> On Tue, 22 May 2018 22:50:12 +0300 Andrey Ryabinin wrote: >> >>> >>> >>> On 05/22/2018 07:36 PM, David Hildenbrand wrote: >>>> On 22.05.2018 18:26, Andrey Ryabinin wrote: >>>>> >>>>> >>>>> On 05/22/2018 01:07 PM, David Hildenbrand wrote: >>>>>> Using module_init() is wrong. E.g. ACPI adds and onlines memory before >>>>>> our memory notifier gets registered. >>>>>> >>>>>> This makes sure that ACPI memory detected during boot up will not >>>>>> result in a kernel crash. >>>>>> >>>>>> Easily reproducable with QEMU, just specify a DIMM when starting up. >>>>> >>>>> reproducible >>>>>> >>>>>> Signed-off-by: David Hildenbrand >>>>>> --- >>>>> >>>>> Fixes: fa69b5989bb0 ("mm/kasan: add support for memory hotplug") >>>>> Acked-by: Andrey Ryabinin >>>>> Cc: >>>> >>>> Think this even dates back to: >>>> >>>> 786a8959912e ("kasan: disable memory hotplug") >>>> >>> >>> Indeed. >> >> Is a backport to -stable justified for either of these patches? >> > > I don't see any reasons to not backport these. > The first one fixes failure to online memory, why it shouldn't be fixed in -stable? > The second one is fixes boot crash, it's definitely stable material IMO. > Agreed, at least the second one should be cc stable, as I can reproduce it with a simple QEMU command. -- Thanks, David / dhildenb