From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 A82F73A8755 for ; Mon, 15 Jun 2026 08:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781513781; cv=none; b=lTkA01BFKFAfIIz4ANhr5bqUEjQ3KXPA3LICeKypzIO/0L5gC84WyaQA5J/XCwrYpbGigk/Z8OZPOxcuAmFQhZZbRBzfW9UhqgOVk5jzDkbqEsJVugbTJhA4u9qquA1ZSFqIArH7qSQZfI7sr5RJqC+dypNbZI3b4NQ+UOIj60I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781513781; c=relaxed/simple; bh=ZKfH21glWdbDRfqMbwsMq/OQ4udKVc6vViSAruOajjI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AAywK0RuUOkm79XZGfJ1iM+FbW71ANBK8vEdbUYVLLmBztS4/hQPXmHVicbkQhW0rIjZqSZoj1tevvl5izKz7n5YWAze9nWzPglk67fvgQ4CEGamkOXEA2RY2kOuxnHsUvSriMVbzSffynlHVUOYqNRwTITAl0Dbcpmru87EOgw= 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=Wax036lk; arc=none smtp.client-ip=209.85.128.47 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="Wax036lk" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-490b3637b90so22830365e9.3 for ; Mon, 15 Jun 2026 01:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781513778; x=1782118578; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=KPi66HdqLZ5JIMHwZGt9OqfxPz6e5uIrhcdWeXWjXYI=; b=Wax036lkm56QJRh4EUjYn9bD8k3UqtZOC/zXFt+gfLYzbk24Ekct/azM1I0kVQNjum ca6kSbIOV0iGenwu5Y9HgMEjw1tU3yJwZ7hKDfvzLIO0LZJSa1qb6TMPcdQSbCKJP/Ab CtpDRS4z2lVmTFpa1rG5CMd61XpXMBSm7SFNeejg3s/yNaWyfvR7e4IzoPtDfJXWAhW7 zcezEWXSNuCTsWkSlIPm77GSp2VlpnNVUPG9/MLki4UtaLaPA+r8DiDWUOr4RaQxvQwG wZ+XSQB736gY+yj3OqtnDO4c/MBO+9j/WHfD5veSIhGzMSeTDyDmdQQpb9FO2u7Aj5oI q13g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781513778; x=1782118578; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KPi66HdqLZ5JIMHwZGt9OqfxPz6e5uIrhcdWeXWjXYI=; b=atxTuVNRBKFFz47Df75WQ8gY5oSEpuxNMuRkhISQizu7ebjJbVw9wsbe4Fi0AgBaob Yncjgv7U3+lKy+UIKUi3EmrnJ0y+YAp9Nl1N1ktHlryFsdvL02ei4FRLdA+lbKSGXbo5 Mh1742VEnfvh09jddy1Z9tZlAEmFESeVgtAturuDppjfGuQoa1fHMkobe+pl6AOAej7O q7ZUQGhjveH5wBV12wxEK9t4VTMUjGiCmw4Q9ZPEJ14H3qyc3p/rr3nXUOBKVgzou5vU 60zM0cnnT/6BtqLQlAElHRe8rXq6G40qRAL3tXIK42XOTWPhRrZYx/utcUPc+oPCmAch 7k+A== X-Forwarded-Encrypted: i=1; AFNElJ9Oqv1PTq3DEQH9qC2xEyVk+e+6uQZl1HqN5twO5gbKmUpsjG4XF6CXP22r+wn96WQnJhXDyBq0CDML5Oc=@vger.kernel.org X-Gm-Message-State: AOJu0Yxq0j+qchmOpLLvwlbmVLrQS4XLfV0aN5bEpqO5Uv+UA+x1ztK/ rzW+RxaJwg5L/7J7yQZHL7HT1E/4giHRTV+iv0op4/0lSeZBzoQJW2vK X-Gm-Gg: Acq92OG7NelRgc3fguOYtAJoapE7O9yr1F2XSozeoVa/66cb4NIdkfr9VzaV5pF4N/4 uvYR5r/96pQRUjS4w5Zvx52UUjNWuChkOdngr98BhdYTA6VsrOFCiiznj162x4BkSyDx4z87Xcu nzei3CVN1cwzYOk1QxJ1JjHSpNa7fPf5SnNrwtgUGWfC/ICfBckw8ExGbEzsdcqbISIACsJ6Ul+ 5g72TdLb+6kRugApEs+5pvL17v2dbTSKVBzhisCuqYIKFI58E2IN5lyMvD+1B2mSrvcL2ExjIJD 6NK83ffMnwtSrwJnk6jZhnNGJCo8vYDOyU3DaS+Y29AJLWAj6lJRjAixpgFp6sptwZsa2qq9tGu r/voOZNH6VzC3pPrDlNj0MVNXTl+BciMU76O2DeAGZffH92dJY9klivUUhYuzfHL9495CayUj7C vtKsqlJy+7lQZtNU4yFbnK7+yhgIFygup3s4EENfon4uNlmGQ0p1Go0+rtpYbn X-Received: by 2002:a05:600c:3650:b0:490:d354:bd0a with SMTP id 5b1f17b1804b1-49220143bd1mr83939345e9.31.1781513777712; Mon, 15 Jun 2026 01:56:17 -0700 (PDT) Received: from pumpkin (82-69-66-36.dsl.in-addr.zen.co.uk. [82.69.66.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-492201fad25sm242143105e9.0.2026.06.15.01.56.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2026 01:56:17 -0700 (PDT) Date: Mon, 15 Jun 2026 09:56:16 +0100 From: David Laight To: Ethan Nelson-Moore Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Russell King , "Russell King (Oracle)" , Arnd Bergmann , Linus Walleij , Kees Cook , Nathan Chancellor , Thomas Weissschuh , Peter Zijlstra , Shubham Bansal , "David S. Miller" Subject: Re: [PATCH] ARM: disable broken eBPF JIT on the Risc PC Message-ID: <20260615095616.1c590e14@pumpkin> In-Reply-To: References: <20260518014920.135011-1-enelsonmoore@gmail.com> <20260614125857.398a0e13@pumpkin> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; arm-unknown-linux-gnueabihf) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 14 Jun 2026 14:44:38 -0700 Ethan Nelson-Moore wrote: > Hi, David, >=20 > On Sun, Jun 14, 2026 at 4:58=E2=80=AFAM David Laight > wrote: > > Isn't it more the case that the ldrh/strh instructions were added for a= rmv4. > > Whether the bus supports 16bit accesses is entirely different. =20 >=20 > No, it is in fact the bus. While the Risc PC initially shipped with > ARMv3 CPUs, which the kernel no longer supports, it was later upgraded > to an ARMv4 StrongARM CPU. However, its bus was designed for ARMv3 > CPUs and has no way to represent a half-word access to memory. This > means that ldrh/strh will execute (because the CPU supports them) but > do not function as intended. Ok, so they work fine for cached accesses. The only issue will be with uncached ones? (Or do I remember the strongarm having a write-through cache?) It just seems odd because byte writes are usually handled with four byte-enable lines; so the targets support all 16 combinations even though a cpu will (normally) only be able to generate 8 of them. David >=20 > Ethan