Message ID | 20180522095515.2735-3-david@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1C18A6016C for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 09:55:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C7191FEBA for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 09:55:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0135E28A01; Tue, 22 May 2018 09:55:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A4CB91FEBA for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 22 May 2018 09:55:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D11F46B0008; Tue, 22 May 2018 05:55:21 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C9BA96B000A; Tue, 22 May 2018 05:55:21 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B3EAC6B000C; Tue, 22 May 2018 05:55:21 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk0-f197.google.com (mail-qk0-f197.google.com [209.85.220.197]) by kanga.kvack.org (Postfix) with ESMTP id 8D1356B0008 for <linux-mm@kvack.org>; Tue, 22 May 2018 05:55:21 -0400 (EDT) Received: by mail-qk0-f197.google.com with SMTP id 65-v6so15355477qkl.11 for <linux-mm@kvack.org>; Tue, 22 May 2018 02:55:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=FUadUelGzAop5DOpr2tR6jQn6oMjSnyOmlaa4Z0xwdY=; b=Rrw7mPw4LkYaMLqzQRxH7LE+Aat2/z2XomQZuAROkf0Yhy/A2zN99Ua82Zm7EcTaGm 44esB2lXhehVqYGYpjclGF9nl7XmpF+hYcjNXvqAEhvyEbvo/pKTfUixnGIQAk/QHzcU IHhgIuGmSIpBn6+u5Drqbu8L2YsNPVnKBpNjfp1sV31K7MX3dort3fojosnToHmUZRSS YuNVYKwYodKG64mi7AXa1Ejc9c2PEcAMo7SFt7QCD8aTQZl/kEjDbVJVOKEtodB5Wpja wjpkIUapyVFqMeqCuH/diRzzbq0sVFnVhSqtPuurE+7Fqqnv96suZEGw3rK4bF50+cgd DX4A== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: ALKqPwfIkhV6f98kyogSMwec+FcaC5y5EgdQaCsGUXRFi8gFbOGW+qCu c7HQbsAXvkBGgOFscMwFuFDMfmZZMIaKwH3qj8Y5DTiL64pzqN9IUhZfv5uDWBarZwWjYX1zFRv 1RxCoH/FRMTU+NT1dTHajEjXRT/vk/bYp6rhUbM8rj6QhF28JhmEB45daAogYZ5nc+g== X-Received: by 2002:ac8:2dbb:: with SMTP id p56-v6mr22607878qta.104.1526982921397; Tue, 22 May 2018 02:55:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrLactZagBMnthhr7dv5IxFx1OA518NpFqh8YRZvpHIK8Cl3SPn86e5IW7sJBQuZmPNYX2/ X-Received: by 2002:ac8:2dbb:: with SMTP id p56-v6mr22607856qta.104.1526982920941; Tue, 22 May 2018 02:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526982920; cv=none; d=google.com; s=arc-20160816; b=GCfTDzkcRwYu8Y0gsv93odUF3Hbfw2dMRplU+BiNTk7/uirKP3Xhrl1tamFARXvu4P ddsBHGNsWSrOngf1wu0wQ9+yJmoE4/+Gupiadxjk4pransD0yIuHJVnJPTIlN1HQgGns Rl/igNjTJ2B+8TO9rxdIBn8sLhea9DZsaMR01rWILFi9Aqx9aCM5IOFkKTMDh6g4L1AN 03kNbTSn8styT1amnaN/QUZ/K7fMqaXKC12eQRuK53k/HbbjcMHs9X2Nng25blUDnmhx JaQNbkJRt+Tall2WA8T82o75JHoPqzYVOpEnWhWpgWK4E83eIOOTnAYyaLWUbMNjavVy D1dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=FUadUelGzAop5DOpr2tR6jQn6oMjSnyOmlaa4Z0xwdY=; b=o9ITtWLq/lxzX7C44jTeWZHhY64K6vcRHI6w/D61o1pynKvqtcVX6DEK6pJTVPGSl7 1Mm9sGq/eJp3TuhcP+Bbw6Cac3jfP9JeorgGy+TPJNSbGkVSoG+0TsmYHbSycooOJtES XzXtPN9+otqxQvjFMffjct7+SePyEaiv5+8C6lVcvLZ4c+KdaleCMiEe1EGaQScvs7VT Lde67pKk0WRdtz+4UK61NlDG79R7kylfvrDCdtzYgtfxq5K1CzbuA+Cxy/Z8AUsX+Y7a n4KIkIRyiC2i+n3//AH1Q14WaZwtsyadk/9Anz6/MbFsUFCzNBsYn+Z+XIeFaD/hI9Cq VTyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx3-rdu2.redhat.com. [66.187.233.73]) by mx.google.com with ESMTPS id s85-v6si650221qkl.50.2018.05.22.02.55.20 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 02:55:20 -0700 (PDT) Received-SPF: pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) client-ip=66.187.233.73; Authentication-Results: mx.google.com; spf=pass (google.com: domain of david@redhat.com designates 66.187.233.73 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 9BA827D83A; Tue, 22 May 2018 09:55:20 +0000 (UTC) Received: from t460s.redhat.com (ovpn-117-125.ams2.redhat.com [10.36.117.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6AA252026990; Tue, 22 May 2018 09:55:19 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, David Hildenbrand <david@redhat.com>, Andrey Ryabinin <aryabinin@virtuozzo.com>, Alexander Potapenko <glider@google.com>, Dmitry Vyukov <dvyukov@google.com>, kasan-dev@googlegroups.com (open list:KASAN) Subject: [PATCH v1 2/2] kasan: fix memory hotplug during boot Date: Tue, 22 May 2018 11:55:15 +0200 Message-Id: <20180522095515.2735-3-david@redhat.com> In-Reply-To: <20180522095515.2735-1-david@redhat.com> References: <20180522095515.2735-1-david@redhat.com> 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.2]); Tue, 22 May 2018 09:55:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 22 May 2018 09:55:20 +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:'' X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c index 8baefe1a674b..04b60d2b607c 100644 --- a/mm/kasan/kasan.c +++ b/mm/kasan/kasan.c @@ -892,5 +892,5 @@ static int __init kasan_memhotplug_init(void) return 0; } -module_init(kasan_memhotplug_init); +core_initcall(kasan_memhotplug_init); #endif
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. Signed-off-by: David Hildenbrand <david@redhat.com> --- mm/kasan/kasan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)