Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2965858rwd; Mon, 29 May 2023 03:53:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4igEy/XxcojPCwpYy/2kr32IhE44dSF5jqk3gcryzTeateqHsWe10Y52ONjTfI13W3ivZ4 X-Received: by 2002:a05:6a21:9184:b0:10a:e177:9e73 with SMTP id tp4-20020a056a21918400b0010ae1779e73mr7871219pzb.46.1685357601978; Mon, 29 May 2023 03:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685357601; cv=none; d=google.com; s=arc-20160816; b=EQTJQuQWYRaiMYHEF2JNC0l6XBERzE7XT5jyzeG/kxWw6klxsf+/EEHSgiKdYsqqep LQtkE2q6RIV4VFk6DHFJ/h9Lpxs8rrGV8TthXBTjo5XLit+OcE3CfCvxMdOCyaoJlm5O Wm2EmRwKnAlHNfn+3qSr4xsjrEpstg6cX/PDKnOc/SyBN6ETkxtOxNTnXvsm5HYeBKFW KYhm5OqVgkiev2IRwS6rmxrTr6rABVQ04JLBQ/KawGShWyxfE7dL1HKfdCvvgqPm6Pyz 49kFUxDMbV1w3zC6t4Pp9XEDJKTUbnGVjMtP1Sh1nICejs001PFL6YM6bYwKlur48LGO 6jPg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mhcB2e/7/xSSkBviRu6Stx8Bl3iOEUk0DP6DjWhSzCI=; b=IylXQGPEGRNEBkjwb4RfrgmJwJ0KvHv/czdV8I+lyOePDC4lS5wTifac5ypZBezVyT eo8PiORhyZJYF0rmHjU91GqQ9y96emxnayhLd0azVun8mizVtUq/rk4oRZIijeClkG28 EGCXhdgPgG5HQZ/3641Q6uGAqEDKq2XKSsMXuJ+MIDnqFp+DAUjQRcPWyd7eVgCEyfXt pDaXD0wtXmJBx0my55t2GhQRuh30zwRTPJP06WOHs1PDf4SSnbq7pLszlC+OjEpNNAsz RBwwXFhZCbOjDwg6QsPyQQ2Pr5/6zGSmNsPktkVOUQTlSIE6OC5UTThKFjAFxKGR2MSI 48YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GAGhpNbn; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a656944000000b004fb8abdd188si9232312pgq.115.2023.05.29.03.53.09; Mon, 29 May 2023 03:53:21 -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=@kernel.org header.s=k20201202 header.b=GAGhpNbn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231494AbjE2Kp7 (ORCPT + 99 others); Mon, 29 May 2023 06:45:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230150AbjE2Kp6 (ORCPT ); Mon, 29 May 2023 06:45:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1CDEC4 for ; Mon, 29 May 2023 03:45:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5AD796123D for ; Mon, 29 May 2023 10:45:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B18C9C433D2; Mon, 29 May 2023 10:45:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685357155; bh=YyZhd7+u4rnN68BcvCm78mN9H7X5EQow465eMlMwb4A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GAGhpNbneXKu5Fu+MvG/WOrAYFJa/OhdGymyw5GN6sYkdBGsPBX1UbwYq+xtmcXiS GSc+hMQ6MFpNsY/QCqnjbpL3JYYbKuBmhGnnK90BnWJ/iAeKv8t0h0YWHQBJxbGRix D9+ULVYtggHIYgYaJVL+vNY2pQ/zg/RSfKPoc496Obts+VgzMbbu0zTBkxOg5mLiBE ustXpn3uJ8ZNVVgx0FEQrvLk0lK9smLr3YNL84eyEuIYQYVUlrD5Z/0k3p4m8NZ9h8 vdCA4pucvoTL+6/eumOu/74mhwYt6AT9O/ZrxY/R9l16QWvX67qjTfueFzHgiQZaxq eCrLxfGUvno7A== Date: Mon, 29 May 2023 13:45:30 +0300 From: Mike Rapoport To: Song Liu Cc: Kent Overstreet , linux-kernel@vger.kernel.org, bpf@vger.kernel.org, mcgrof@kernel.org, peterz@infradead.org, tglx@linutronix.de, x86@kernel.org Subject: Re: [PATCH 0/3] Type aware module allocator Message-ID: <20230529104530.GL4967@kernel.org> References: <20230526051529.3387103-1-song@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 Sat, May 27, 2023 at 10:58:37PM -0700, Song Liu wrote: > On Sat, May 27, 2023 at 12:04 AM Kent Overstreet > wrote: > > > > I think this needs to back to the drawing board and we need something > > simpler just targeted at executable memory; architecture specific > > options should definitely _not_ be part of the exposed interface. > > I don't think we are exposing architecture specific options to users. > Some layer need to handle arch specifics. If the new allocator is > built on top of module_alloc, module_alloc is handling that. If the new > allocator is to replace module_alloc, it needs to handle arch specifics. I'm for creating a new allocator that will replace module_alloc(). This will give us a clean abstraction that modules and all the rest will use and it will make easier to plug binpack or another allocator instead of vmalloc. Another point is with a new allocator we won't have weird dependencies on CONFIG_MODULE in e.g. bpf and kprobes. I'll have something ready to post as an RFC in a few days. > Thanks, > Song -- Sincerely yours, Mike.