Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp939619pxk; Mon, 31 Aug 2020 05:45:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxC4RX7+bzjn2h12o92n9Q7dl49gkYooa08VmzaO4uhGSGSmGW9jDm1bbfAGfu9s1xh7HeU X-Received: by 2002:a17:906:5fc7:: with SMTP id k7mr974189ejv.1.1598877926194; Mon, 31 Aug 2020 05:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598877926; cv=none; d=google.com; s=arc-20160816; b=J0QKefMGJVuxsiRYrnOzh86/QFZc8C8c2LbkA3uyTmBzPPViiTaJT913Eft0BmOmc5 s+3F/rmPlo4Kz3ckwC1iiFHAvsKM8rqhlMOUNBYXli3CIfu3LVbBU/cOP90jbEpzh3Jd lAy0qR+2AHd8p2DsZXKUsqILyildZQCtU6TzevmPjq0miI34eVtBWipy6KJ/slwMJ0Sj SbMd9SrtszUdV8T9+RdhU6Y8Vyc/Gd21uQROrHiu7vhHgOlNIgFplJ2a4wD7NzwRtUGa lXXC5xEdTgYMv6seuPy9wY4528iDxMPnAc+3buDD1GUw7lQDspbAFF1YgQmgsW9J4wFU k2Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=c/WG5fcMTie1VjtaSXR6gIS2hwLAOw+3i0A0EriYyms=; b=rOX4QPxlVpsPzsGPUDpFNp7uzI7HxQgv8PY7r2ivEMaqjBx7EFkFI6GwQh7aAISKK+ cFRMUW1NhCGCcYdI8AETTKPJ8CJJbjSn2pnvBReYNbDDwqLGOJW3MK+gji8vWKu5XA9J v4xIl029rk76AYZJ6TBlWuA+X+MigjJMe/lAZQsoLF2mRvUnV83BI/P13NM6aUAVimwZ 8bL++i9cgudXep3xe6utj7I4/oSSXjHZaRiADa2ifQfejSEpX8KkkORYzO8BFG2tDdWE lIrwMA50kTXZWVilJC1h2RGpAXHEXyMsZpIyqpSmuAeUiTNWYb+4lgu7+yHYSagaEAih GKOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z70si5205362ede.247.2020.08.31.05.45.03; Mon, 31 Aug 2020 05:45:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726326AbgHaMoW convert rfc822-to-8bit (ORCPT + 99 others); Mon, 31 Aug 2020 08:44:22 -0400 Received: from smtp.h3c.com ([60.191.123.50]:51158 "EHLO h3cspam02-ex.h3c.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbgHaMoT (ORCPT ); Mon, 31 Aug 2020 08:44:19 -0400 Received: from h3cspam02-ex.h3c.com (localhost [127.0.0.2] (may be forged)) by h3cspam02-ex.h3c.com with ESMTP id 07VB44Iw027203 for ; Mon, 31 Aug 2020 19:04:04 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from DAG2EX02-BASE.srv.huawei-3com.com ([10.8.0.65]) by h3cspam02-ex.h3c.com with ESMTPS id 07VB3phN027079 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Aug 2020 19:03:51 +0800 (GMT-8) (envelope-from tian.xianting@h3c.com) Received: from DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) by DAG2EX02-BASE.srv.huawei-3com.com (10.8.0.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 31 Aug 2020 19:03:54 +0800 Received: from DAG2EX03-BASE.srv.huawei-3com.com ([fe80::5d18:e01c:bbbd:c074]) by DAG2EX03-BASE.srv.huawei-3com.com ([fe80::5d18:e01c:bbbd:c074%7]) with mapi id 15.01.1713.004; Mon, 31 Aug 2020 19:03:54 +0800 From: Tianxianting To: kernel test robot , "kbusch@kernel.org" , "axboe@fb.com" , "hch@lst.de" , "sagi@grimberg.me" CC: "kbuild-all@lists.01.org" , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] nvme-pci: check req to prevent crash in nvme_handle_cqe() Thread-Topic: [PATCH] nvme-pci: check req to prevent crash in nvme_handle_cqe() Thread-Index: AQHWf2RcPXKUYIdfu0aQ67Gvv7x69alRcK+AgACNmNA= Date: Mon, 31 Aug 2020 11:03:54 +0000 Message-ID: References: <20200831065311.40731-1-tian.xianting@h3c.com> <202008311754.Gbt69JQN%lkp@intel.com> In-Reply-To: <202008311754.Gbt69JQN%lkp@intel.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.99.141.128] x-sender-location: DAG2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-DNSRBL: X-MAIL: h3cspam02-ex.h3c.com 07VB3phN027079 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am very sorry, I used the wrong patch file :( I send it again. Please review, thanks. -----Original Message----- From: kernel test robot [mailto:lkp@intel.com] Sent: Monday, August 31, 2020 5:41 PM To: tianxianting (RD) ; kbusch@kernel.org; axboe@fb.com; hch@lst.de; sagi@grimberg.me Cc: kbuild-all@lists.01.org; linux-nvme@lists.infradead.org; linux-kernel@vger.kernel.org; tianxianting (RD) Subject: Re: [PATCH] nvme-pci: check req to prevent crash in nvme_handle_cqe() Hi Xianting, Thank you for the patch! Yet something to improve: [auto build test ERROR on v5.9-rc2] [also build test ERROR on next-20200828] [cannot apply to linus/master v5.9-rc3] [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] url: https://github.com/0day-ci/linux/commits/Xianting-Tian/nvme-pci-check-req-to-prevent-crash-in-nvme_handle_cqe/20200831-155653 base: d012a7190fc1fd72ed48911e77ca97ba4521bccd config: parisc-randconfig-r004-20200831 (attached as .config) compiler: hppa-linux-gcc (GCC) 9.3.0 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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/nvme/host/pci.c: In function 'nvme_handle_cqe': >> drivers/nvme/host/pci.c:3244: error: unterminated argument list invoking macro "dev_warn" 3244 | module_exit(nvme_exit); | >> drivers/nvme/host/pci.c:966:3: error: 'dev_warn' undeclared (first use in this function); did you mean '_dev_warn'? 966 | dev_warn(nvmeq->dev->ctrl.device, | ^~~~~~~~ | _dev_warn drivers/nvme/host/pci.c:966:3: note: each undeclared identifier is reported only once for each function it appears in >> drivers/nvme/host/pci.c:966:11: error: expected ';' at end of input 966 | dev_warn(nvmeq->dev->ctrl.device, | ^ | ; ...... 3244 | module_exit(nvme_exit); | >> drivers/nvme/host/pci.c:966:3: error: expected declaration or >> statement at end of input 966 | dev_warn(nvmeq->dev->ctrl.device, | ^~~~~~~~ >> drivers/nvme/host/pci.c:966:3: error: expected declaration or >> statement at end of input drivers/nvme/host/pci.c: At top level: drivers/nvme/host/pci.c:105:13: warning: 'nvme_dev_disable' declared 'static' but never defined [-Wunused-function] 105 | static void nvme_dev_disable(struct nvme_dev *dev, bool shutdown); | ^~~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:106:13: warning: '__nvme_disable_io_queues' declared 'static' but never defined [-Wunused-function] 106 | static bool __nvme_disable_io_queues(struct nvme_dev *dev, u8 opcode); | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:901:13: warning: 'nvme_pci_complete_rq' defined but not used [-Wunused-function] 901 | static void nvme_pci_complete_rq(struct request *req) | ^~~~~~~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:853:21: warning: 'nvme_queue_rq' defined but not used [-Wunused-function] 853 | static blk_status_t nvme_queue_rq(struct blk_mq_hw_ctx *hctx, | ^~~~~~~~~~~~~ drivers/nvme/host/pci.c:484:13: warning: 'nvme_commit_rqs' defined but not used [-Wunused-function] 484 | static void nvme_commit_rqs(struct blk_mq_hw_ctx *hctx) | ^~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:427:12: warning: 'nvme_pci_map_queues' defined but not used [-Wunused-function] 427 | static int nvme_pci_map_queues(struct blk_mq_tag_set *set) | ^~~~~~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:403:12: warning: 'nvme_init_request' defined but not used [-Wunused-function] 403 | static int nvme_init_request(struct blk_mq_tag_set *set, struct request *req, | ^~~~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:392:12: warning: 'nvme_init_hctx' defined but not used [-Wunused-function] 392 | static int nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, | ^~~~~~~~~~~~~~ drivers/nvme/host/pci.c:379:12: warning: 'nvme_admin_init_hctx' defined but not used [-Wunused-function] 379 | static int nvme_admin_init_hctx(struct blk_mq_hw_ctx *hctx, void *data, | ^~~~~~~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:371:15: warning: 'nvme_pci_iod_alloc_size' defined but not used [-Wunused-function] 371 | static size_t nvme_pci_iod_alloc_size(void) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:294:13: warning: 'nvme_dbbuf_set' defined but not used [-Wunused-function] 294 | static void nvme_dbbuf_set(struct nvme_dev *dev) | ^~~~~~~~~~~~~~ drivers/nvme/host/pci.c:282:13: warning: 'nvme_dbbuf_init' defined but not used [-Wunused-function] 282 | static void nvme_dbbuf_init(struct nvme_dev *dev, | ^~~~~~~~~~~~~~~ drivers/nvme/host/pci.c:241:12: warning: 'nvme_dbbuf_dma_alloc' defined but not used [-Wunused-function] 241 | static int nvme_dbbuf_dma_alloc(struct nvme_dev *dev) | ^~~~~~~~~~~~~~~~~~~~ # https://github.com/0day-ci/linux/commit/e3761e6c554adb55d40e176915df361ad9e272e1 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Xianting-Tian/nvme-pci-check-req-to-prevent-crash-in-nvme_handle_cqe/20200831-155653 git checkout e3761e6c554adb55d40e176915df361ad9e272e1 vim +/dev_warn +3244 drivers/nvme/host/pci.c b60503ba432b16 drivers/block/nvme.c Matthew Wilcox 2011-01-20 3239 b60503ba432b16 drivers/block/nvme.c Matthew Wilcox 2011-01-20 3240 MODULE_AUTHOR("Matthew Wilcox "); b60503ba432b16 drivers/block/nvme.c Matthew Wilcox 2011-01-20 3241 MODULE_LICENSE("GPL"); c78b47136f7ade drivers/block/nvme-core.c Keith Busch 2014-11-21 3242 MODULE_VERSION("1.0"); b60503ba432b16 drivers/block/nvme.c Matthew Wilcox 2011-01-20 3243 module_init(nvme_init); b60503ba432b16 drivers/block/nvme.c Matthew Wilcox 2011-01-20 @3244 module_exit(nvme_exit); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org