From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CA84331EAC for ; Sun, 28 Jun 2026 06:37:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782628675; cv=none; b=iKz5zR1QWFYKznot2Vw3vEH71iiTyPO0AkJzOE1HZ9IVlF4rI+hkdaXyp3rmshAYG1+OrGTGHqn9jG1Vz4TG9mAQcEsGC6J5HHN2pRbQ22xjyT7hx+1zbKkZLpQOa17nKBjNdo5b3yZqrlzRa3Lo1hskJzHk7nnh8IHID6t1rXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782628675; c=relaxed/simple; bh=qjynzZ6KOMkia6Kld8oKK1e11+mTHpxJS5f6P9dewpQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZG+M5urpaFCuMV46eGx7g0I2/DKb75e7V6AOPkhZoA5hpzOIVLMFE6sd8ZrfRf8JfKxa3B+31RiIGqvGlGtT8IcEL1fezSTTwEC5EqURrDkja27w8rCnCDf8hkzx6+RcJgxiLhi0Vrs18uQ8cD1Tbp6JB/QXvcwq4ThwyiPhhXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bS6i/OQ/; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bS6i/OQ/" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2c9dbd00f1dso2344975ad.3 for ; Sat, 27 Jun 2026 23:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782628673; x=1783233473; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XxbfFY4tow/cxVk3DBC5MbGr8rGt7hcXtDQR3cXybbg=; b=bS6i/OQ/FvNy4d3CNwFb2hAxCp1BFqnOLXSpKvJIOsAxLGWBbXZW4TsUqbhQy8lYbB U9QS6YpaU6UOLCzKPPyf5SHxWx8c+9QOvWMIu5P8zBcIvWLVgG3tcS0NXT9ZCdFOWrsO 9GnLejjaoHVnya3nMMSwLiXI7BPd7hSDbCkcXYSLQU0QSozq5FWOEjt7kL8qv6xNsVNP 4rSLXlbu9WWYrUnR6I5jWagE+bPGwNHOytg8fL9mAbVgJt9ssWcqzYOeZ84M8kXcQ6wk ot7O8PNFVoLp50crVLef6Jx/vUBzvVXd4F9KeyOfEZl+j9NsxFQyJCiNueX21XEGbOYn BIqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782628673; x=1783233473; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XxbfFY4tow/cxVk3DBC5MbGr8rGt7hcXtDQR3cXybbg=; b=VlD+x+XFMeuvpm7ss6YMZOCjBUKrp8I4ieCa1DSfxeV8GuID11xAbYwxlofwQjVHFv /Xtr9VdJ3NUJItuxc/bfeq0D3We8zjv7ZzDMGcWbFX21H865jJGz7Xv18zUoJ8lKDq1K LtmJTgXqSJI9WiNAGLNuwWca1ouCDArc03jimMiwioW/3Z6q/b6l4IiA0QMhD/6V/7AH NJ6YQ3TieFP7f3Ew4zjsFGNVyYOoZ5Z7zjf0ljLtnDoJ3OjTxBuMw5/Ii6DUnH9gg2dT j6y9PKxB6lq7JZ1yx6RGiIvG79tnZaDOxr92Tpp9Bc26C2st6QGw983L+lAR8BgsqDi7 q5pA== X-Forwarded-Encrypted: i=1; AHgh+RrwGFnmBj6cm3lFSVNHkM6kS5jiRQIY0M40DZe+okay9V40SwN1NrtjaCK7qXozJFSBBLa5WZtycOQ2BMkilqk=@vger.kernel.org X-Gm-Message-State: AOJu0YyeMGeTvoTc6pzXj2BWL1XU3rjQH6DbHVX/+on/PR4jgMou4ULK 3XfB+gIYH9ZkpF3OxDmNArrpVl/WXg7xuBNw2Wc2OZjAzFjtYpYw7ZON X-Gm-Gg: AfdE7cmBycUF8CmX4/lG3Bhr4ffRy2TYGFVXmd+nVqmgQglL8eXzQ7MlJFFnzDLrYIw TGz29hn+g9ehnl98yD5X6tijK++HKpt6+kwQZHqq+MfBlE43Bze6++TAVFaZg0TVZuUXR5x60UY tdLzOXUjk47/y1WQNY/TFLrFn7Ut7hNAGioODsrQrBU8jxcD5K2w/5tPR3TWbN9PEwVbj41ZDGA XilM9NJzqxpBCJ3yfZj0IKfMOCwH4a0BmALZPZ9ARIK63Q5HIwIvfnHcLDwY264aeIPcDIl8n2v 79rq7tmRUx/Zdpc6beHtjTGOLOm+JNEFtboNPbbP+YR8XY7AhE5Gvdhp1yQDLTG4sf6+otczz4v /Khhgzfx+FUwv+ugr2jPqL+8QvidtDErJJirkvnEiTtnCTt1zswGW4EkWFTYcBaGdcNlnpCh4RL I3JSjKnN3A2g3i6Cdv4t7OwU9PD0ZjbXtxPos8dMU= X-Received: by 2002:a17:902:e5c9:b0:2c9:97a7:327b with SMTP id d9443c01a7336-2c997a7337dmr51790045ad.44.1782628673499; Sat, 27 Jun 2026 23:37:53 -0700 (PDT) Received: from computer ([2a09:bac5:3b4a:8aa::dd:15]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c7f64cfdcbsm68156965ad.62.2026.06.27.23.37.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jun 2026 23:37:53 -0700 (PDT) Date: Sun, 28 Jun 2026 12:07:39 +0530 From: Varun R Mallya To: bot+bpf-ci@kernel.org Cc: pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, bjorn@kernel.org, alex@ghiti.fr, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com, pulehui@huawei.com, puranjay@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, martin.lau@kernel.org, clm@meta.com, ihor.solodrai@linux.dev Subject: Re: [PATCH bpf-next 2/3] riscv, bpf: Add support for BPF exceptions Message-ID: References: <20260621144259.288135-3-varunrmallya@gmail.com> <950216803ac2380e0537b27c94ff87dd2ae0dc689fe320c51d96b9095cefc614@mail.kernel.org> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <950216803ac2380e0537b27c94ff87dd2ae0dc689fe320c51d96b9095cefc614@mail.kernel.org> On Sun, Jun 21, 2026 at 03:32:32PM +0000, bot+bpf-ci@kernel.org wrote: > > This isn't a bug, but could the kcfi preamble, fentry-nops loop, and > TCC-init instruction be emitted once before the exception_boundary / > exception_cb branch instead of being duplicated? The same three-part > sequence appears again below in the non-exception path, and the two copies > must stay byte-for-byte identical since the tail-call epilogue skip offset > depends on this fixed layout. Making this part common in the next version. Sensible change I missed. - Varun 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 981F4C43458 for ; Sun, 28 Jun 2026 06:38:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8QOCBJaqGJ+5V/2TxDXHWdwgbvUne3kuiJIknkeVtmk=; b=s6MRDz3iMu+PN2 cveElYkzn3m8EESUZUxZ6lmA6p3AQIeJP+qQw12q6m+xXG/lSKvN9uLBxmR62B2NvbM9ietvm5aJT ozgc20mo4lbRmabZJyi3lLLvaZzHiV7ZsQFw0wfOp0Ppe4Xiy7y1NIQMf+f6TTPTaGwTEVd2GG2KT ioJhzsGs9m9dQVuM0EbEZnGUXwMVAYIKQy4C1Xhn+Fqm/hzh5Tw5vRe1mzEh49w9IA+qEy84pYyxg L2efM4F0VN/0oELdvPKef5ulDha+5Ou8qJwUGUZxL8LaxJHweBwALJ3bvO+1DlXJ10cE+CuJwJir4 HQk8Yq+iPfcjJEvYN53w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wdj9R-0000000Cwtd-2H0b; Sun, 28 Jun 2026 06:37:57 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wdj9P-0000000CwtL-03Xf for linux-riscv@lists.infradead.org; Sun, 28 Jun 2026 06:37:56 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-2c74383c93cso23825805ad.1 for ; Sat, 27 Jun 2026 23:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782628673; x=1783233473; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XxbfFY4tow/cxVk3DBC5MbGr8rGt7hcXtDQR3cXybbg=; b=eYQinHQ81j3rSKDbAJN6jR22fA2BFTIND++efkY6kPTNCYt/qYN/vPu7PmtbvwZk2S J0fwu7GfuO2FuDuW0u0msYlY2h9L1Ogxe9Voaz7dwy2JRXTidE2WSXy4mw9uNtVu0liA L1smlujibG7FQat1jxA5CmUxjrRGfsD0IXJPV+yZDaSslZOqI3Nw1KWjllrhqTCO3nzu MlTT7Qw6kOTRkYJn23ZIm9YFDUgVpBVZ3Xslp+/DTZERzqjL+V1OOXbevzZ/Z8rdHi7F EkxjpvapjnFYzY9Q5OTo1ET7pA0DpxoAX9o7mTCRW4Eg3TXXzI6A/ew65K+Vg4Ew6NFg qJXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782628673; x=1783233473; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XxbfFY4tow/cxVk3DBC5MbGr8rGt7hcXtDQR3cXybbg=; b=WEIAliw5dJgq4K46qyftBJaa03XYFOIi9S0gWktqef3Hd+6PKkoY3MX6uV0nZ26Js8 OGYydQ4yvOAKUUqKMozmLvOeOpFgaNmatkj9gg6PCR7n93W+VJSNX2KVKYPTkeL1L7xB vg9dr3lDxrQ0tc91ojro/jM8AP69ixTqUZtqlpiHYBKE1yb8aoAXoyjD0sY47zf0T6jM xomS4nsixmCOcbISJ0SRdJUy0L3Mge8bBEoqW9qzj/aGfPciqlIRVWYShfsYizJqeKdV JJSj9fJ4hmQVwPSJek6/FEFy4CKN4zj0CRVkSbnYy7x4ScY/6owPiWo2QmrooX3f9z32 Pigg== X-Forwarded-Encrypted: i=1; AHgh+Rq/hMflWSMafMSujOY4uoirPx2WpDCzDfBz1ekT0vUtXT/jnIBtp8KbaqKUufi9cDo4pu+UBDd29cKleQ==@lists.infradead.org X-Gm-Message-State: AOJu0YyaQx57xGE9hHMr/m8FD9XniFHnYZM0WpToG1heq06k3rPoflg7 PPOb2CVrTWypT6haOy9i4Ch9+N3sLRstWqjohnMJS9rtZDmTey807CRl X-Gm-Gg: AfdE7cm6b/KnixNEIp5drOEqiB/IdDhknOHwUVVy9BB2WlHEUgsQVnxONhZXE0LpGUS B5C1DdTeNLMy+z1ReNyc3s7PuAsyJ4e1ZJvi8inmvHI9jS1In+4lHO+BuC9l3WQI6RbUIYDe/ls eoFXQgNhsd1j/2rC6kqTaerDbL0NlNaGx4+8k5gp/ZRwY+HYyQOUKzZ25Rxg6vroofSqY0bYTQ0 z06qTZJ2T90rgQdxaDZUFCctvHd80kOr+rXSOXsS3/0+1wcXQraWG5ZpWBaru71H3RLw0FnE4wl ymUnWqm8wiIYtht9CVbJzgpVQOCiEMpRFZUHxRJP80+Qrr+9xq39lIsbmM6NRxwM6rBtamEYnLO n3eVF6l033APHwAuztwgOJwjXt7qHLjW7gSeOwFen+otN6u1BidAutl8+/snCjulO860TPyPXfr 1PUzKKalaE39+UBx3J1DD8ClTDqN67Q3mrcHw8n2U= X-Received: by 2002:a17:902:e5c9:b0:2c9:97a7:327b with SMTP id d9443c01a7336-2c997a7337dmr51790045ad.44.1782628673499; Sat, 27 Jun 2026 23:37:53 -0700 (PDT) Received: from computer ([2a09:bac5:3b4a:8aa::dd:15]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c7f64cfdcbsm68156965ad.62.2026.06.27.23.37.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jun 2026 23:37:53 -0700 (PDT) Date: Sun, 28 Jun 2026 12:07:39 +0530 From: Varun R Mallya To: bot+bpf-ci@kernel.org Cc: pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, bjorn@kernel.org, alex@ghiti.fr, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com, pulehui@huawei.com, puranjay@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, martin.lau@kernel.org, clm@meta.com, ihor.solodrai@linux.dev Subject: Re: [PATCH bpf-next 2/3] riscv, bpf: Add support for BPF exceptions Message-ID: References: <20260621144259.288135-3-varunrmallya@gmail.com> <950216803ac2380e0537b27c94ff87dd2ae0dc689fe320c51d96b9095cefc614@mail.kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <950216803ac2380e0537b27c94ff87dd2ae0dc689fe320c51d96b9095cefc614@mail.kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260627_233755_056362_1BD15092 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Sun, Jun 21, 2026 at 03:32:32PM +0000, bot+bpf-ci@kernel.org wrote: > > This isn't a bug, but could the kcfi preamble, fentry-nops loop, and > TCC-init instruction be emitted once before the exception_boundary / > exception_cb branch instead of being duplicated? The same three-part > sequence appears again below in the non-exception path, and the two copies > must stay byte-for-byte identical since the tail-call epilogue skip offset > depends on this fixed layout. Making this part common in the next version. Sensible change I missed. - Varun _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv