From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.194 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796367427; b=apIrrfHhq46HWgiFAEAB/lfFkmnpM2wTZi2X2C2/ucbsdz5lU649/IQtCvcwiA6QVLow Rf9XbFaY35Y8pMh2/UZ7LivW+A1znkSEKQcmdpZOH+A2IySVCGkNkBSq+D+AEZO1A6fsL A8i1DEqCBUJ27Y9z50RA/h5TNSWS63CXsZwFifZpN+Xz9L421hJqRNRV/hA3w1uPAHJRx ZKnb728SLjS01jKYdsNQSWjTG0vmpLb40CZuuODYTT8T6D9/66mvhgsaN3v/ykGbeEpGa Fa7PAWa8KhYkv2l5V3BfqoHw/T9pw8GC4Q2GbI9wWiqciROV0TAHupVEFsU9Jx2eeUw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796367427; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=YCw2zcrSdpkQFQUEYPPilJy14G6RYDQLIadoRaEZUe4=; b=O/VCXBhuejGqUcfHlUSvw4D3OXDkN3LAYLVT2D2xtVb32ijWWKyadFFUsb0kN82aSKHE ElU9GHfZubCs/CvWwIBIK8FAhXQtAIrs3KRan4Qb7AldLjl7732DMkm4ifBRbgtBBwRR2 ii9qwV9nX5VJ3uutlxfydsy7Xu8k+mEU61JQ0ZAd+6EVZwUsemfWdTGpWyf/DMHyvv1Tm qymOrgvYMzsJ7FAbBvpaRvnRjl7xlAuzIqDH1SLp94EAoLDXAcjSN3156wKoLMt8SVScx iSJidFe42HjUZqkN3a23sTLiUgygy16mp0bYfX/9vSmRK4N5MZ87iV90P1Iq8KsWzbw== 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=rmJ0iBy3; arc=none smtp.remote-ip=95.215.58.194 Received: from mta1.migadu.com (out-194.mta1.migadu.com [95.215.58.194]) (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 3734D606A32D for ; Fri, 4 Dec 2026 06:57:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3734D606A32D 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=rmJ0iBy3 X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=H4g61ryDlFM2nx3QEmxhZwa5lyGH9U1RJUJ/svrwgEs=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796367424; v=1; x=1796972224; b=rmJ0iBy3WMzkTAaNtU06+NHzYiDPCf1e4NBOYMbOIhdH9SAqIs2CDM0xBZIvDY4ek9RIaa/p dZpELHdUdlU+HZfddSUDSH/kBYUeAAhRa/uXO0jNvLFndUOCuSB6j6+XFzN5ObXP2PgGooZTuUb 69abGphlDgtfWbvV5iYlWqRQ= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id dafa76d8770a6c11; Fri, 04 Dec 2026 06:57:04 +0000 X-Mizu-Trace-ID: dafa76d8770a6c11 X-Migadu-Flow: FLOW_OUT From: George Guo To: yangtiezhu@loongson.cn Cc: chenhuacai@kernel.org, hengqi.chen@gmail.com, loongarch@lists.linux.dev, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, George Guo Subject: Re: [PATCH v1 0/4] LoongArch: BPF: Support instructions array, indirect jumps and calls Date: Thu, 3 Dec 2026 22:56:54 -0800 Message-ID: <20261204065654.13835-1-dongtai.guo@linux.dev> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261123043907.20225-1-yangtiezhu@loongson.cn> References: <20261123043907.20225-1-yangtiezhu@loongson.cn> 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 Content-Transfer-Encoding: 8bit On 2026/11/23 12:39, Tiezhu Yang wrote: > Tested with the series of BPF selftests, here are the test results: > > $ sudo ./test_progs -t bpf_insn_array | tail -1 > Summary: 1/20 PASSED, 0 SKIPPED, 0/0 FAILED > > $ sudo ./test_progs-cpuv4 -t gotox | tail -1 > Summary: 2/14 PASSED, 0 SKIPPED, 0/0 FAILED > > $ sudo ./test_progs -t callx | tail -1 > Summary: 6/89 PASSED, 6 SKIPPED, 0/0 FAILED Tested the whole series on Loongson-3C6000. These tests are skipped on LoongArch upstream, so I added LoongArch to the arch checks in bpf_insn_array.c, callx_func_ptr_map.c, callx_rodata_lskel.c, verifier_callx.c, verifier_callx_rodata.c and verifier_gotox.c locally: $ sudo ./test_progs -t bpf_insn_array | tail -1 Summary: 1/20 PASSED, 0 SKIPPED, 0/0 FAILED $ sudo ./test_progs-cpuv4 -t gotox | tail -1 Summary: 2/47 PASSED, 0 SKIPPED, 0/0 FAILED $ sudo ./test_progs -t jit_insns,jit_insns_blinded | tail -1 Summary: 2/47 PASSED, 0 SKIPPED, 0/0 FAILED With CONFIG_ARCH_STRICT_ALIGN=n: $ sudo ./test_progs -t callx | tail -1 Summary: 4/77 PASSED, 0 SKIPPED, 0/0 FAILED With CONFIG_ARCH_STRICT_ALIGN=y: $ sudo ./test_progs -t callx | tail -1 Summary: 3/76 PASSED, 0 SKIPPED, 1/1 FAILED The only failure with CONFIG_ARCH_STRICT_ALIGN=y is verifier_callx_rodata/callx_rodata_misaligned_read, and it is not related to this series. HAVE_EFFICIENT_UNALIGNED_ACCESS is not set then, so the verifier checks alignment strictly. The program is still rejected as expected, but by the alignment check first: misaligned value access off 352+4 size 8 instead of the message the test looks for: read of 8 bytes at offset Reviewed-by: George Guo Tested-by: George Guo Thanks, George