Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp439067rdb; Tue, 5 Dec 2023 09:23:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IH73pLDEyJ7fpuB7ZnDhMalKUr5ypQnLlEMQVF4OMmAVe/1ILi6hvB9l2ksUhVnu326vi6B X-Received: by 2002:a5b:b03:0:b0:db5:5073:15e6 with SMTP id z3-20020a5b0b03000000b00db5507315e6mr5528171ybp.32.1701797010794; Tue, 05 Dec 2023 09:23:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701797010; cv=none; d=google.com; s=arc-20160816; b=GrzuYs/Zxk8/VLRxUFfzlwZhSrUGU4r3c4WZIGLDJzNitgwtrZ+CjvV89vEuld1tpS 9rj5vJjFMK9Z4k5+VKRclS73Yw0evH7icMJS3dL8E1neMc7a+AowEc6ONs91sJWwfYfo P4m/Ikjuq/mMSquS/qn/sz1ZgD3C1Z9LNyO6XK+5uECHQYLZp0k5uuZVPAanj2vbnYhV w9uF/TCcxNd5DIDULbBToTHiYYuUzasxQStx68MkPhPWbrzfCZiJVmyNcdyYucDXXxhj eMYTI55gXGPNx+uuJv0ot6VhCX1/hyAs094lm43cNsZXR9nmzHXXj4Oc6BydKSz2tPXX 18Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1SXkarC0ezEFReQKF247WpU/Heq+L2MxovVLAGrXWHU=; fh=0yMv9tStYUYNxZmzzrCX9kJG+cLTcym/iBshFZEuo/U=; b=yPOC/dwZEa8udaNXqUxu71TQ5esZCoRSBZlUE5kkcxe8kgxZJWioG/W9AyNup0C/oy 6+TupgR6tOQC3CJ6KTnOe5qcaLZJvalkil6YMFL/ssBcXIFi+4CYi+8I/dqr4gaGNJpq kodfydxpZ64RG3KJd7cwlMua1MYFwZRf1KaRO77F3xROemfQrgDjvviYlaoFc0YxFhJk PDbQ4cpmhbqKlaNc4MJ6ywcJPhAcrqqluF/KIXDHBtLAf3dD9l+kf9hJlIlkXV3aE0in Zkp3YHMk6WYwhT20OE4HT+lL/HmrsWKhDva7Z53K+Y3C8eg+Aw1luht/gRL6zVInbLm7 euVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EpMPJv4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id o26-20020a634e5a000000b005bd2713d3a1si9948124pgl.650.2023.12.05.09.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 09:23:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EpMPJv4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 367B7804201F; Tue, 5 Dec 2023 09:23:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346099AbjLERXG (ORCPT + 99 others); Tue, 5 Dec 2023 12:23:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345778AbjLERXD (ORCPT ); Tue, 5 Dec 2023 12:23:03 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA72B1AA for ; Tue, 5 Dec 2023 09:23:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEEB9C433C7; Tue, 5 Dec 2023 17:23:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701796989; bh=pU9M00dkHKU1TS7CBL1inocdlITXmGP7gY/XTaLHoyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EpMPJv4XEKXQyQYQR6FkqXiXv1mDf/eSYeILTXcboW3xOS8bPLZL+N2huZtkLCQEL 0OtFsxwzAd6kdDSsD7WpB6tttxUtHcP0gxlldD7BJAy6XYXjMH4NSuRVOLFiD8ViIy rWHgLBD2A0HITc0L8KBBIrpwPPqNjiN6VBG8xMYo0PWwMyIboOHek+V2R7b3GUSmdV autTFncMlnDQxky1Dx0r5f3dzmt4BusJ8adkxkZBjU60FQGxSve3/r7MfAq/fQFb18 eYlvLHBXmriqKTncHF0mpyF1m4N3EZQG6v7p8F46z0Eip5rHX+UGN6gOo/6LwvQAcW Zv1JAF3oYGeZw== From: SeongJae Park To: Christoph Hellwig Cc: SeongJae Park , Andrew Morton , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] mm/damon: export DAMON symbols and add sample loadable modules Date: Tue, 5 Dec 2023 17:23:07 +0000 Message-Id: <20231205172307.2310-1-sj@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 09:23:25 -0800 (PST) Hi Christoph, On 2023-12-04T21:12:47-08:00 Christoph Hellwig wrote: > On Tue, Dec 05, 2023 at 02:28:55AM +0000, SeongJae Park wrote: > > DAMON cannot be used from loadable modules since it is not exporting its > > symbols. > > And that is a good thing. We should absolutely not allow random modules > probing MM internals. I agree. > What you posted here is basically just adding hooks without even real > in-kernel users. I was thinking someone might be able to think even the sample module as real usage since there was actually some questions about it from real users. That said, those were more like questions than strong requests, so I still think this change is somewhat better to be made for at least some folks, but I also agree that this wouldn't be not really essential for everyone, and could be only long term maintenance threat. I personally don't have strong opinion, and thank you for raising your concern. I will hold this patchset unless someone request this change again with good rationale. Btw, I know there were many concerns about unnecessarily exporting symbols, but do we have a formal guideline or documentation about the requirements for exporting symbols in sepcific subsystem? I was hoping to have such one so that I could provide better answer to DAMON's loadable module support questions, but I was unable to find such one with my poor searching skill. This reply could be used for the purpose meanwhile, though, so appreciate again. :) Thanks, SJ