Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3685693rwb; Mon, 5 Sep 2022 16:56:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR5MEvDAWCbMZ4OMvNEu+7xmZ4LIdnnKjKrLIiCTKU3YeIleWcAItbDvOMEZVH6JEqPNdbfZ X-Received: by 2002:a17:90b:4a02:b0:1fe:2b10:f5a3 with SMTP id kk2-20020a17090b4a0200b001fe2b10f5a3mr22244481pjb.186.1662422169517; Mon, 05 Sep 2022 16:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662422169; cv=none; d=google.com; s=arc-20160816; b=luPisGpAHj2wNAFOfspH1aq5ZeUtw8+WyQvebzqC5UOXaKcWIw4hhhFGagY59Ds75l fs1CaVxJsau1uPAmwgZX/2zUiIDOn8K+JlkEeBMmgYVAXrB3KNDQKC/iqVq14gzQ003R bwNDTP/R5i/yIpehxmQgOS7PyPz1fdU01/c/RQzyDFjeUd6v2SYZF1B+cwdRgJdKU5O3 +21aQ6YusU+ac6qGwouDbix2sOBkq4ed5L1GiKUSzuMzH20Ug6k0D8pjD2Ob3OD1cgqG emU/rWsEfPH+aqooPRNjKthrEIdbnTqZnVIVWUg2FUATQGopo+Kzc63jid1zs4FsWWv+ uzWQ== 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:dkim-signature:date; bh=aV58+8xM7vZiC+ARHrNwrMa2NOiuYoscS5I3pyUTgBc=; b=jwGzxGCHwflRpAPg8cK+Jp47fqpofbFst2NwKEK9Egyo0KDbHx6wUws6CeWlt+GZUC dE2jXwdc50Y0PdVvU8uPo+DiHQwhGbL4AxcYvXCIf4xpC7dmib6MYdOoT+3YPBTmAirg GuEIW1Vc8BPvfDPMsz+Wrkv4PaUSP6CwpRph1mUJ4x5KWhPCwXJ9Mbbifr0Ni5QiqBTx XYEBtLb3LNRCIQAmmebw8LBAu4b+nHhL8Y/D9ms+XQPdhdXy6CBNvybHFD8t4Hk9cFTK QjObnw8bj6TDnBWPUSJQ5/O1q+Nj9rwCSYz528iN3IFImw5Gqt0Y+oyuLwwVUU18eVLj iUig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="g/enLV1J"; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a170902ccca00b00176955c81eesi7061819ple.247.2022.09.05.16.55.56; Mon, 05 Sep 2022 16:56:09 -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=@linux.dev header.s=key1 header.b="g/enLV1J"; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232306AbiIEXrz (ORCPT + 99 others); Mon, 5 Sep 2022 19:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbiIEXrx (ORCPT ); Mon, 5 Sep 2022 19:47:53 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0C99459A6; Mon, 5 Sep 2022 16:47:51 -0700 (PDT) Date: Mon, 5 Sep 2022 19:46:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1662421670; h=from:from:reply-to:subject:subject: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=aV58+8xM7vZiC+ARHrNwrMa2NOiuYoscS5I3pyUTgBc=; b=g/enLV1JWMwpy1AyXIuK4kHtWcmra4fxFsTUcPxQ3hUWakh3HZFxjFpnVO9NhK3wjScc9f irWUYVuNDjD8ENf7YkMd2RUCrJ2/ViqqPY2BhztGYYDjlWUSm+DOVdUpVQh8M2jqIup2FQ tYI+IaNim7kGQArVz8zbq85hmG2o2lA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Michal Hocko Cc: Suren Baghdasaryan , Mel Gorman , Peter Zijlstra , Andrew Morton , Vlastimil Babka , Johannes Weiner , Roman Gushchin , Davidlohr Bueso , Matthew Wilcox , "Liam R. Howlett" , David Vernet , Juri Lelli , Laurent Dufour , Peter Xu , David Hildenbrand , Jens Axboe , mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, changbin.du@intel.com, ytcoode@gmail.com, Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Benjamin Segall , Daniel Bristot de Oliveira , Valentin Schneider , Christopher Lameter , Pekka Enberg , Joonsoo Kim , 42.hyeyoo@gmail.com, Alexander Potapenko , Marco Elver , Dmitry Vyukov , Shakeel Butt , Muchun Song , arnd@arndb.de, jbaron@akamai.com, David Rientjes , Minchan Kim , Kalesh Singh , kernel-team , linux-mm , iommu@lists.linux.dev, kasan-dev@googlegroups.com, io-uring@vger.kernel.org, linux-arch@vger.kernel.org, xen-devel@lists.xenproject.org, linux-bcache@vger.kernel.org, linux-modules@vger.kernel.org, LKML Subject: Re: [RFC PATCH 00/30] Code tagging framework and applications Message-ID: <20220905234649.525vorzx27ybypsn@kmo-framework> References: <20220831084230.3ti3vitrzhzsu3fs@moria.home.lan> <20220831101948.f3etturccmp5ovkl@suse.de> <20220831190154.qdlsxfamans3ya5j@moria.home.lan> <20220901201502.sn6223bayzwferxv@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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, Sep 05, 2022 at 10:49:38AM +0200, Michal Hocko wrote: > This is really my main concern about this whole work. Not only it adds a > considerable maintenance burden to the core MM because [citation needed] > it adds on top of > our existing allocator layers complexity but it would need to spread beyond > MM to be useful because it is usually outside of MM where leaks happen. If you want the tracking to happen at a different level of the call stack, just call _kmalloc() directly and call alloc_tag_add()/sub() yourself.