From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id qa/oD9Wt9Wo5egQAWB0awg (envelope-from ) for ; Thu, 12 Nov 2026 07:15:17 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=g4fiN8Uz; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 193C51E04F; Thu, 12 Nov 2026 07:15:17 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 5DC781E04F for ; Thu, 12 Nov 2026 07:15:13 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D19504BA2E21 for ; Thu, 12 Nov 2026 12:15:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D19504BA2E21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1794485712; bh=PTuhGE6Nm/Hn6HIsPMWsWJ4/ckfKaCtHn2EtdMsuJsI=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=g4fiN8UzeG/qJmZ9yYvXP3y+cdTJuVJwr3EyXMP2tdCuwg0zEkYallGkqdhgR/Z1D zbThPJqAbF2XlFcTYDb79wraj/ugjy0izHAIvKM004RP9ncAP01FRG7/PuykxG/B1Z fpYJjVaA+LJhkoimd7KpM9bp357HJZ4b8VdKmtz4= Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by sourceware.org (Postfix) with ESMTPS id 64A6A4BA2E21 for ; Thu, 12 Nov 2026 12:13:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64A6A4BA2E21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 64A6A4BA2E21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794485580; cv=none; b=qb1RhJvCQ/hF2dPez0bnTVpV9YO449CZjSPBUXFp9wPOmyq3xxIxi+gK8+paqulePAA63Rxog6ldhf5jt8kbUELBGOT6o6q43ChgyCtP/xdM2/hjPFSW04bjJ53yTi61M9Sub8fRujhHv9x7vB+tqtOSQzgntGnXQd9EQIx4CEc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794485580; c=relaxed/simple; bh=jUEzBgnghcvibNTjFO0S5WBM3pHNMSH0GtLNmn73Fl4=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=wKdXR0TBm2WpYzIvegVki+I7PrF36FfwJMh444efa1ieopCyZYyW6xKBFcY9tFs5xNmv4EC+G0PJDxPc9CQ4xsaKGGbMjSrSKabJdksmNnEfwifZi1cwo/1i2+YqS7so5C8/UCJJzzFLxYwI/M9XZnGM+sffjBIgUEexD2iN96U= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=i3fFz+y8 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64A6A4BA2E21 X-CSE-ConnectionGUID: T8ueITeKSRuDguyheqJqwg== X-CSE-MsgGUID: eggw2/DKTUahwVmsWQ58RQ== X-IronPort-AV: E=McAfee;i="6800,10657,11963"; a="3366523" X-IronPort-AV: E=Sophos;i="6.27,209,1787036400"; d="scan'208";a="3366523" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Nov 2026 04:12:59 -0800 X-CSE-ConnectionGUID: CVltBxJqR1af0Fr3Zx6Iyw== X-CSE-MsgGUID: +BZJ4MbYS4+JcdJtiUisaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,209,1787036400"; d="scan'208";a="9081723" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 12 Nov 2026 04:12:55 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xRTff-000000011GV-1MMO; Thu, 12 Nov 2026 12:12:51 +0000 Date: Thu, 12 Nov 2026 20:12:29 +0800 To: Andy Chiu , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Oleg Nesterov , linux-riscv@lists.infradead.org Cc: oe-kbuild-all@lists.linux.dev, andybnac@gmail.com, daichengrong , gdb@sourceware.org, Andy Chiu , dfustini@oss.tenstorrent.com, greentime.hu@sifive.com, Yong-Xuan Wang , Aurelien Jarno , Anup Patel , Guobin Zhang , Troy Mitchell , Deepak Gupta , Sergey Matyukevich Subject: Re: [PATCH v7 3/6] riscv: clarify vector state semantics on syscall and context switch Message-ID: <202611122049.91BrkXTs-lkp@intel.com> References: <20261111184359.1239821-4-tchiu@tenstorrent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261111184359.1239821-4-tchiu@tenstorrent.com> X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: kernel test robot via Gdb Reply-To: kernel test robot Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi Andy, kernel test robot noticed the following build errors: [auto build test ERROR on d1a8d411533d6be16ac79796c02a9bfc7d7958f1] url: https://github.com/intel-lab-lkp/linux/commits/Andy-Chiu/riscv-vector-refactor-vector-context-operations/20261111-124323 base: d1a8d411533d6be16ac79796c02a9bfc7d7958f1 patch link: https://lore.kernel.org/r/20261111184359.1239821-4-tchiu%40tenstorrent.com patch subject: [PATCH v7 3/6] riscv: clarify vector state semantics on syscall and context switch config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20261112/202611122049.91BrkXTs-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 16.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261112/202611122049.91BrkXTs-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202611122049.91BrkXTs-lkp@intel.com/ All errors (new ones prefixed by >>): arch/riscv/kernel/signal.c: In function '__restore_v_state': >> arch/riscv/kernel/signal.c:130:9: error: implicit declaration of function '__riscv_v_vstate_clean'; did you mean 'riscv_v_vstate_query'? [-Wimplicit-function-declaration] 130 | __riscv_v_vstate_clean(regs); | ^~~~~~~~~~~~~~~~~~~~~~ | riscv_v_vstate_query vim +130 arch/riscv/kernel/signal.c 107 108 /* 109 * Restore Vector extension context from the user's signal frame. This function 110 * assumes a valid extension header. So magic and size checking must be done by 111 * the caller. 112 */ 113 static long __restore_v_state(struct pt_regs *regs, void __user *sc_vec) 114 { 115 long err; 116 struct __sc_riscv_v_state __user *state = sc_vec; 117 void __user *datap; 118 119 /* 120 * Mark the vstate as clean prior performing the actual copy, 121 * to avoid getting the vstate incorrectly clobbered by the 122 * discarded vector state. 123 * 124 * This also allows user to modify vregs through the signal 125 * interface at a syscall stop. e.g. to support user space 126 * context switching. 127 */ 128 preempt_disable(); 129 riscv_v_vstate_set_restore(current, regs); > 130 __riscv_v_vstate_clean(regs); 131 preempt_enable(); 132 133 /* Copy everything of __sc_riscv_v_state except datap. */ 134 err = __copy_from_user(¤t->thread.vstate, &state->v_state, 135 offsetof(struct __riscv_v_ext_state, datap)); 136 if (unlikely(err)) 137 return err; 138 139 /* Copy the pointer datap itself. */ 140 err = __get_user(datap, &state->v_state.datap); 141 if (unlikely(err)) 142 return err; 143 /* 144 * Copy the whole vector content from user space datap. Use 145 * copy_from_user to prevent information leak. 146 */ 147 return copy_from_user(current->thread.vstate.datap, datap, riscv_v_vsize); 148 } 149 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki