Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4068239rwd; Sat, 3 Jun 2023 19:29:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Nxmb7ppFPQAZ4vn/W62L8QaATb/bXK8ihEhnVsW8K0QPx827HOsmXRPU1WH6YBf3AUOCt X-Received: by 2002:a25:86c9:0:b0:bab:d9b1:ad63 with SMTP id y9-20020a2586c9000000b00babd9b1ad63mr8453114ybm.38.1685845784469; Sat, 03 Jun 2023 19:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685845784; cv=none; d=google.com; s=arc-20160816; b=unezOZntu0NbWCcAtvVErSsShJMY/2te0PeZAA9C5mnxtuM0cbhCcbtXLQ9PpkYsfK btg2FxLSQssr9fjYgXMAd6TA7wj2GoRkBdPs0qdIFazKOuHvf3b/X38F2rP7F/XVgtm7 qfy5sBeJY67E3NqYfDeSrLPI13pVtFBXjoepWImb4oejQ/hOZkGpub3bFLzX3ybCtxv9 m/bTIjj0npCtucIshRa5ywrBg3rJw74v51df32yq5QHRsVcJ0dOAJo41DXJ9GG6KEN28 xFibRdruuIKk2Wau1EEA0m/4jCfAmR/anTEG/b1Io4wLCkALgZwc3T77gAmXvyXmgSd5 EzxA== 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=FRF7M5KSn9fWu2DkxzsSmF/j4Gj5mBQYxFe+TeYyvn0=; b=WWRXfCCYriVxvqtVv7dKWE7cUR5V3IXeLdSLD3pDuYEkqVk/T+OpWSxVm9MTPUVKJV dUerzIHYYfXWa+Sjwm+oNuLlCzPKNpS7z6TYN2gAvlh9BHGrz6kshADRyNcCeyR1W3gK ZxAEqWOoLgcvA7jEQtyNpXZxB0MvKlcJOHbc2Yrgqa2YN3iDd11COHS6bYuxXAVs8FLE N1C09bUSNqY0gKujoj4bCO/P/BX0vgPNcqsvVIYE8iMyKxeKFO0bLAVF5175PuOwOLaA +08tu/bk91VxuNAkXjYx1uWC1TyUQFwvQFD6Y+6n2bn7EbOgpo7AOru+Dz0QlBwhR3Ut E7iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l7vZlKjQ; 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 l8-20020a170902f68800b001ae5fe35b6dsi3615979plg.177.2023.06.03.19.29.32; Sat, 03 Jun 2023 19:29:44 -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=l7vZlKjQ; 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 S229760AbjFDCGN (ORCPT + 99 others); Sat, 3 Jun 2023 22:06:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjFDCGM (ORCPT ); Sat, 3 Jun 2023 22:06:12 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97F05DD; Sat, 3 Jun 2023 19:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685844370; x=1717380370; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=H17Z52NC1fO7RmCPvzwNM5L0g6cLDt+b4SXw0TWfuCI=; b=l7vZlKjQM9SWBL5qNY9qmbWa2NLooAqUh1omOLqx+exCV67fMETUNpfY VQ/1EVHOTie56hP/9lsX6hk1eNYbMAV8hKsO+vEgonvhPSiKdFN8Fae7A 716AFz6XAbzq+XCidGAAw+kswRJIoOo23ACW+b6o6Pc7XYWyNMHSjrM3Q zTAP4DraXJKF0yIkGFPFhb16ztUF32qt+Z6WXeil8cpIK88RnnsqIaggJ 6kK0bqdkqM2x7HnRXOkLHQ0sLLP9nOAoLIvF6eKvPMu9MG47W5clye8Zr 9ZNlxR0kr7KC3zu8kNFo3lE31Yft0cdCyZFihlGyzLYRMwYO4V1s4R9KJ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10730"; a="359453116" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="359453116" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2023 19:06:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10730"; a="852563279" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="852563279" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 03 Jun 2023 19:06:07 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q5d8A-0002ER-1R; Sun, 04 Jun 2023 02:06:06 +0000 Date: Sun, 4 Jun 2023 10:05:10 +0800 From: kernel test robot To: Saurabh Sengar , kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, mikelley@microsoft.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH 1/5] uio: Add hv_vmbus_client driver Message-ID: <202306040910.13oLufQd-lkp@intel.com> References: <1685692629-31351-2-git-send-email-ssengar@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1685692629-31351-2-git-send-email-ssengar@linux.microsoft.com> X-Spam-Status: No, score=-4.6 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 Saurabh, kernel test robot noticed the following build warnings: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on char-misc/char-misc-next char-misc/char-misc-linus linus/master v6.4-rc4 next-20230602] [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/Saurabh-Sengar/uio-Add-hv_vmbus_client-driver/20230602-160029 base: char-misc/char-misc-testing patch link: https://lore.kernel.org/r/1685692629-31351-2-git-send-email-ssengar%40linux.microsoft.com patch subject: [PATCH 1/5] uio: Add hv_vmbus_client driver config: i386-randconfig-c001-20230604 (https://download.01.org/0day-ci/archive/20230604/202306040910.13oLufQd-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306040910.13oLufQd-lkp@intel.com/ cocci warnings: (new ones prefixed by >>) >> drivers/uio/uio_hv_vmbus_client.c:195:1-6: WARNING: invalid free of devm_ allocated data vim +195 drivers/uio/uio_hv_vmbus_client.c 158 159 static int uio_hv_vmbus_probe(struct hv_device *dev, const struct hv_vmbus_device_id *dev_id) 160 { 161 struct uio_hv_vmbus_dev *pdata; 162 int ret = 0; 163 char *name = NULL; 164 165 pdata = devm_kzalloc(&dev->device, sizeof(*pdata), GFP_KERNEL); 166 if (!pdata) 167 return -ENOMEM; 168 169 name = kasprintf(GFP_KERNEL, "%pUl", &dev->dev_instance); 170 171 /* Fill general uio info */ 172 pdata->info.name = name; /* /sys/class/uio/uioX/name */ 173 pdata->info.version = DRIVER_VERSION; 174 pdata->info.irqcontrol = uio_hv_vmbus_irqcontrol; 175 pdata->info.open = uio_hv_vmbus_open; 176 pdata->info.release = uio_hv_vmbus_release; 177 pdata->info.irq = UIO_IRQ_CUSTOM; 178 pdata->info.priv = pdata; 179 pdata->device = dev; 180 181 ret = uio_register_device(&dev->device, &pdata->info); 182 if (ret) { 183 dev_err(&dev->device, "uio_hv_vmbus register failed\n"); 184 goto fail; 185 } 186 187 ret = sysfs_create_file(&dev->device.kobj, &dev_attr_ring_size.attr); 188 if (ret) 189 dev_notice(&dev->device, "sysfs create ring size file failed; %d\n", ret); 190 191 hv_set_drvdata(dev, pdata); 192 return 0; 193 194 fail: > 195 kfree(pdata); 196 return ret; 197 } 198 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki