Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp457394rwr; Wed, 3 May 2023 00:52:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mkR7/n/Pyw47sz9hzF/sSrYw7CK/YcfQoXdvsahi6XqQq4G/hRqtfS25hPcOdzAn5ZYxC X-Received: by 2002:a05:6a00:1955:b0:63b:6911:8928 with SMTP id s21-20020a056a00195500b0063b69118928mr28018039pfk.3.1683100324066; Wed, 03 May 2023 00:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683100324; cv=none; d=google.com; s=arc-20160816; b=T0B4FGCiVgL9Ve1pwJbMtWhn8fbcGASlv4sReV0gD/hx55eIhJOmvUtIwJ851viDQB WrIP0lbPhB8NP+VzUk66m6cRSUsyiDNX+arNZneJVHj6osA+3MD6KztMcelqqii9YPNZ CafVJs82tPChiteVfN0IqZafT2TozbdQoMkyFhvN/TMhxuayvrgUPTMrp1rsdyonULsc YXW1IlrHhRGmNdCLi2ePOnEAHp8eqoXMAr9y0dlD9S7FaF8OjwKquWKeHEOFK888WnI7 jWoEY7WfCLbWgf3UEM2Ts4mGBvqX9wwhGjfBZ55UPMJeZBL9v8WcSADRZXNip6XS6nDw KpJg== 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=vE/ZqILzfvZWd4rot3GcUptJ3pMzFJC66caayH1dCe0=; b=k0Cmqj4wjmAF+njQunapx0ffGM55HGXR6i2M4MHN1d++bUf3fdEpZ/ZcUByu1R5407 FEvTzcYowN5IdXQc3zLZnn34tGEwH4WikW2cTpPzM4ABcQKy2ucJVg3KmImRdnUla2g5 F1bSwyw8EuEFobP44+plYYkU1tHbRHakITqVNUn8TXoCpF0owERboTtJZklRbLHPDdC6 N4XfTCkNoircii/V2s/dW6BvmB7RyH5+tHYmmfEJlFoCdXF39IKfJjwIBDW7DXwk25/p LwnGUA9DihsUk1CA5aOSObYXuPUp1iQSITb/tByKyDBJxpKVxTkF8rAdHedK573AFmj7 8W3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=tncfUpOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020a63e843000000b0051ba9b9c3f3si28543916pgk.321.2023.05.03.00.51.49; Wed, 03 May 2023 00:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=tncfUpOe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbjECHjL (ORCPT + 99 others); Wed, 3 May 2023 03:39:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjECHjK (ORCPT ); Wed, 3 May 2023 03:39:10 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 371371997; Wed, 3 May 2023 00:39:08 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E610820079; Wed, 3 May 2023 07:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1683099546; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vE/ZqILzfvZWd4rot3GcUptJ3pMzFJC66caayH1dCe0=; b=tncfUpOeuf22PZWsQOZPjfGxENPQ6bWeS5Zzg0KWVa6nByIXgrM/jXad5KRjyoMOq9cTRa WpcrDCHFNLiXhmlPc0lNRWDLzFfikMFdjsBDSF6ZkSOyK8WMPI6FOfRJkSLZupbbrFLolo +Rlvt8SIDl9dbU55U0aIZiVhpfhfHjs= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BB17E1331F; Wed, 3 May 2023 07:39:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id v3OjLJoPUmQQVAAAMHmgww (envelope-from ); Wed, 03 May 2023 07:39:06 +0000 Date: Wed, 3 May 2023 09:39:06 +0200 From: Michal Hocko To: Suren Baghdasaryan Cc: akpm@linux-foundation.org, kent.overstreet@linux.dev, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, ldufour@linux.ibm.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Subject: Re: [PATCH 35/40] lib: implement context capture support for tagged allocations Message-ID: References: <20230501165450.15352-1-surenb@google.com> <20230501165450.15352-36-surenb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230501165450.15352-36-surenb@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On Mon 01-05-23 09:54:45, Suren Baghdasaryan wrote: [...] > +struct codetag_ctx *alloc_tag_create_ctx(struct alloc_tag *tag, size_t size) > +{ > + struct alloc_call_ctx *ac_ctx; > + > + /* TODO: use a dedicated kmem_cache */ > + ac_ctx = kmalloc(sizeof(struct alloc_call_ctx), GFP_KERNEL); You cannot really use GFP_KERNEL here. This is post_alloc_hook path and that has its own gfp context. -- Michal Hocko SUSE Labs