From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.63 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795707200; b=vV2TNO6x1S2qXRQvPEB4tDPwi6hnXObtMrWU10HSo7NOGz9c6sWYlBl+hLinIc9GoAtL RAmVp1R+k0JznT69XLYXJjXkso4B6LawAiQiTD1NzjnOv0qAgrFj2luvBLpe7X0Q8ZwhT qTzLmeEwt3XI8O63NdDmuOJ9lbszq5PZ51hrvCEOMqvIfU8mtJRHyVuNezNgXLNxL8W6d nuzur95TxGHq0e8binQMfD3yvg6rBnLjy8sDscdMqD3OkN445bKmmR9ayfvP+MNFHG1k9 k5vOBcAhJZxsEBLc6F1VlcuNhaAdEq4Y3gMYX1P6AKoXiAtRO576joUDHAMBPFDBPEw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795707200; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=kRp4wRTGUX5Nc07ITKcIm26w+g1oTAepPRAIzZzp2p0=; b=XnX5kVsP6Jo/p0iz+9veHEtmYvLx5JthQxXDgHIqpE8lnIm5ag6ZvXz2D7g47wLUT34N sfGsMZhJVWGz4Vrq34OZDjfWyjs1+AI0Z70zwHx4bor7kONtibHOZt7inqiGAKHWofcug PctlH4g1ezTGyFzX+pWW+dflybB+2sRletYLx2PSVkjM6M2ythNmAOj+QdutfD8eTrO/X kKkw09KnxNhvURqZMUzmveXRcfCoMOhbXaFNX3nEwhjH3yqTy9S2IiVRnqvw7HDpi5rgY mBErxfbtTYhj7y/HBXvqOQtavZmA59cYxbAnx+P5lQ9mBYyRKWiGkJQHtvTtOy0qMTQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=E5m87UiI; arc=none smtp.remote-ip=95.215.58.63 Received: from mta1.migadu.com (out-63.mta1.migadu.com [95.215.58.63]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17540606A321 for ; Thu, 26 Nov 2026 15:33:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 17540606A321 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, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=E5m87UiI X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=mwJLewJ9zSnI5WWBwaIqRXXu8I3527mjgT72PP6DPTc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795707198; v=1; x=1796311998; b=E5m87UiIVTh5aopPtUryf6t8fVBmYN+bUlyQ4rnpUAZHpP9mjtBCzfgg1/lhENZlPf25of+g 88MVClLSBrsuTUFIQhV5sF0ncqYPl7qw4rJd2umGGbPK74hH4rPDkUjp0aWQivEJV4YYMDehdI6 UZ1g0FLlfvuO+4sOCo50a8tw= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id fa146ce35f58f9d5; Thu, 26 Nov 2026 15:33:17 +0000 X-Mizu-Trace-ID: fa146ce35f58f9d5 X-Migadu-Flow: FLOW_OUT Message-ID: Date: Thu, 26 Nov 2026 23:33:13 +0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH linux-6.12.y 0/4] bpf: Fix interpreter-unsupported insns To: Guillaume Laporte , Vincent Thiberville , stable@vger.kernel.org, Greg Kroah-Hartman Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261126153002.162337-1-leon.hwang@linux.dev> Content-Language: en-US From: Leon Hwang In-Reply-To: <20261126153002.162337-1-leon.hwang@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit cc Guillaume and Vincent. Guillaume, please test them. Thanks, Leon On 2026/11/26 23:29, Leon Hwang wrote: > Request from Guillaume and Vincent [1][2], backport the following commits to > linux-6.12.y with editing the commits manually. > > 9a6df65d5c6a ("bpf: Introduce jit_required flag and remove bpf_prog_has_kfunc_call()") > f1c27922576e ("bpf: Reject programs with inlined helpers if JIT is not available") > 34746b5a84ec ("bpf: Disallow interpreter fallback for arena-related insns") > 7a0855e73757 ("bpf: Disallow interpreter fallback for BPF_ADDR_PERCPU insn") > > As there was a big code refactoring in linux 7.1, the changes in the new > file kernel/bpf/fixups.c will be backported to the positions in > kernel/bpf/verifier.c. > > Patch 1 introduces a new bit 'jit_required' in struct bpf_prog. The > other patches set 'jit_required' to fix the issues. > > Links: > [1] https://lore.kernel.org/bpf/BESPR02MB12296D62B1B3F33BA21C4F24AF1432@BESPR02MB12296.eurprd02.prod.outlook.com/ > [2] https://lore.kernel.org/bpf/MR1P264MB331494502C9D13D8A9EAFB99B7E82@MR1P264MB3314.FRAP264.PROD.OUTLOOK.COM/ > > Leon Hwang (2): > bpf: Disallow interpreter fallback for arena-related insns > bpf: Disallow interpreter fallback for BPF_ADDR_PERCPU insn > > Tiezhu Yang (2): > bpf: Introduce jit_required flag and remove bpf_prog_has_kfunc_call() > bpf: Reject programs with inlined helpers if JIT is not available > > include/linux/bpf.h | 22 +++++++++++++++------- > kernel/bpf/core.c | 7 ++----- > kernel/bpf/verifier.c | 21 ++++++++++++--------- > 3 files changed, 29 insertions(+), 21 deletions(-) > > -- > 2.55.0 >