Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1995921imm; Tue, 22 May 2018 12:51:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqoaYNaBM3i2zIHx2t5g3Ji1bQSB1foaSbF63RWcc4VSkMRc3tUCNC5ReiZjGVWbscAtTZN X-Received: by 2002:a65:610d:: with SMTP id z13-v6mr20413766pgu.260.1527018717791; Tue, 22 May 2018 12:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527018717; cv=none; d=google.com; s=arc-20160816; b=OWS2pdNkJc50/VA/ViDegK7cVqjcP1Iqnnn70RFdYH0xP49T7eSd4CqYdaGFoKdNx+ MFiohAqXoorvc8HSNwrj9HzssK5B+H1NQi1U67R7HXb0Po3N48ilVn8J7njUcfYq9Bs9 +Qe/XUM/lWdag/1JY5Um+T7xxkcNVTMs65dTW+K6tLKIYto2fGFVGFiQtn4xNnP1n1u/ J1+GFq02aV2h04sYcSINTBcifmCuLYTfcjypw9UOsofZcpuJbSfIN0ZHl5lTH1RxBK/e HnLi1DOUZaf3eIvFzws3p66jBJtkZa2vc/4FEZlDLsKV9xOl9bm1i3dSmfFPKiw2g5lG V4Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=wmSeWsrhAMnVAQDs9SEk6FgCI23HSnWLxpWZ5DPwi/U=; b=rU8P/XhCEthht4E73YhCZf5ObUTd66enGgRDOwWbd9nhqs3QYBR54u/PaTvCy8f/sb vs6syAYnGqwzVafUjiAvz4Fc3oFJ9vCihdpkEhlD/kvRq4wFrWSklDSBmOFcS/OToWN8 4GaEU4TZiEXU6Kx6QAB/chgvHEefKePH03urtYW0GZ+B3CVUKhyFkNRE48uMXXtfBVCW 8u8TgASj9o3YvsdCBHmRZzOrIAmGWx5CWzcJ3W09ZLNtasbC2XwPjEID3HyBQ9bUTPTv KI5BpHG14o4wo5jnZqd5pGwSkxV5RquEJ4pzabi0NDvZFFJO/7JJ15D/xcv2WVVMn5TY k0WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=bAvUMJPM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2-v6si13531654pgp.234.2018.05.22.12.51.40; Tue, 22 May 2018 12:51:57 -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; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=bAvUMJPM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbeEVTvC (ORCPT + 99 others); Tue, 22 May 2018 15:51:02 -0400 Received: from mail-ve1eur01on0102.outbound.protection.outlook.com ([104.47.1.102]:7154 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751687AbeEVTvA (ORCPT ); Tue, 22 May 2018 15:51:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wmSeWsrhAMnVAQDs9SEk6FgCI23HSnWLxpWZ5DPwi/U=; b=bAvUMJPMDAaB2VZNNxSgLAsKe0K45rA7wEMp7e4u3SV0jfPfIbp0WOsD05QKoCmuee1/gYDReDrhj8OIBvoIpdUu8uwao1io+/ti850tdTULCetWvARA4HsAdRENF97PoVGt+thq3iT8K/PdEAl4nx7zKHZrmla33VYLOTdWgo4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from [10.52.82.104] (84.47.128.244) by DB7PR08MB3258.eurprd08.prod.outlook.com (2603:10a6:5:1f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Tue, 22 May 2018 19:50:58 +0000 Subject: Re: [PATCH v2 2/2] kasan: fix memory hotplug during boot To: David Hildenbrand , linux-mm@kvack.org, Andrew Morton Cc: 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> From: Andrey Ryabinin Message-ID: <09c36096-f8c8-b9e9-0bed-113e494f159a@virtuozzo.com> Date: Tue, 22 May 2018 22:50:12 +0300 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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [84.47.128.244] X-ClientProxiedBy: AM5PR0502CA0014.eurprd05.prod.outlook.com (2603:10a6:203:91::24) To DB7PR08MB3258.eurprd08.prod.outlook.com (2603:10a6:5:1f::20) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DB7PR08MB3258; X-Microsoft-Exchange-Diagnostics: 1;DB7PR08MB3258;3:RSvPb5p53mb2dsRKtTjVLv9/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dAcsuiHFRp4YX7/jEcarsr+NHrsigAwiSBPM4VVnM29nykZG9Acgct34Bmqyx5m+MEmXGdc9PxiVJWa/JLmQ09rtRykKk7qyMwjOINiQdSDqe7DJEuOhmcVVxS17IKGL7wfTJ2hNk51LNgigFO58F5twrNpBZGNDEQGqVuZy0DEBXljCJyyitcWVrB0NOczbg4zx4kGdavqHG2zwqg/bTPQCKOJ2D9cIyqG7UGoPbg7s9eSWKyj/g86l7fnN3Th34AVDyCCT3a5g0pTaIFwT1nKTwOIiIGRVJ05HmNtMkHsNAAEAB6DQbg4Z;4:NpKf/MFp++pQr+FY2kWTY0c240EwagDULAbqeDerR6fb9s70FNYcFsGoiKXBKvd7+PNK6/vESMBbpY54eutnJYXEJltM+/lEYqjAmBvt0yCxIz9tA6NZ3qw5/pF28x3qr3M9i4bDpvMNPRa1uwZJtQdsCUBNNgDB+NLBQILY4JwRLLtD358CJOaNJtVJviM6WPv7AsTelV+5hepc4JmhJgkpPLamFT2FHHnGas/6yMpVvWCtE/ITrScWmT+7PDp7m6lFaJ18ojT29qDVxq4zaC+qCkyPm9y3AqVC6v4gx1wGE9cQ+siwOd/9ByLoTE9z X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:DB7PR08MB3258;BCL:0;PCL:0;RULEID:;SRVR:DB7PR08MB3258; X-Forefront-PRVS: 0680FADD48 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6049001)(376002)(39380400002)(39850400004)(366004)(346002)(396003)(199004)(189003)(8936002)(230700001)(36756003)(110136005)(5660300001)(386003)(58126008)(54906003)(77096007)(26005)(16526019)(186003)(106356001)(11346002)(956004)(446003)(25786009)(316002)(97736004)(16576012)(53546011)(68736007)(64126003)(86362001)(65826007)(31696002)(8676002)(47776003)(65956001)(65806001)(66066001)(305945005)(478600001)(6666003)(486006)(81156014)(476003)(3846002)(76176011)(2906002)(31686004)(105586002)(23676004)(81166006)(229853002)(53936002)(6116002)(2486003)(4326008)(50466002)(52146003)(93886005)(2616005)(52116002)(6246003)(7736002)(6486002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB7PR08MB3258;H:[10.52.82.104];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjdQUjA4TUIzMjU4OzIzOk5HRmFBN25PSm9sUGUxeHdiRG1nMWtUaHlp?= =?utf-8?B?U1VQOFVPdGEzTjNEd21yK2cxNUpxMFdyVWdOL01pVWNwUVVSMDlicTl3aXk0?= =?utf-8?B?MWVqWmxvNUsxbnRnMmZwTC9KTVgvd1BvZTAyK056OVIxZ1NIM0o4U0I0OHZo?= =?utf-8?B?cHhiWUJWaFk2OHdTYk1vOEM1c0hFdUFRdTF0YzVqRU9XTDlYQlBTcU1kYUtY?= =?utf-8?B?dlF6TjFLYlRVNFUyTWJNK1VROXM3K29qOFlhZVY1dGNDRWk2aXlMM25XeG50?= =?utf-8?B?MFdpRkthWGwwRS9lL0lRMThBWStGczF6SHZpc243dEVJTDhzRWw0bU9wV284?= =?utf-8?B?Z2RBVk1oOHo4M1dGOXNPaWlJdzlaMGFRQTNkRGo0QldoZGxFSlFWLy9GVmlp?= =?utf-8?B?anRoSUxaZGNwb3VOZEFKdTl1S0E0eXJYNWZiOTZiYUNRZzJsRGlqN3NyaWxv?= =?utf-8?B?eTd2RTRCeFplMVhWVm1URUc0NUxoUVk1dFV3Z25rUFc1N2hiU3I3ZnpXUklH?= =?utf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dYot3Z6J/Umg74rD+QMD29CPLtXp4Ce7wTK4VElR0= X-MS-Office365-Filtering-Correlation-Id: 3f0c6b4a-ecf3-4a45-f187-08d5c01d56fc X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2018 19:50:58.2388 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f0c6b4a-ecf3-4a45-f187-08d5c01d56fc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3258 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.