Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3971978rwl; Tue, 27 Dec 2022 19:17:38 -0800 (PST) X-Google-Smtp-Source: AMrXdXuTosxBOxj0pz4KdNRFOPT4qH7SbBYSlOxLU5rF5wpQScB/fDP7d9cD7Vg0Uq3YuFuXxqeu X-Received: by 2002:a05:6402:b91:b0:487:1a83:a6a0 with SMTP id cf17-20020a0564020b9100b004871a83a6a0mr3426457edb.13.1672197458502; Tue, 27 Dec 2022 19:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672197458; cv=none; d=google.com; s=arc-20160816; b=LQP5ymQlsk6Ow89OBhQi+8f3xlydFYF84EmgkRXxKuTLJZCB2PZUV0O6xBSZ3hJGul PVBjr90eaS5fLc84K+8zivrXSbwbKw/4FLLxMe143GlpVLOF+zqJb+4JuN545n8eoDSW InajyjUkGTogVCdU2CJEgmGYuCUkB5qNPeXNbvAaj0DFoTsIMHH1chMzPCv2YFgd+JcM riNFerINLeKJo8/RsV9qFRaUy8PaQRY+xsTxx5o/Uj+HqzjvTW8x5HKB0w00tcDsEuAr wApP5FA7Me9vbhbrOmQGgip1ABXiSSMvUr1S1PlWT/FKqZB8BH/wlyCFPSPXDPhT35yG fAiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=o4F50jMi4rXwioiskqfmeE1Dfi5f4v0dTIFHR3gBf1I=; b=v91RHIN0t9Iz9Naen6Y7DSJW/EM4eyiBWWrOMHT8VKdllVpFLTZGtoyfmaExzxoj14 QcpaAU6V48bYukc8lH82k9MECLShlJvr6t3eq+yB7v4D38/xkk5bOTlPi0m1rT8jTh0h 0niiNRctWknK5blCXT/9zFt3EyUTR+o60AwNBmG/LoFrBpZEH1/8liHi4tDUpeWPOl9G C2f6umRU8Jb2KA36H1ML3ZKmBAUlDNMRZmr1GTlhgBD++ud9moiNLT1mQF4Y/gtl3sie hxWhVmb8kId4QgLSpAaupguo03aCwDjgs0uRhvvmw9F4y8iqKgViraLipx5i45zY1kKd J3PQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26-20020aa7d8da000000b0046c44118d51si10915947eds.57.2022.12.27.19.17.23; Tue, 27 Dec 2022 19:17:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230002AbiL1Byu (ORCPT + 65 others); Tue, 27 Dec 2022 20:54:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232525AbiL1ByV (ORCPT ); Tue, 27 Dec 2022 20:54:21 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [183.62.165.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 632B21005 for ; Tue, 27 Dec 2022 17:54:20 -0800 (PST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4NhZMG5rM2z501Qc; Wed, 28 Dec 2022 09:54:18 +0800 (CST) Received: from xaxapp02.zte.com.cn ([10.88.97.241]) by mse-fl2.zte.com.cn with SMTP id 2BS1sBhk035276; Wed, 28 Dec 2022 09:54:11 +0800 (+08) (envelope-from guo.ziliang@zte.com.cn) Received: from mapi (xaxapp03[null]) by mapi (Zmail) with MAPI id mid32; Wed, 28 Dec 2022 09:54:12 +0800 (CST) Date: Wed, 28 Dec 2022 09:54:12 +0800 (CST) X-Zmail-TransId: 2afb63aba1c4fffffffffae57a6b X-Mailer: Zmail v1.0 Message-ID: <202212280954121197626@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , , Subject: =?UTF-8?B?W1BBVENIXSBhcm02NC91cHJvYmVzOiBjaGFuZ2UgdGhlIHVwcm9iZV9vcGNvZGVfdCB0eXBlZGVmIHRvIGZpeCB0aGUgc3BhcnNlIHdhcm5pbmc=?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 2BS1sBhk035276 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.251.13.novalocal with ID 63ABA1CA.001 by FangMail milter! X-FangMail-Envelope: 1672192458/4NhZMG5rM2z501Qc/63ABA1CA.001/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 63ABA1CA.001/4NhZMG5rM2z501Qc X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 degrades to integer >> kernel/events/uprobes.c:574:56: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected unsigned int [addressable] [usertype] opcode @@ got restricted __le32 [usertype] @@ kernel/events/uprobes.c:574:56: sparse: expected unsigned int [addressable] [usertype] opcode kernel/events/uprobes.c:574:56: sparse: got restricted __le32 [usertype] >> kernel/events/uprobes.c:1483:32: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned int [usertype] insn @@ got restricted __le32 [usertype] @@ kernel/events/uprobes.c:1483:32: sparse: expected unsigned int [usertype] insn kernel/events/uprobes.c:1483:32: sparse: got restricted __le32 [usertype] 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/uprobes.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 { }; -- 2.15.2