From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69738C2BD09 for ; Thu, 27 Jun 2024 16:58:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E25F86B009A; Thu, 27 Jun 2024 12:58:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DD47A6B009C; Thu, 27 Jun 2024 12:58:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C9C916B009D; Thu, 27 Jun 2024 12:58:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id A86046B009A for ; Thu, 27 Jun 2024 12:58:17 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5AF87A3E97 for ; Thu, 27 Jun 2024 16:58:17 +0000 (UTC) X-FDA: 82277276634.23.45B5554 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf09.hostedemail.com (Postfix) with ESMTP id 5307C14002A for ; Thu, 27 Jun 2024 16:58:14 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ZYtDAnXT; spf=pass (imf09.hostedemail.com: domain of kees@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=kees@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719507486; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=XibK+x40B+pc7rTOv+0b/U7XD1F4cNkHr15U5VKp/VY=; b=y2sYAwfJO3JM4gN6M6PIV7Qgg+ZxLbksFfLqhW33qXO7KxUCcEfKOth7tJICOtSKjOC8Wb nJWIQmQE57e5Qluawjl2vCwEqiY6VJE55fFUN9DySZ3quNwMYVhRPO641FM98/3EdyHV/C FfXRs7P6H1hnfm5G/jz75fUyoK00DkM= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=ZYtDAnXT; spf=pass (imf09.hostedemail.com: domain of kees@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=kees@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719507486; a=rsa-sha256; cv=none; b=BZK/7IF7ocag/z7Rx71cHf57POMiRhQbccqznolJUuzfPZyeTPhABaSuekPNhUAxF7gbAk 5S/lWfvrwf+3RipL/BKZmtCZG7b+OllZzpcmD2Wn1gg1V/Ke7U2J4ibL1XPT8Wd4G9KxIx NMIjD8zXp5NHaLCYllN7/AxQkpIbhj4= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E9EEBCE3373; Thu, 27 Jun 2024 16:58:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EC81C2BBFC; Thu, 27 Jun 2024 16:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719507489; bh=I8ppiniqXqp4jaz3xIiwGQVWKxxp90g1G72xDqOJGb0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZYtDAnXTl5sb4XG9Y48nUs+xRJMg1Gr9sQgKhA7piJf3b3Lhq7mkqSvNldEjqAJqK YH9pxFUvwNZtHRtjzedOUHT0++nSMVlx6QO/vcZnwc85tKMWpjPrHmF6boCGrjGmb3 HxqCZ7zIqlgncRHAJU+Lt+3StOIfs8HuS0oLG+GhpZ5zurojABaQ784u77XTrcMOIh BgtHhvspVTYkagYwgl1YjIJFycOlNRHERdwhbKCUKCMF/on5peEzT0hk+RRtcNsYy1 8395n3pDBqqj7WvWN5q2ey1OpOZ6fcz3WSxNRZGze9OUv9fwJayOpqoAUVZKjgLZoz rK+W/lCY27Mfg== Date: Thu, 27 Jun 2024 09:58:08 -0700 From: Kees Cook To: Lorenzo Stoakes Cc: Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Liam R . Howlett" , Vlastimil Babka , Matthew Wilcox , Alexander Viro , Christian Brauner , Jan Kara , Eric Biederman , Suren Baghdasaryan Subject: Re: [RFC PATCH 7/7] tools: add skeleton code for userland testing of VMA logic Message-ID: <202406270957.C0E5E8057@keescook> References: <22777632a0ed9d2dadbc8d7f0689d65281af0f50.1719481836.git.lstoakes@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22777632a0ed9d2dadbc8d7f0689d65281af0f50.1719481836.git.lstoakes@gmail.com> X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 5307C14002A X-Stat-Signature: sk4kkeg86erhbqiy8ntt38nmthrbzuos X-Rspam-User: X-HE-Tag: 1719507494-818194 X-HE-Meta: U2FsdGVkX1/zkZtxmuZGkaHVhHPpJ8tQXd7wH0A7CYUYAaoy6cH0bCFw+3UsVJD0yxUmGSiFGlHgvqV//l3HhIB48IXOMaHPn2deJZhdQC0dQNk1YHANUeLoABGBkeRI6OzgbpgC32+dljL0h9xtx7Yn5S8D58QGhPZCFnYK+zJBPw8saUM0eFQyQ9z6WRvy5kvW9QXA8Rubx6WYHO18RkiIENWgXdP3jqvUb9M5Pf3wGkZY0+ELu6xOkvqO9jN5Gv2rbYVBEEw4F5+jfdSlCpvQ8S0DPTRtnfdHaHgTnazm0rv1xRypgr0gwT02VWHc7qJ5wBZmkNgf2rnd+mVqOPTce/3ybLcpEYUNB3u72VWrUNtwCx/OC6EW2ON8JVB5abT7tHybNxrXFqbq4AzYPlMMsTsyaRWLoyO8Rq/YZxj8LAoG50ZHu53J9LJ74KTeqd4nF1iNksB82DKsgi2ByXtDfb4IRyOl3gI0d/vyKXV8bQnna5jRLs1HYw/Mocd0MEDNtUMeux8OaAiUwiVS3cObHhZeWZC6OcCSOsADeAwVKKHXzrG1z9CjskV8TuxX2hH/MZ9ekvXRCL+xLvMfdtgYtiyy/u7mjKewEoxWZYppt9yb/jVz7tijFozveVR2Mhy8h+g4wQnEkFAqxqtj02VsJknaNSvxKdqv1xDyVVTcqYhDpcIaB5AU7oCpgh0yLiFiaLzTmH1bEkwSMw/evjKNeTvR3avoOdOgwBBoKCbea5Z8IudSyfJwQD6XHnaYTFIuyMoQPSe1hE/ufuNAYywWAwMtrJmh0LUKRDVBwWLGwKRoK024jXxRrHpsGsq4DJEOOshpZIyW/WwCVFV/3nDpm9fAwHO5I9dvhrZWcIAxkbJ/SzNVGT4IL05BZ4G6U8pYNgludb+Bp5uKzKBnUk4gBV41MQj0Jm59EWgfaSs8kvJKU9oE0ykGbC/ScnZ5F+pyNKy9h2b7viyL+bn yvc+rH79 IdP4HjOiblDmVm1VJDSCJkJmuRRhhxVS0dNs5cY+j5rVOgubfWSesO2TE5o7qGoJwU3ezRsOTSLq7KJO2d2O6e4BuVs5nSrosWqpRHntJhCA0TidA61MwdWWoQ12yl3V0ix9vXQTJ5M8n5VLSfmHX40RH/U/Uw/pNyE3D51Gpxdhltdrr030gACS9xuRSPHcoqYc3/VzyamNKw7UT8sMdVw0nNOhgpGZmmNOI X-Bogosity: Ham, tests=bogofilter, spamicity=0.000001, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Thu, Jun 27, 2024 at 11:39:32AM +0100, Lorenzo Stoakes wrote: > Establish a new userland VMA unit testing implementation under > tools/testing which utilises existing logic providing maple tree support in > userland utilising the now-shared code previously exclusive to radix tree > testing. > > This provides fundamental VMA operations whose API is defined in mm/vma.h, > while stubbing out superfluous functionality. > > This exists as a proof-of-concept, with the test implementation functional > and sufficient to allow userland compilation of vma.c, but containing only > cursory tests to demonstrate basic functionality. Interesting! Why do you want to have this in userspace instead of just wiring up what you have here to KUnit so testing can be performed by existing CI systems that are running all the KUnit tests? -Kees -- Kees Cook