From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-189.mta0.migadu.com (out-189.mta0.migadu.com [91.218.175.189]) (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 029A63806CD for ; Wed, 24 Jun 2026 04:10:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782274229; cv=none; b=VQfR42UOAvayKiTgu8ubtZQShfc1hhASy2d9tZCL9nR3KfLDftFWDblRmmNKeqGUmZ1f1G7NXmfTYlVHANRNWseEaZaTX+OHTZ+vvfalyWD4yVME9dX4ioIL1UkbcaodViQNq+3pv5edxPitPBuf4+jA71VG0svKl/RX1KopJtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782274229; c=relaxed/simple; bh=EOJzw9KrzYeejHXRacYEVWrKwjSSxhWN64Deir0FjCk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SxwbtqgYeJOLlK/X9e3NsRZL48ipBrWs8PYKoyxa1+CxPfigQDmUmN8uI/iGujoStGcjCjXqJpPN0HyFsVIr2qktR04IVlhsgwz6KNcs595vQ71LOLJVt7MhjgAp6mkRFQ+ltO/ozGXL1C3YUGqPBexiUnV5weGlYBW2Z7/ylr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=a02Neh24; arc=none smtp.client-ip=91.218.175.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="a02Neh24" Message-ID: <571678b5-e731-4ea6-afa5-c79b3a47ab2d@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1782274214; h=from:from: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KrShSej5OExPGuD5IES8kTIdSUT+H6q31oEPMIGBDlI=; b=a02Neh24XY7GEsJEjdHJC/vzxgCHin4xxQWaDMln1LOwV1ftvuL5kW2Ma+2vBi9ul+x6Pz C7QZvQaFbsMNcO1I9elYC0tr/PAxgYlBGNjwfDkLntk7L8ayl3g/zMtsSzSZO0dMH1r8GM bNHUU0uIjfIfzAB1hb18bodqhd2J1rw= Date: Wed, 24 Jun 2026 12:10:05 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf-next v7 02/11] bpf: Disallow interpreter fallback for user BPF_ADDR_SPACE_CAST insn Content-Language: en-US To: Andrii Nakryiko Cc: bpf@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Kumar Kartikeya Dwivedi , Song Liu , Yonghong Song , Jiri Olsa , John Fastabend , Quentin Monnet , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-patches-bot@fb.com References: <20260622143557.22955-1-leon.hwang@linux.dev> <20260622143557.22955-3-leon.hwang@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Leon Hwang In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 24/6/26 06:45, Andrii Nakryiko wrote: > On Mon, Jun 22, 2026 at 7:37 AM Leon Hwang wrote: >> >> Since interpreter is unable to handle the 'insn_is_cast_user()' insn, >> require JIT in __bpf_prog_select_runtime() when the prog has the insn. >> >> Fixes: 142fd4d2dcf5 ("bpf: Add x86-64 JIT support for bpf_addr_space_cast instruction.") >> Signed-off-by: Leon Hwang >> --- >> include/linux/bpf.h | 1 + >> kernel/bpf/core.c | 1 + >> kernel/bpf/fixups.c | 2 ++ >> 3 files changed, 4 insertions(+) >> > > apologies if this was discussed before, but this seems unrelated to > the main patch set, why not send it as its own fix separately? same > for the next patch, no? > Will send separately to fix the issues of interpreter fallback. Thanks, Leon