Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp169004rba; Tue, 26 Mar 2024 12:16:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCKe62NFIXGh9ElodPi11IEe4vN+OibCfAEl6lgSB66iZYgL/sfvqXxXeHrXUacQ+HfYDeJOP3bqPNIw9eMC6XkmoLIkU1n4aZd9Qx6Q== X-Google-Smtp-Source: AGHT+IE0Q6JwJ9deKnDUQgOCtVeBzvM26Mt7B3zOgCypCJMZekoTKZCBc/7vqrCBRrDMtRIWOspl X-Received: by 2002:a17:903:2351:b0:1e0:e2c2:5703 with SMTP id c17-20020a170903235100b001e0e2c25703mr4207008plh.0.1711480127299; Tue, 26 Mar 2024 12:08:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711480127; cv=pass; d=google.com; s=arc-20160816; b=hUujDA0dOyGlTC7poc4jPtw5L6x9Me0cEz4yylVK815OsD8v1sejQYGS7pYYRrXlWO a1pc/FM10osFLxu7qWC25XeFsZ7n375pklmrHicxC0gpAOPtAeHamjlGIjRLo2N7vdgd g5HmeM+jcLI+vdc2iebikLVyI7gmvLz0Hl8Y+78pF3QOXtBQXCm1sTgIZzYrYGKBO1F+ kyNHm2l1pt3yg5o1dSu1l8DiBLd/W2uewjOV85bRZtFN2TKlxeYKbM1w77UOqFfXc/fn JkQgL8pWJ5WSEg2YrF9uRKFGXZgmDV67c70tH1Pi8q+j0C59b8RqyVqTS11OlBW1AaRQ a6HA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kYaAVogC50tnkAhxTfIo7AlnClUw2Pd6uWLa9GYzp6I=; fh=AmrSroSPXpw4BxKKh0HPN2MhRHC2IaZlpIzKlghsusU=; b=LYYqLhWyg2BUDwFfOXPLLcALCDO1eGcZSHHcfpPiMGrphulm9im/M3MW0Fqwj/1q3K 8/33B67dXEbIRbD5vikyEDqaSepGapZ7PMeg32tVCQ8iillaHzM4nZKnpNyauMUtzjiD 8gNQDNQWNGiPh5gfjCbcQ/7TYg1k9dl8Po18qihqY3pMkGlTDQoI3giAJ2AhWUXGclg3 EW61J+HRT6uRUcgv8pN8c3cHnWkK95ktSey5114+qfhXLmaFig3+4v/Z+LYOHnushB02 yJKDgwrRSnOpiOcRlekKfd8IzA9ypWwrD8t8Yp6gycMTnNODKMBxa4XlNctnxmS9TRms 4dNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IyialCPC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-119696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i16-20020a17090332d000b001e0f9617595si1253303plr.2.2024.03.26.12.08.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 12:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IyialCPC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-119696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 115E6B27E77 for ; Tue, 26 Mar 2024 18:43:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E457129A6B; Tue, 26 Mar 2024 18:43:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IyialCPC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C891129E88; Tue, 26 Mar 2024 18:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711478579; cv=none; b=Ua5fCnBnbaHcOCFG5mv1sfLXYJPCtWHo2SHb+wTaGFBRhcpLCrMKE4pZsvWwKvsRUW1elze2xjzhVYiFjtUBIhNgZzROw8k2JtExqv41fOkUFT5OgLI26NmMYGCYc+nZJo37MZtlSn3O+EdPVlZ9Tg80ECu2PKVjjDIL19tjY9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711478579; c=relaxed/simple; bh=4jVrfD/KvnLbhutEiKxJwcAulEU3J50vmATSDtq9sqw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZWB6A6M2awg0XwcV2uW/pRNDig4wpQSbezMT3mObcuAHAKXp9ZCP1AYx3TeQCqBPV0xdz+w7M9YZEU4HGjRo0qqsiE/9TFzQDKFIHOGE4qjVPPsBysx9vtGyoedDqzjCQU5NOX6d10r8OBpLpaS/9QYICj7hFJTonu2rCMVWul0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IyialCPC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF51BC433C7; Tue, 26 Mar 2024 18:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711478579; bh=4jVrfD/KvnLbhutEiKxJwcAulEU3J50vmATSDtq9sqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IyialCPC3XtDBNWscY3/R0P7oEJ2BjULmLF15MUdpQ/pvuLKfcck53g46epTk9R58 GcoQoHy7q0tyoVKC4r2PeOMLJETm3V64gaZ6n0cpw2/irlliNf5Bz6Ix7/Jk6iiIvv Uq8GFF1QvQUAQYnGCOhzMEDLT49PuPraYC/Xt0eH3RSMJwYnwuVLwWunZJ0YXiJGlF T8d4fgIvrUCpB3xwMLXnx/t4UzEU/u8Bwc3L1mFyD90OxoXAJqCuDmclN+R0yWiD1L PpBZCgmPohc/Oiom6oxYypolD90iiUaNY+Lr04O+HJ3/BolKbCj5SYbKxcLzJ81HLM FE1yx4O0ZhDcw== Date: Tue, 26 Mar 2024 18:42:54 +0000 From: Conor Dooley To: Jarkko Sakkinen Cc: linux-riscv@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, Luis Chamberlain , linux-modules@vger.kernel.org, "Naveen N . Rao" , Anil S Keshavamurthy , "David S . Miller" , Masami Hiramatsu Subject: Re: [PATCH v7 2/2] arch/riscv: Enable kprobes when CONFIG_MODULES=n Message-ID: <20240326-cape-compacted-e76df066752f@spud> References: <20240326134616.7691-1-jarkko@kernel.org> <20240326134616.7691-2-jarkko@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZY3M3zfLOpMoFKjK" Content-Disposition: inline In-Reply-To: <20240326134616.7691-2-jarkko@kernel.org> --ZY3M3zfLOpMoFKjK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 26, 2024 at 03:46:16PM +0200, Jarkko Sakkinen wrote: > Tacing with kprobes while running a monolithic kernel is currently > impossible due the kernel module allocator dependency. >=20 > Address the issue by implementing textmem API for RISC-V. This doesn't compile for nommu: /build/tmp.3xucsBhqDV/arch/riscv/kernel/execmem.c:10:46: error: 'MODULES_= VADDR' undeclared (first use in this function) /build/tmp.3xucsBhqDV/arch/riscv/kernel/execmem.c:11:37: error: 'MODULES_= END' undeclared (first use in this function) /build/tmp.3xucsBhqDV/arch/riscv/kernel/execmem.c:14:1: error: control re= aches end of non-void function [-Werror=3Dreturn-type] Clang builds also report: =2E./arch/riscv/kernel/execmem.c:8:56: warning: omitting the parameter name= in a function definition is a C2x extension [-Wc2x-extensions] >=20 > Link: https://www.sochub.fi # for power on testing new SoC's with a minim= al stack > Link: https://lore.kernel.org/all/20220608000014.3054333-1-jarkko@profian= =2Ecom/ # continuation > Signed-off-by: Jarkko Sakkinen > --- > v5-v7: > - No changes. > v4: > - Include linux/execmem.h. > v3: > - Architecture independent parts have been split to separate patches. > - Do not change arch/riscv/kernel/module.c as it is out of scope for > this patch set now. Meta comment. I dunno when v1 was sent, but versions can you please relax with submitting new versions of your patches? There's conversations ongoing on v5 at the moment, while this is a more recent version. v2 seems to have been sent on the 23rd and there's been 5 versions in the last day: https://patchwork.kernel.org/project/linux-riscv/list/?submitter=3D195059&s= tate=3D* Could you please also try and use a cover letter for patchsets, ideally with a consistent subject? Otherwise I have to manually mark stuff as superseded. Thanks, Conor. > v2: > - Better late than never right? :-) > - Focus only to RISC-V for now to make the patch more digestable. This > is the arch where I use the patch on a daily basis to help with QA. > - Introduce HAVE_KPROBES_ALLOC flag to help with more gradual migration. --ZY3M3zfLOpMoFKjK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZgMXLgAKCRB4tDGHoIJi 0kr6APoC8w1hFwYBq68SvRiP5k+lnvxzYoTYGxCdhojX1wA0lAD6AyvaCzZnOAGK ej3FsxMvaVpbalYkFzvk6xtCRrliwQk= =Qyv3 -----END PGP SIGNATURE----- --ZY3M3zfLOpMoFKjK--