Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp891594rwb; Sat, 17 Sep 2022 18:11:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6XJYKC6J7snMz5mx2nH4iG+epYorM9qdxj9JXDkQfUnqihfzuAPYrHSU7RC8wTtiZfREsf X-Received: by 2002:a17:902:7e42:b0:178:489:86ac with SMTP id a2-20020a1709027e4200b00178048986acmr6867474pln.68.1663463501120; Sat, 17 Sep 2022 18:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663463501; cv=none; d=google.com; s=arc-20160816; b=iB5poyZj602OIrced5Kp+3WdaT/Ey4zJ4qMFnM8KHqlpibF5HOnQJqFVVMpaVelQvR DPSxmlVYfSNoplRFqoygPCar32GNLEWTtd/3U2Db0DaJ1KUy05o9GHF4TmZvPbZl//E9 OGU+7roxAzJ9vs4xCdwR4edt6Abcw3oDv4GCMgdBKe+NXlcL7shStlv3NtBCMWhcAPC9 VTkkeFANLylkuiT4V6kH1DXYQnnVEkJaX966+FQ6mLIc+ZxNd6+f6tlT4243mep5mDpu pxZxeuaY+m97r3HQXu/ruZVcvFVR1RdQE/QiR5whmy3msp8nIQgTLEaKL5+cnlVNT5f8 DS3Q== 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=B+xqJ5eBRB1xglDuaYLpQucNxCsuWmczRvtrJpUXfPU=; b=zWW8RmdIN3OBJPumlD0+RuNZF9Uko9JOP/zMWLxaJ0n1wiSHxTlGS+h5GSi2SJ+l3L IFYn/N9TlUEcPojUIszpTz1DbvF0V9bKagXv8BN7T1xPLwUTd/uNoaXb1m6hysMyJ/Za LpMjDPzIJNfhnYUGUsluGQPAeKLmkBslfkmVnooRUbKlOIIfxXyt8+EKVyz6cnIdLQ4J +EicaelD7vbvCz6KYvrcoswBP4rq/uUCbBISNwQeVh+kUX+G6zqg+xB01wKqrwgxrKd0 EtkRp8Z6OyABWsMo6+nr2wptPl6L6dx+SAiCrn6NN5vDTALf9AKjgZNHiRAR/a2iTBys i/Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Z5P11LoN; 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 u13-20020a17090341cd00b001755c347071si30816878ple.451.2022.09.17.18.11.03; Sat, 17 Sep 2022 18:11:41 -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=Z5P11LoN; 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 S229514AbiIQXcS (ORCPT + 99 others); Sat, 17 Sep 2022 19:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbiIQXcR (ORCPT ); Sat, 17 Sep 2022 19:32:17 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3ECA2AE11 for ; Sat, 17 Sep 2022 16:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663457535; x=1694993535; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tREf2HalGLkdGPTcSf38sQSG9GGYEvCEMnZ19wlLTN4=; b=Z5P11LoNQBs8+5P/a2asO26tCufB9gKAXz6LfmwBkZ/4ml7yvUk5BYSc oobSLIEL7QuYYbyvuoQlYFY868fu22jhcjAbpD10P4Y3p2c4eOl4+9q8A Ej/9k3Ud85J45NHCdUTFRIYMNZObC6AQvNaXM8o5AECySWCI+NYQQJCz3 zuM23ewqOvAMGitY/MSdPS/ETxuV6SYlW0mTbczQqHgm4/8vrf4p2K4rz qQRuaSyIUwtdOhnfPVCN0k5y/pu/Rt4jIVKy8qc92T8jGmO9qBBAZ+kaJ 16ARVmb0YIk6yvOH3hu+rJtKViL4tcQM5iwDToXoXxtwV3Gaqn7Zwnp+i Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10473"; a="385478556" X-IronPort-AV: E=Sophos;i="5.93,323,1654585200"; d="scan'208";a="385478556" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2022 16:32:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,323,1654585200"; d="scan'208";a="707136785" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 17 Sep 2022 16:32:11 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oZhIA-0000gp-0o; Sat, 17 Sep 2022 23:32:10 +0000 Date: Sun, 18 Sep 2022 07:31:20 +0800 From: kernel test robot To: Gwan-gyeong Mun , intel-gfx@lists.freedesktop.org Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, mchehab@kernel.org, chris@chris-wilson.co.uk, matthew.auld@intel.com, thomas.hellstrom@linux.intel.com, jani.nikula@intel.com, nirmoy.das@intel.com, airlied@redhat.com, daniel@ffwll.ch, andi.shyti@linux.intel.com, andrzej.hajda@intel.com, keescook@chromium.org, mauro.chehab@linux.intel.com, linux@rasmusvillemoes.dk, vitor@massaru.org, dlatypov@google.com, ndesaulniers@google.com Subject: Re: [PATCH v10 2/9] overflow: Move and add few utility macros into overflow Message-ID: <202209180742.kE2Xbxqz-lkp@intel.com> References: <20220909105913.752049-3-gwan-gyeong.mun@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909105913.752049-3-gwan-gyeong.mun@intel.com> 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 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 Gwan-gyeong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-tip/drm-tip] [also build test WARNING on linus/master v6.0-rc5] [cannot apply to drm-intel/for-linux-next kees/for-next/hardening next-20220916] [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/Gwan-gyeong-Mun/Fixes-integer-overflow-or-integer-truncation-issues-in-page-lookups-ttm-place-configuration-and-scatterlist-creation/20220909-190301 base: git://anongit.freedesktop.org/drm/drm-tip drm-tip config: i386-randconfig-s002 (https://download.01.org/0day-ci/archive/20220918/202209180742.kE2Xbxqz-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/8d39d691758034d1082773e43b9cb4738b1f4387 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Gwan-gyeong-Mun/Fixes-integer-overflow-or-integer-truncation-issues-in-page-lookups-ttm-place-configuration-and-scatterlist-creation/20220909-190301 git checkout 8d39d691758034d1082773e43b9cb4738b1f4387 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/i915/i915_user_extensions.c:56:21: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct i915_user_extension [noderef] __user *ext @@ got void *[noderef] __user @@ drivers/gpu/drm/i915/i915_user_extensions.c:56:21: sparse: expected struct i915_user_extension [noderef] __user *ext drivers/gpu/drm/i915/i915_user_extensions.c:56:21: sparse: got void *[noderef] __user vim +56 drivers/gpu/drm/i915/i915_user_extensions.c 15 16 int i915_user_extensions(struct i915_user_extension __user *ext, 17 const i915_user_extension_fn *tbl, 18 unsigned int count, 19 void *data) 20 { 21 unsigned int stackdepth = 512; 22 23 while (ext) { 24 int i, err; 25 u32 name; 26 u64 next; 27 28 if (!stackdepth--) /* recursion vs useful flexibility */ 29 return -E2BIG; 30 31 err = check_user_mbz(&ext->flags); 32 if (err) 33 return err; 34 35 for (i = 0; i < ARRAY_SIZE(ext->rsvd); i++) { 36 err = check_user_mbz(&ext->rsvd[i]); 37 if (err) 38 return err; 39 } 40 41 if (get_user(name, &ext->name)) 42 return -EFAULT; 43 44 err = -EINVAL; 45 if (name < count) { 46 name = array_index_nospec(name, count); 47 if (tbl[name]) 48 err = tbl[name](ext, data); 49 } 50 if (err) 51 return err; 52 53 if (get_user(next, &ext->next_extension)) 54 return -EFAULT; 55 > 56 if (check_assign_user_ptr(next, ext)) -- 0-DAY CI Kernel Test Service https://01.org/lkp