From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DD601632C8 for ; Fri, 27 Jun 2025 14:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751034984; cv=none; b=DVPT9hFBcAfhNV0IpDSwwBSsu/3L+Nu4oIlNEPfBi+TPzS+QwcCGhwgRTIQP9ihfXqIALg7/b5J3kI6BaYPUShG6oyzpVBqfdcpoDc3kmhm3kXxYYYP7VUi9Z235GlaTuzV1EgD9tv59iID57MVTEZywzX2dDjVf4cQ1wmab6b4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751034984; c=relaxed/simple; bh=Tfu8JZFRme0Wx7D48w6lMCNGofFMcZDYXD29DNRCWMs=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=ddXmGeuuZzofQ5BeV9XXO0G0RU+v5SCrA+aB0xm32fqYCrDaVLcJEyYvZGxLrvp7G/jMF7ld7GZn9ojADinz6bf5ZDGYOFAAjq0attZhRjvUPqmVo1Obyy9/d0lrnx8+QtZrxUGCx1QJbv1yeNc8vlt91o/vMHL6OUoeywJCWZg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=QqEkXbma; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QqEkXbma" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1751034980; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6d2ywoZ4WYJbwX3rPgTWq2na+2kMYRT6d9X4oshzDcQ=; b=QqEkXbmau+L6+w8uQvsECL/gHGkY/md7Lcb24DlXC27+MPW3ZETBk8Aao6+Ak20hOQP7FA Z/4pnGbXebdUcI2CBJphg8TqDJ7RJOnX+4UQCNKjKaOCUjG3zf9c2HP9ipSQv3t1bGhx1F dwFgIxqWEfsOSfM6F9b7/JHkL2F9MX4= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-674-iKeUkuy9PxOCsM2xBNrRJg-1; Fri, 27 Jun 2025 10:36:19 -0400 X-MC-Unique: iKeUkuy9PxOCsM2xBNrRJg-1 X-Mimecast-MFC-AGG-ID: iKeUkuy9PxOCsM2xBNrRJg_1751034978 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-3a4f6ff23ccso1443664f8f.2 for ; Fri, 27 Jun 2025 07:36:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751034978; x=1751639778; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6d2ywoZ4WYJbwX3rPgTWq2na+2kMYRT6d9X4oshzDcQ=; b=t+l3Oxsox3X9sevJu+sz9WqTR0Z5pHdhI3nosGylAVd3gHpL8GLcfgjLF9vcVI5NbX Jg3njPLPIisnRj1NIHNFvA84CxfATol4BIf0rI5/Ray+us2HEBZubAzQo5T8SClCc2ru GFl6o8oUYDgzqI1RldsnbCw7x1M2HKHCsjLwwryZgoHu2webbmzUGpMvKqp+HXcSRZ9U kZq+PkZVXkyFQ2kkdBQmdd+CkLf39vOpKJrwdNqlgVQuSLq8ERISVv4uDLYdhHUB08pp kFRwiEmN/aTGy3iQSm6q0zvXvRjadJr54KKNCpmVtMR+0npwi6Je862z/npn4fBeM76/ cupQ== X-Forwarded-Encrypted: i=1; AJvYcCX4NiZFAaThvFQSXFv76Q2OkdSWiIq5i1uT6aXE8yJ0WhmkjUL1Akzm/priu6JyjlaCgBdv3VuMCODb@vger.kernel.org X-Gm-Message-State: AOJu0YwxIYPLz+YhA/ghU9CkQJyqFf+RsYh0zfCuXfiBlEhC3kz8tyVe Osdzm0+bGnxW4Y/5CwpYBZg28YwX7mmBBatXy29W3Tc1YkwTQ+RI6WX1r5ySORr2U3j2w8jiCsk u7Dq1Qwe8IcUYzos1F3DiZx2WAg4nMyr3KJUoANOff5UaqpmOlQIYilo+U0ZMyVk= X-Gm-Gg: ASbGncup4MsxNXa3P2utKz746xz8/zKwvItwX/HNXet1/ZsZ34nnWPj14qRlgmwQEjd C2pirxJysB8ceJD+PUU9io7/flbZrx0t2I4GXT1BLqkxCltdgeFUFVG9hMvpMvzJdWlZFMZkAY1 YhCGmLqqQ5HawhTSrtVx6SqCnkdRzlVx7MDiJ+vvZK0w4JEhzKDk5hswuK8ZHVIcFHqsJnh9b7s qMr2axYvYOZW246hO/Q3IoKtlS9klajAqv7MHdgBTrP9sUqlK2jn9oDHjDX6VQ/qqeHb/lRxTh5 xLOuzZ8kbq17jeu4PGpKc6cKTutMloFQSbqm/zH9MG4qMnYjtPd6JxiuCXWbrYlmIHqfxQ== X-Received: by 2002:a5d:620d:0:b0:3a5:2ef8:34f9 with SMTP id ffacd0b85a97d-3a917603b17mr2772868f8f.27.1751034977618; Fri, 27 Jun 2025 07:36:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFrL2JMPa0B3wSUQcYTT6SCHofxYsyABbFr/1j92PwwqgB+hJXVVINt691+I+fzBXgGF7JEog== X-Received: by 2002:a5d:620d:0:b0:3a5:2ef8:34f9 with SMTP id ffacd0b85a97d-3a917603b17mr2772834f8f.27.1751034977124; Fri, 27 Jun 2025 07:36:17 -0700 (PDT) Received: from ?IPV6:2a0d:3344:244f:bd10:2bd0:124a:622c:badb? ([2a0d:3344:244f:bd10:2bd0:124a:622c:badb]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4538a390d3fsm53563295e9.1.2025.06.27.07.36.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Jun 2025 07:36:16 -0700 (PDT) Message-ID: <27f1275a-aaff-4cc2-896c-b2c34f08ab73@redhat.com> Date: Fri, 27 Jun 2025 16:36:14 +0200 Precedence: bulk X-Mailing-List: linux-csky@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 net-next 4/9] vhost-net: allow configuring extended features From: Paolo Abeni To: kernel test robot , netdev@vger.kernel.org, Guo Ren , linux-csky@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Willem de Bruijn , Jason Wang , Andrew Lunn , Eric Dumazet , Jakub Kicinski , "Michael S. Tsirkin" , Xuan Zhuo , =?UTF-8?Q?Eugenio_P=C3=A9rez?= , Yuri Benditovich , Akihiko Odaki , Jonathan Corbet , kvm@vger.kernel.org, linux-doc@vger.kernel.org References: <23e46bff5333015d92bf0876033750d9fbf555a0.1750753211.git.pabeni@redhat.com> <202506271443.G9cAx8PS-lkp@intel.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/27/25 3:11 PM, Paolo Abeni wrote: > +csky maintainer > On 6/27/25 8:41 AM, kernel test robot wrote: >> Hi Paolo, >> >> kernel test robot noticed the following build warnings: >> >> [auto build test WARNING on net-next/main] >> >> url: https://github.com/intel-lab-lkp/linux/commits/Paolo-Abeni/scripts-kernel_doc-py-properly-handle-VIRTIO_DECLARE_FEATURES/20250624-221751 >> base: net-next/main >> patch link: https://lore.kernel.org/r/23e46bff5333015d92bf0876033750d9fbf555a0.1750753211.git.pabeni%40redhat.com >> patch subject: [PATCH v6 net-next 4/9] vhost-net: allow configuring extended features >> config: csky-randconfig-001-20250627 (https://download.01.org/0day-ci/archive/20250627/202506271443.G9cAx8PS-lkp@intel.com/config) >> compiler: csky-linux-gcc (GCC) 15.1.0 >> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250627/202506271443.G9cAx8PS-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/202506271443.G9cAx8PS-lkp@intel.com/ >> >> All warnings (new ones prefixed by >>): >> >> In file included from include/linux/uaccess.h:12, >> from include/linux/sched/task.h:13, >> from include/linux/sched/signal.h:9, >> from include/linux/rcuwait.h:6, >> from include/linux/percpu-rwsem.h:7, >> from include/linux/fs.h:34, >> from include/linux/compat.h:17, >> from drivers/vhost/net.c:8: >> arch/csky/include/asm/uaccess.h: In function '__get_user_fn.constprop': >>>> arch/csky/include/asm/uaccess.h:147:9: warning: 'retval' is used uninitialized [-Wuninitialized] >> 147 | __asm__ __volatile__( \ >> | ^~~~~~~ >> arch/csky/include/asm/uaccess.h:187:17: note: in expansion of macro '__get_user_asm_64' >> 187 | __get_user_asm_64(x, ptr, retval); >> | ^~~~~~~~~~~~~~~~~ >> arch/csky/include/asm/uaccess.h:170:13: note: 'retval' was declared here >> 170 | int retval; >> | ^~~~~~ >> >> >> vim +/retval +147 arch/csky/include/asm/uaccess.h >> >> da551281947cb2c Guo Ren 2018-09-05 141 >> e58a41c2226847f Guo Ren 2021-04-21 142 #define __get_user_asm_64(x, ptr, err) \ >> da551281947cb2c Guo Ren 2018-09-05 143 do { \ >> da551281947cb2c Guo Ren 2018-09-05 144 int tmp; \ >> e58a41c2226847f Guo Ren 2021-04-21 145 int errcode; \ >> e58a41c2226847f Guo Ren 2021-04-21 146 \ >> e58a41c2226847f Guo Ren 2021-04-21 @147 __asm__ __volatile__( \ >> e58a41c2226847f Guo Ren 2021-04-21 148 "1: ldw %3, (%2, 0) \n" \ >> da551281947cb2c Guo Ren 2018-09-05 149 " stw %3, (%1, 0) \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 150 "2: ldw %3, (%2, 4) \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 151 " stw %3, (%1, 4) \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 152 " br 4f \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 153 "3: mov %0, %4 \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 154 " br 4f \n" \ >> da551281947cb2c Guo Ren 2018-09-05 155 ".section __ex_table, \"a\" \n" \ >> da551281947cb2c Guo Ren 2018-09-05 156 ".align 2 \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 157 ".long 1b, 3b \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 158 ".long 2b, 3b \n" \ >> da551281947cb2c Guo Ren 2018-09-05 159 ".previous \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 160 "4: \n" \ >> e58a41c2226847f Guo Ren 2021-04-21 161 : "=r"(err), "=r"(x), "=r"(ptr), \ >> e58a41c2226847f Guo Ren 2021-04-21 162 "=r"(tmp), "=r"(errcode) \ >> e58a41c2226847f Guo Ren 2021-04-21 163 : "0"(err), "1"(x), "2"(ptr), "3"(0), \ >> e58a41c2226847f Guo Ren 2021-04-21 164 "4"(-EFAULT) \ >> da551281947cb2c Guo Ren 2018-09-05 165 : "memory"); \ >> da551281947cb2c Guo Ren 2018-09-05 166 } while (0) >> da551281947cb2c Guo Ren 2018-09-05 167 > > The intel test report reported the above compile warning on this series: > > https://lore.kernel.org/netdev/20250627084609-mutt-send-email-mst@kernel.org/T/#md788de2b3a4e9da23ac93b5f1c773a6070b5b4fb > > specifically, in patch 4: > > + if (get_user(features, featurep + 1 + i)) > + return -EFAULT; > > AFAICS such statement is legit, and the bot points to some problem in > the arch specific get_user() implementation. Could you please have a look? Out of sheer ignorance on my side, I fail to see how the csky get_user() could work correctly without something alike the following (which indeed fixes the issue here). /P --- diff --git a/arch/csky/include/asm/uaccess.h b/arch/csky/include/asm/uaccess.h index 2e927c21d8a1..ae0864ad59a3 100644 --- a/arch/csky/include/asm/uaccess.h +++ b/arch/csky/include/asm/uaccess.h @@ -167,7 +167,7 @@ do { \ static inline int __get_user_fn(size_t size, const void __user *ptr, void *x) { - int retval; + int retval = 0; u32 tmp; switch (size) {