Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp642969pxj; Thu, 13 May 2021 13:22:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz80vZlFtcmBQ9gzr+ax/Oc81YJKgfZeGfIPrdoyfhupKfuCVS0DTor/sPjBaZpCd2/tyUW X-Received: by 2002:aa7:de9a:: with SMTP id j26mr29598111edv.269.1620937322285; Thu, 13 May 2021 13:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620937322; cv=none; d=google.com; s=arc-20160816; b=BNNGHXwhGZrCf5TS0+nmNerqrGPOdUw2hIv65RbtxMX3mA5VGh8whCBfxieYMVTvmv ZMf4H27L08n9/vFD0LBU32g0fmH44TQwJsaAPswICVUkD/GT4xTFaZIRLyoRgaYQuBwi mgvyrBXjkIdVTjy9IsZhMmuC05iUdbNSieFvVTEzBaH1wqeV7U/qi7WAwv0TRkRnML8/ Eldqyiz+ho+N1pKehfLmKBueaxUjZhoiUyzgdn/4A82jrx2bjlKEB6s5iMGDUZrvY+lz bxXjEyO7BuxgC5LFFGn9oDSFx7XaZp0MrCKu/mihlkKFM2ohSI3uYcRdQkpT2fI7NrZ+ E3Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GIgBu0cXrDYQWIYcm6hEflFDTrhhfQxoWqqkLDTuF54=; b=KB0rzPyP/r8VvSjbO6LzPKHRx6GMuhN1plfqpFrizvIXnFycgGqCCgfqMAMu066Nt4 cGH57JruEDF9+djygOIIwPdtbcWX3NQuGyIbZFofaQ/S8xP2BvDZEWxs9nz5RhY/37kK GWRC6KTUUWq5b+ogjN3jBW1HAflT5AXmZVuAvpLIfUx7mIMFNxCYbg+DHu8snGj8LfvI 7OWRu3ka2huA4oVoLtRx6aQudEImlJeF6oE3g8KRJyjwZ91TYmsQwfM2pkhAnceBIOA2 RLxQx+LlH6bChYOZfIz5FGvDS99U82JEV8TLgYjPZGRHYTJyZB85ue/Zxi3M7iZQr65e pVew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TLQurYwV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fc6si3688099ejc.580.2021.05.13.13.21.37; Thu, 13 May 2021 13:22:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TLQurYwV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233831AbhEMMNk (ORCPT + 99 others); Thu, 13 May 2021 08:13:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232304AbhEMMMi (ORCPT ); Thu, 13 May 2021 08:12:38 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E841C061763 for ; Thu, 13 May 2021 05:10:17 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id p17so14242379plf.12 for ; Thu, 13 May 2021 05:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=GIgBu0cXrDYQWIYcm6hEflFDTrhhfQxoWqqkLDTuF54=; b=TLQurYwVvXYBe2o3JZtkkCkLnNKAMQzVyefuAG+6gL2FsAYPukZR4VOUws5whXNTFn fyCHs5SWFj4cc/QekoElcQts7qqvLemYLDUK8EeVn0qSvRuo8vJjb5WsNISe0b3K8/VF z6bwwDN/qr2Jj3gkuHL0RCl2ZUKy/K2A5laCP3oKa5Y7EEWitjyFNFo1fmGP4YGoameR atklHBHkxxDE7Lk3tt3HMVqWjXBFexlKNbQzaRE3C31jmR0QqQTK1xpFPK20Fj52t3rh a/kkLVLJMTjclqshyETxUoCCu50gjaD7JC1ez5va8+Vah9B76DsBfP1suZNXF9xh+Z7/ 1Jrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=GIgBu0cXrDYQWIYcm6hEflFDTrhhfQxoWqqkLDTuF54=; b=JVtRUQTHCIVh/UKzOSfTm802VyKg/fRZVVFQc/bKOzhdFKqLdx9cVJt/Kd0iBFtXH6 s7kqf13q7tUV6FlZJpukqJsIyJvHs1VmFIjJFWlDivVFpzWWey28CKP3X38WBgiFR3Wq 7vqCfE61tMgi0d8oVy4VlYmzbUmJISBBuhwn8MjyReKe08xQ81WcHbLT1LsbYAv/CYZG I/7EefIpras/ves6GRSPwyohENOncSyPieA8hXlNSBaTblCUvMNK63nSPUsStazNenE8 7nmaJ4TfGLjOh/i34Cjm3cPhAswH8IQbsvpEDl8uuSApTiYnjaZMr0j3rC3wcD7n2WG7 6UQw== X-Gm-Message-State: AOAM533/vrDi9O5qclyfBw0fiBrtvFbUpl5HnN3ZkWZ/e826DOae/yyw xXJuWSJNBoZyv9XGyNhpXM0= X-Received: by 2002:a17:902:d206:b029:ee:92d0:4405 with SMTP id t6-20020a170902d206b02900ee92d04405mr39040058ply.43.1620907816921; Thu, 13 May 2021 05:10:16 -0700 (PDT) Received: from hyeyoo ([121.135.181.35]) by smtp.gmail.com with ESMTPSA id t19sm2026073pfg.70.2021.05.13.05.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 May 2021 05:10:16 -0700 (PDT) Date: Thu, 13 May 2021 21:10:11 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Vlastimil Babka Cc: Marco Elver , Andrew Morton , iamjoonsoo.kim@lge.com, rientjes@google.com, penberg@kernel.org, cl@linux.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] mm, slub: change run-time assertion in kmalloc_index() to compile-time Message-ID: <20210513121011.GA774527@hyeyoo> References: <20210511173448.GA54466@hyeyoo> <20210512195227.245000695c9014242e9a00e5@linux-foundation.org> <20210513031220.GA133011@hyeyoo> <20210512204024.401ff3de38649d7d0f5a45e8@linux-foundation.org> <20210513062809.GA319973@hyeyoo> <90c1b2ae-a5c1-07d1-b056-5b3699b6cc77@suse.cz> <20210513120829.GB772931@hyeyoo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210513120829.GB772931@hyeyoo> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021 at 09:08:29PM +0900, Hyeonggon Yoo wrote: > I completely agree on what Vlastimil said. there should be comment > saying that generally you should not use kmalloc_index with > size_is_const == true. sorry there was human error. what I mean was: size_is_const == false