Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3160459rdb; Thu, 16 Nov 2023 01:42:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvAzgRxwrC5tCIChJDl2zKrIxKsGDDBE8EJeqMAcpZtqcLMjtsmpaPcwocYc0mcQy5Z99v X-Received: by 2002:a05:6358:70a:b0:168:f58d:7bff with SMTP id e10-20020a056358070a00b00168f58d7bffmr8356500rwj.30.1700127740538; Thu, 16 Nov 2023 01:42:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700127740; cv=none; d=google.com; s=arc-20160816; b=xBbS2mumF2eskOsUGnXAXmVZefOocoda8a0d72Mc0jlP8fCQQNUlf0m/qiry/2uRa6 b9D1ygnjQeej/2ert1poiF9HdZRQIcBEauvTt+Dqw82Mn55HWGL+Dxcw14zqY4Dc1on7 PWGj38g/vjyGsOFvg+D6LBFsjV+KEFZXEUnbuyaDMGLE/1CZGJPNkMg4v5W6i/+zok0n 4ZCQ7Bhyod3TPa/dAD+wOxVaaDfv/5t7lT/IH9v8VzCberdekEiD88uubS3h//bSEm6/ 7FTHxBr6nNWyTQitZ/13ri1SHC/jzgPBCuZCxWNIygosYHbBewlrn8OWnRP5PVsCx9jN HZmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HbQBUq6zMPZ7ORs1zmLeLhmCeGDS7R7Qw733eYdaWDY=; fh=YZa8vkdUz4pzRj6QFVU/SyYW+LsIH/Wz0o5e5dUhKFo=; b=WpPXslKov62o86aY2jurawekzD+Xl0WB8QQN4T3zG2lYcL2SbZ8AwfK4k9CLwlPj4N tci1MkbXa27/rdhwlcM9j5rJ5ys5fgH0W4KURAsAEk2DM4hwL0RB9OM9L9EJJBBG5e8O T9Xe3u/MpAnmooCyFwOiVP4iPYFrsGitpB4Cy+7Z/lR0omr38Nxp7szf2Q+7N30Qegtz i6ob4t2BjGubhyJzxXeJhcTizAUJfd1UfruWnRcNo6ST2qzQZGpQlLtac5fKLktv8X++ xkaC4r0YtlLesnkaq/AHntiB6rO7vPECXa0CWLuUKwbDGa9A4A+k/PIlq5C47FhMh8jS kJxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Gx5Phsvm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v38-20020a634826000000b00577448019b5si11812457pga.276.2023.11.16.01.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 01:42:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Gx5Phsvm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 039F7812A96B; Thu, 16 Nov 2023 01:42:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234849AbjKPJmS (ORCPT + 99 others); Thu, 16 Nov 2023 04:42:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbjKPJmR (ORCPT ); Thu, 16 Nov 2023 04:42:17 -0500 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B9019E for ; Thu, 16 Nov 2023 01:42:14 -0800 (PST) Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-db057de2b77so507528276.3 for ; Thu, 16 Nov 2023 01:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1700127733; x=1700732533; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HbQBUq6zMPZ7ORs1zmLeLhmCeGDS7R7Qw733eYdaWDY=; b=Gx5PhsvmMsmSQy3ihT4tpPP7j6KuTZToX9EDbr4inLdKRMGz52HovUOZHRAPOP1YHi 2ipifisV8I057MGg0156wIzWDSOMSKyNWlVNIy7H5l0WV+YA1gWwNjgJRm4lzJ0g/Zig e3Fq1d9RuFDN/NI5SHzRvYiyRzXfaf2MtyDOuSTIERdpWy4ZH7es6Rdn2nMqM8DDSDOS jm6U3umaLZ8fmfQOyK/Tb5+5tyN4NSc8miBvTTart/pYg2AeDL/o7YwlQxkxXlKEYHjf N2ZLOYF+gK0GMQ7IxMY6QqKEfFos2iFwPNb2o2x3+nYh7CNO9V+whWwNf+mIC34AvU2d rHRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700127733; x=1700732533; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HbQBUq6zMPZ7ORs1zmLeLhmCeGDS7R7Qw733eYdaWDY=; b=IJIO/PQ4xOOFFpUhkHEzJKRC+/jLPrMCM9FLcGtM7dtC2PlVly/kXnEITti+GiZngL 8JffVPaOweAqDe3A72uF36prLqOoy+3J9+Qs2ekNchywOxNmME/2IDYMbHz+rTEc4T6t tmcUGZWfHlqwj9NU191N2y7ATgPKsZ6yKd/rUOYqY3GkScNGc8d4wYfONZsd0+rC+Pif JDh5kYcimIWO5M0hLFq+4M0cC3Ud6IQesnhwSYniKMwtBuhFS9YC3Ilb7jPr1rqhx0MZ wBYW0xBMz+f5JmwORwzAX+65cd3GajOslgSzoahE68fb2X8Zh6Il/OX3GtXwDABKmUur RpkA== X-Gm-Message-State: AOJu0Yxxy0e55O0dqn7WBrD2eR19hdEDXuj238M91aZNhjIdcrlsx+KL UUVMiyvSK8Ymq2K9qjapldFBdAJeeZuauMV3k8rejg== X-Received: by 2002:a25:c70e:0:b0:da0:411b:ef19 with SMTP id w14-20020a25c70e000000b00da0411bef19mr14634881ybe.1.1700127733310; Thu, 16 Nov 2023 01:42:13 -0800 (PST) MIME-Version: 1.0 References: <20231115203401.2495875-1-iii@linux.ibm.com> <20231115203401.2495875-4-iii@linux.ibm.com> In-Reply-To: <20231115203401.2495875-4-iii@linux.ibm.com> From: Alexander Potapenko Date: Thu, 16 Nov 2023 10:41:33 +0100 Message-ID: Subject: Re: [PATCH 03/32] kmsan: Disable KMSAN when DEFERRED_STRUCT_PAGE_INIT is enabled To: Ilya Leoshkevich Cc: Alexander Gordeev , Andrew Morton , Christoph Lameter , David Rientjes , Joonsoo Kim , Marco Elver , Masami Hiramatsu , Pekka Enberg , Steven Rostedt , Vasily Gorbik , Vlastimil Babka , Christian Borntraeger , Dmitry Vyukov , Hyeonggon Yoo <42.hyeyoo@gmail.com>, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mark Rutland , Roman Gushchin , Sven Schnelle Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 01:42:19 -0800 (PST) On Wed, Nov 15, 2023 at 9:34=E2=80=AFPM Ilya Leoshkevich wrote: > > KMSAN relies on memblock returning all available pages to it > (see kmsan_memblock_free_pages()). It partitions these pages into 3 > categories: pages available to the buddy allocator, shadow pages and > origin pages. This partitioning is static. > > If new pages appear after kmsan_init_runtime(), it is considered > an error. DEFERRED_STRUCT_PAGE_INIT causes this, so mark it as > incompatible with KMSAN. In the future we could probably collect the deferred pages as well, but it's okay to disable KMSAN for now. > Signed-off-by: Ilya Leoshkevich Reviewed-by: Alexander Potapenko