From nobody Wed Sep 17 19:24:37 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DAECC4332F for ; Fri, 16 Dec 2022 08:51:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229913AbiLPIu6 (ORCPT ); Fri, 16 Dec 2022 03:50:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbiLPIuw (ORCPT ); Fri, 16 Dec 2022 03:50:52 -0500 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DF696541 for ; Fri, 16 Dec 2022 00:50:49 -0800 (PST) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4NYN9L4tYkz8R039; Fri, 16 Dec 2022 16:50:46 +0800 (CST) Received: from xaxapp03.zte.com.cn ([10.88.40.52]) by mse-fl1.zte.com.cn with SMTP id 2BG8obeY048049; Fri, 16 Dec 2022 16:50:38 +0800 (+08) (envelope-from guo.ziliang@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid32; Fri, 16 Dec 2022 16:50:40 +0800 (CST) Date: Fri, 16 Dec 2022 16:50:40 +0800 (CST) X-Zmail-TransId: 2afa639c3160ffffffffb8630f8e X-Mailer: Zmail v1.0 Message-ID: <202212161650404440816@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , Subject: =?UTF-8?B?W1BBVENIXSBhcm02NC91cHJvYmVzOiBjaGFuZ2UgdGhlIHVwcm9iZV9vcGNvZGVfdCB0eXBlZGVmIHRvIGZpeCB0aGUgc3BhcnNlIHdhcm5pbmc=?= X-MAIL: mse-fl1.zte.com.cn 2BG8obeY048049 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 639C3166.001 by FangMail milter! X-FangMail-Envelope: 1671180646/4NYN9L4tYkz8R039/639C3166.001/10.5.228.132/[10.5.228.132]/mse-fl1.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 639C3166.001/4NYN9L4tYkz8R039 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: junhua huang After we fixed the uprobe inst endian in aarch_be, the sparse check report the following warning info: sparse warnings: (new ones prefixed by >>) >> kernel/events/uprobes.c:223:25: sparse: sparse: restricted __le32 degrad= es to integer >> kernel/events/uprobes.c:574:56: sparse: sparse: incorrect type in argume= nt 4 (different base types) @@ expected unsigned int [addressable] [usertype] opcode @@ got res= tricted __le32 [usertype] @@ kernel/events/uprobes.c:574:56: sparse: expected unsigned int [addre= ssable] [usertype] opcode kernel/events/uprobes.c:574:56: sparse: got restricted __le32 [usert= ype] >> kernel/events/uprobes.c:1483:32: sparse: sparse: incorrect type in initi= alizer (different base types) @@ expected unsigned int [usertype] insn @@ got restricted __le32 [= usertype] @@ kernel/events/uprobes.c:1483:32: sparse: expected unsigned int [user= type] insn kernel/events/uprobes.c:1483:32: sparse: got restricted __le32 [user= type] use the __le32 to u32 for uprobe_opcode_t, to keep the same. Fixes: 60f07e22a73d ("arm64:uprobe fix the uprobe SWBP_INSN in big-endian") Reported-by: kernel test robot Signed-off-by: junhua huang --- arch/arm64/include/asm/uprobes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/uprobes.h b/arch/arm64/include/asm/upro= bes.h index ba4bff5ca674..2b09495499c6 100644 --- a/arch/arm64/include/asm/uprobes.h +++ b/arch/arm64/include/asm/uprobes.h @@ -16,7 +16,7 @@ #define UPROBE_SWBP_INSN_SIZE AARCH64_INSN_SIZE #define UPROBE_XOL_SLOT_BYTES MAX_UINSN_BYTES -typedef u32 uprobe_opcode_t; +typedef __le32 uprobe_opcode_t; struct arch_uprobe_task { }; --=20 2.15.2