Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3169835rwb; Mon, 15 Aug 2022 20:00:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR563IQd4VutOINq4NfIwSkFUWq1Oa9NVNzvtvXhgQlyYSiwGDn3dxI9zIXMbVQTWr4LJkd3 X-Received: by 2002:a17:90b:4c52:b0:1f5:5129:af1a with SMTP id np18-20020a17090b4c5200b001f55129af1amr30605276pjb.202.1660618837540; Mon, 15 Aug 2022 20:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660618837; cv=none; d=google.com; s=arc-20160816; b=UFNzQcFp9PGWBdQgD0/K1n6mnye5dQlB0jNFazjNz9N7uJZ0O4fmmQgljZWACFrugx QBFrx/OuJDlEk8qCjqIAaIzdD+vkKPKwhM1EJjMvZcG1u1NJZJEdSTha6DlshSO/dC6C TLSVJGMqo2ZcH8AiLo9SRVDvV1g5RxgEOq+ZJJBttDNVqmpSEWoaip+nxXFD/NXsI4jJ JxiIpoJ6HIinKx/PBETG04hPuN5Y2GVqWFlarOxT7vYMlbAE7pnF621HtcTv7Ycz79TW apLsfP9IUTQPtp6tLf59mwkdm8cQMediSVNnJTT1ClqOWiLeqaCQ0FU4Bo6WVZzKtaZx YVkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=weBOcZA00fi4ILOXX7g4clgWOCjO+grA0IJckTuPjCM=; b=TkZiwffdoQSvaNDzy7osQoQMT2cIsz93e71CcPYiFG5DJpIkyQ8wW7cCt20HPUjCJz EZQmNo5BPhaBU7zeE/dyquDLmp0fUYB6VWwvi8oMlB+81LGutlbhGCtykIoXu95DOvLx mZJo/S3buymPZScKaxYVPUYfDitjgNVzJSQD/cUQGBCIgpFtWZUhffPjnbyZJgNLlh9p NjWZbWYITfZIDxSO+ncYp9mITO2MhZss4XVqs97I9H75uJCr94zrzS18uKwxB035NUbs 0BSu0nboC0SEwUtP5VZ8oWQBk86ynTxv0/p+xEEw1tn9MxbrMV6vWmI+gyLeVmhIzfMm H86A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UexT5kxa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020a63bf0e000000b0040d4ea0274fsi12517484pgf.697.2022.08.15.20.00.25; Mon, 15 Aug 2022 20:00:37 -0700 (PDT) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=UexT5kxa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241119AbiHPCtg (ORCPT + 99 others); Mon, 15 Aug 2022 22:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbiHPCtU (ORCPT ); Mon, 15 Aug 2022 22:49:20 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6200F2B63B0; Mon, 15 Aug 2022 16:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660605287; x=1692141287; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=gymUZdI4Zmk7S6OzFKoQtBE8+Fa1MVe79gGq0K3OHDA=; b=UexT5kxawgdxLIEf7dOO+gsdPpN49Kqq+aSpCssKlGvXDUYQOB1MJGRj tuku0qtpDiq25ezr7rzVrPPrLKZzntfb/koLdq7Fa6ZXwYdIaXQtEeniK 1mUUw7QojFSQENk50JnSmvyDfaUfZm4xfpjdJRw0bhdDMqMJCY2IUKVmA cSD4IQHAdhUnG/lguA8HdDjJnOL3K2xrhrjCib0lTTHt6PHHP4OzENsrc T54anNaOWTF8pI5V2+izvq9y6ALunYZ8Fx7npzNnBHuxXRZFNjTn19BJj TaxG43HPGci9N3WENUAXOYM7SQbEXmajHtX80wBap0oam9HToPcuN38zb w==; X-IronPort-AV: E=McAfee;i="6400,9594,10440"; a="356081466" X-IronPort-AV: E=Sophos;i="5.93,239,1654585200"; d="scan'208";a="356081466" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2022 16:14:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,239,1654585200"; d="scan'208";a="674992473" Received: from lkp-server02.sh.intel.com (HELO 3d2a4d02a2a9) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 15 Aug 2022 16:14:41 -0700 Received: from kbuild by 3d2a4d02a2a9 with local (Exim 4.96) (envelope-from ) id 1oNjI8-0001Gb-1I; Mon, 15 Aug 2022 23:14:40 +0000 Date: Tue, 16 Aug 2022 07:13:50 +0800 From: kernel test robot To: Bobby Eshleman Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Bobby Eshleman , Cong Wang , Jiang Wang , Stefan Hajnoczi , Stefano Garzarella , "Michael S. Tsirkin" , Jason Wang , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org Subject: Re: [PATCH 2/6] vsock: return errors other than -ENOMEM to socket Message-ID: <202208160737.gXXFmPbY-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Bobby, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on mst-vhost/linux-next] [also build test WARNING on linus/master v6.0-rc1] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: i386-randconfig-a014-20220815 (https://download.01.org/0day-ci/archive/20220816/202208160737.gXXFmPbY-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6afcc4a459ead8809a0d6d9b4bf7b64bcc13582b) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/68c9c8216a573cdfe2170cad677854e2f4a34634 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812 git checkout 68c9c8216a573cdfe2170cad677854e2f4a34634 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/vmw_vsock/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> net/vmw_vsock/virtio_transport.c:178: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Merge the two most recent skbs together if possible. vim +178 net/vmw_vsock/virtio_transport.c 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 176 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 177 /** 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 @178 * Merge the two most recent skbs together if possible. 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 179 * 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 180 * Caller must hold the queue lock. 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 181 */ 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 182 static void 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 183 virtio_transport_add_to_queue(struct sk_buff_head *queue, struct sk_buff *new) 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 184 { 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 185 struct sk_buff *old; 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 186 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 187 spin_lock_bh(&queue->lock); 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 188 /* In order to reduce skb memory overhead, we merge new packets with 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 189 * older packets if they pass virtio_transport_skbs_can_merge(). 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 190 */ 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 191 if (skb_queue_empty_lockless(queue)) { 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 192 __skb_queue_tail(queue, new); 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 193 goto out; 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 194 } 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 195 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 196 old = skb_peek_tail(queue); 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 197 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 198 if (!virtio_transport_skbs_can_merge(old, new)) { 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 199 __skb_queue_tail(queue, new); 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 200 goto out; 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 201 } 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 202 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 203 memcpy(skb_put(old, new->len), new->data, new->len); 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 204 vsock_hdr(old)->len = cpu_to_le32(old->len); 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 205 vsock_hdr(old)->buf_alloc = vsock_hdr(new)->buf_alloc; 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 206 vsock_hdr(old)->fwd_cnt = vsock_hdr(new)->fwd_cnt; 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 207 dev_kfree_skb_any(new); 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 208 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 209 out: 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 210 spin_unlock_bh(&queue->lock); 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 211 } 93afaf2cdefaa9 Bobby Eshleman 2022-08-15 212 -- 0-DAY CI Kernel Test Service https://01.org/lkp