From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (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 575AC168 for ; Thu, 6 Jan 2022 17:48:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641491308; x=1673027308; h=date:from:to:cc:subject:message-id:mime-version; bh=L69EiUxvnkMtOLzS9y6Y326FWiPueb6iTyzdswTejP8=; b=OnS24ajdcYW1YwColUdUbE/ShSzHpJV9iKtB1r3MeEuhSLVMOptOEQSw yf3g4oIchnqB3Fy6qYe56E37mNDQyhTjuU3tiQOvp+56IZUuTg32f2r3D dGt4L7DJslt34vOq72aZpdyj9vyIsdO03dtRRuAWnczguW7Mv9feZYTg4 /SSMbxiP1vqG9GcIu0RjW5e6+J5u56gh8ID/zzYcGJZYscmabKM3X92GT vSNE717abqBnQMRn3PCk/GrecRcj+ALwNTu67mYZnWOyh1qpGvcOEYn0k uXKNefHMedmmcmuSNrSKVJlVnIAcBFw/5/nFQlNd6NQmPhd3OTs9E7D+4 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10217"; a="223388090" X-IronPort-AV: E=Sophos;i="5.88,267,1635231600"; d="scan'208";a="223388090" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2022 09:48:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,267,1635231600"; d="scan'208";a="621592276" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 06 Jan 2022 09:48:25 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n5WsD-000HpS-85; Thu, 06 Jan 2022 17:48:25 +0000 Date: Fri, 7 Jan 2022 01:47:37 +0800 From: kernel test robot To: Trond Myklebust Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Anna Schumaker Subject: [anna-nfs:linux-next 12/21] fs/nfs/callback_xdr.c:274:8: warning: result of comparison of constant 658812288346769700 with expression of type 'uint32_t' (aka 'unsigned int') is always false Message-ID: <202201070108.OWIDTV5G-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: git://git.linux-nfs.org/projects/anna/linux-nfs.git linux-next head: 3e0a5877834cb4899478873b0f6ccc604ab33d28 commit: 9c2f14caf2bfc8b25b9d755aa77a37355d00c7ce [12/21] NFSv4.1: Fix uninitialised variable in devicenotify config: x86_64-buildonly-randconfig-r001-20220106 (https://download.01.org/0day-ci/archive/20220107/202201070108.OWIDTV5G-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ca7ffe09dc6e525109e3cd570cc5182ce568be13) 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 git remote add anna-nfs git://git.linux-nfs.org/projects/anna/linux-nfs.git git fetch --no-tags anna-nfs linux-next git checkout 9c2f14caf2bfc8b25b9d755aa77a37355d00c7ce # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/nfs/ sound/x86/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/nfs/callback_xdr.c:274:8: warning: result of comparison of constant 658812288346769700 with expression of type 'uint32_t' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare] if (n > ULONG_MAX / sizeof(*args->devs)) { ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. vim +274 fs/nfs/callback_xdr.c f2a625616045fe Fred Isaman 2011-01-06 254 1be5683b03a766 Marc Eshel 2011-05-22 255 static 1be5683b03a766 Marc Eshel 2011-05-22 256 __be32 decode_devicenotify_args(struct svc_rqst *rqstp, 1be5683b03a766 Marc Eshel 2011-05-22 257 struct xdr_stream *xdr, f4dac4ade5ba4e Christoph Hellwig 2017-05-11 258 void *argp) 1be5683b03a766 Marc Eshel 2011-05-22 259 { f4dac4ade5ba4e Christoph Hellwig 2017-05-11 260 struct cb_devicenotifyargs *args = argp; 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 261 uint32_t tmp, n, i; 1be5683b03a766 Marc Eshel 2011-05-22 262 __be32 *p; 1be5683b03a766 Marc Eshel 2011-05-22 263 __be32 status = 0; 1be5683b03a766 Marc Eshel 2011-05-22 264 1be5683b03a766 Marc Eshel 2011-05-22 265 /* Num of device notifications */ eb72f484a5eb94 Chuck Lever 2019-02-11 266 p = xdr_inline_decode(xdr, sizeof(uint32_t)); 1be5683b03a766 Marc Eshel 2011-05-22 267 if (unlikely(p == NULL)) { 1be5683b03a766 Marc Eshel 2011-05-22 268 status = htonl(NFS4ERR_BADXDR); 1be5683b03a766 Marc Eshel 2011-05-22 269 goto out; 1be5683b03a766 Marc Eshel 2011-05-22 270 } 1be5683b03a766 Marc Eshel 2011-05-22 271 n = ntohl(*p++); 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 272 if (n == 0) 1be5683b03a766 Marc Eshel 2011-05-22 273 goto out; 363e0df057ea8d Dan Carpenter 2012-01-12 @274 if (n > ULONG_MAX / sizeof(*args->devs)) { 363e0df057ea8d Dan Carpenter 2012-01-12 275 status = htonl(NFS4ERR_BADXDR); 363e0df057ea8d Dan Carpenter 2012-01-12 276 goto out; 363e0df057ea8d Dan Carpenter 2012-01-12 277 } 1be5683b03a766 Marc Eshel 2011-05-22 278 a4f743a6bb2016 Trond Myklebust 2015-02-11 279 args->devs = kmalloc_array(n, sizeof(*args->devs), GFP_KERNEL); 1be5683b03a766 Marc Eshel 2011-05-22 280 if (!args->devs) { 1be5683b03a766 Marc Eshel 2011-05-22 281 status = htonl(NFS4ERR_DELAY); 1be5683b03a766 Marc Eshel 2011-05-22 282 goto out; 1be5683b03a766 Marc Eshel 2011-05-22 283 } 1be5683b03a766 Marc Eshel 2011-05-22 284 1be5683b03a766 Marc Eshel 2011-05-22 285 /* Decode each dev notification */ 1be5683b03a766 Marc Eshel 2011-05-22 286 for (i = 0; i < n; i++) { 1be5683b03a766 Marc Eshel 2011-05-22 287 struct cb_devicenotifyitem *dev = &args->devs[i]; 1be5683b03a766 Marc Eshel 2011-05-22 288 eb72f484a5eb94 Chuck Lever 2019-02-11 289 p = xdr_inline_decode(xdr, (4 * sizeof(uint32_t)) + eb72f484a5eb94 Chuck Lever 2019-02-11 290 NFS4_DEVICEID4_SIZE); 1be5683b03a766 Marc Eshel 2011-05-22 291 if (unlikely(p == NULL)) { 1be5683b03a766 Marc Eshel 2011-05-22 292 status = htonl(NFS4ERR_BADXDR); 1be5683b03a766 Marc Eshel 2011-05-22 293 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 294 } 1be5683b03a766 Marc Eshel 2011-05-22 295 1be5683b03a766 Marc Eshel 2011-05-22 296 tmp = ntohl(*p++); /* bitmap size */ 1be5683b03a766 Marc Eshel 2011-05-22 297 if (tmp != 1) { 1be5683b03a766 Marc Eshel 2011-05-22 298 status = htonl(NFS4ERR_INVAL); 1be5683b03a766 Marc Eshel 2011-05-22 299 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 300 } 1be5683b03a766 Marc Eshel 2011-05-22 301 dev->cbd_notify_type = ntohl(*p++); 1be5683b03a766 Marc Eshel 2011-05-22 302 if (dev->cbd_notify_type != NOTIFY_DEVICEID4_CHANGE && 1be5683b03a766 Marc Eshel 2011-05-22 303 dev->cbd_notify_type != NOTIFY_DEVICEID4_DELETE) { 1be5683b03a766 Marc Eshel 2011-05-22 304 status = htonl(NFS4ERR_INVAL); 1be5683b03a766 Marc Eshel 2011-05-22 305 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 306 } 1be5683b03a766 Marc Eshel 2011-05-22 307 1be5683b03a766 Marc Eshel 2011-05-22 308 tmp = ntohl(*p++); /* opaque size */ 1be5683b03a766 Marc Eshel 2011-05-22 309 if (((dev->cbd_notify_type == NOTIFY_DEVICEID4_CHANGE) && 1be5683b03a766 Marc Eshel 2011-05-22 310 (tmp != NFS4_DEVICEID4_SIZE + 8)) || 1be5683b03a766 Marc Eshel 2011-05-22 311 ((dev->cbd_notify_type == NOTIFY_DEVICEID4_DELETE) && 1be5683b03a766 Marc Eshel 2011-05-22 312 (tmp != NFS4_DEVICEID4_SIZE + 4))) { 1be5683b03a766 Marc Eshel 2011-05-22 313 status = htonl(NFS4ERR_INVAL); 1be5683b03a766 Marc Eshel 2011-05-22 314 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 315 } 1be5683b03a766 Marc Eshel 2011-05-22 316 dev->cbd_layout_type = ntohl(*p++); 1be5683b03a766 Marc Eshel 2011-05-22 317 memcpy(dev->cbd_dev_id.data, p, NFS4_DEVICEID4_SIZE); 1be5683b03a766 Marc Eshel 2011-05-22 318 p += XDR_QUADLEN(NFS4_DEVICEID4_SIZE); 1be5683b03a766 Marc Eshel 2011-05-22 319 1be5683b03a766 Marc Eshel 2011-05-22 320 if (dev->cbd_layout_type == NOTIFY_DEVICEID4_CHANGE) { eb72f484a5eb94 Chuck Lever 2019-02-11 321 p = xdr_inline_decode(xdr, sizeof(uint32_t)); 1be5683b03a766 Marc Eshel 2011-05-22 322 if (unlikely(p == NULL)) { 1be5683b03a766 Marc Eshel 2011-05-22 323 status = htonl(NFS4ERR_BADXDR); 1be5683b03a766 Marc Eshel 2011-05-22 324 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 325 } 1be5683b03a766 Marc Eshel 2011-05-22 326 dev->cbd_immediate = ntohl(*p++); 1be5683b03a766 Marc Eshel 2011-05-22 327 } else { 1be5683b03a766 Marc Eshel 2011-05-22 328 dev->cbd_immediate = 0; 1be5683b03a766 Marc Eshel 2011-05-22 329 } 1be5683b03a766 Marc Eshel 2011-05-22 330 1be5683b03a766 Marc Eshel 2011-05-22 331 dprintk("%s: type %d layout 0x%x immediate %d\n", 1be5683b03a766 Marc Eshel 2011-05-22 332 __func__, dev->cbd_notify_type, dev->cbd_layout_type, 1be5683b03a766 Marc Eshel 2011-05-22 333 dev->cbd_immediate); 1be5683b03a766 Marc Eshel 2011-05-22 334 } 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 335 args->ndevs = n; 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 336 dprintk("%s: ndevs %d\n", __func__, args->ndevs); 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 337 return 0; 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 338 err: 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 339 kfree(args->devs); 1be5683b03a766 Marc Eshel 2011-05-22 340 out: 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 341 args->devs = NULL; 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 342 args->ndevs = 0; 1be5683b03a766 Marc Eshel 2011-05-22 343 dprintk("%s: status %d ndevs %d\n", 1be5683b03a766 Marc Eshel 2011-05-22 344 __func__, ntohl(status), args->ndevs); 1be5683b03a766 Marc Eshel 2011-05-22 345 return status; 1be5683b03a766 Marc Eshel 2011-05-22 346 } 1be5683b03a766 Marc Eshel 2011-05-22 347 :::::: The code at line 274 was first introduced by commit :::::: 363e0df057ea8da539645fe4c3c227e3d44054cc nfs: check for integer overflow in decode_devicenotify_args() :::::: TO: Dan Carpenter :::::: CC: Trond Myklebust --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7768863277980596490==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [anna-nfs:linux-next 12/21] fs/nfs/callback_xdr.c:274:8: warning: result of comparison of constant 658812288346769700 with expression of type 'uint32_t' (aka 'unsigned int') is always false Date: Fri, 07 Jan 2022 01:47:37 +0800 Message-ID: <202201070108.OWIDTV5G-lkp@intel.com> List-Id: --===============7768863277980596490== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: git://git.linux-nfs.org/projects/anna/linux-nfs.git linux-next head: 3e0a5877834cb4899478873b0f6ccc604ab33d28 commit: 9c2f14caf2bfc8b25b9d755aa77a37355d00c7ce [12/21] NFSv4.1: Fix unini= tialised variable in devicenotify config: x86_64-buildonly-randconfig-r001-20220106 (https://download.01.org/= 0day-ci/archive/20220107/202201070108.OWIDTV5G-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ca7ffe= 09dc6e525109e3cd570cc5182ce568be13) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add anna-nfs git://git.linux-nfs.org/projects/anna/linux= -nfs.git git fetch --no-tags anna-nfs linux-next git checkout 9c2f14caf2bfc8b25b9d755aa77a37355d00c7ce # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash fs/nfs/ sound/x86/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/nfs/callback_xdr.c:274:8: warning: result of comparison of constant 6= 58812288346769700 with expression of type 'uint32_t' (aka 'unsigned int') i= s always false [-Wtautological-constant-out-of-range-compare] if (n > ULONG_MAX / sizeof(*args->devs)) { ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. vim +274 fs/nfs/callback_xdr.c f2a625616045fe Fred Isaman 2011-01-06 254 = 1be5683b03a766 Marc Eshel 2011-05-22 255 static 1be5683b03a766 Marc Eshel 2011-05-22 256 __be32 decode_devicenotif= y_args(struct svc_rqst *rqstp, 1be5683b03a766 Marc Eshel 2011-05-22 257 struct xdr_stream *xd= r, f4dac4ade5ba4e Christoph Hellwig 2017-05-11 258 void *argp) 1be5683b03a766 Marc Eshel 2011-05-22 259 { f4dac4ade5ba4e Christoph Hellwig 2017-05-11 260 struct cb_devicenotifyar= gs *args =3D argp; 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 261 uint32_t tmp, n, i; 1be5683b03a766 Marc Eshel 2011-05-22 262 __be32 *p; 1be5683b03a766 Marc Eshel 2011-05-22 263 __be32 status =3D 0; 1be5683b03a766 Marc Eshel 2011-05-22 264 = 1be5683b03a766 Marc Eshel 2011-05-22 265 /* Num of device notific= ations */ eb72f484a5eb94 Chuck Lever 2019-02-11 266 p =3D xdr_inline_decode(= xdr, sizeof(uint32_t)); 1be5683b03a766 Marc Eshel 2011-05-22 267 if (unlikely(p =3D=3D NU= LL)) { 1be5683b03a766 Marc Eshel 2011-05-22 268 status =3D htonl(NFS4ER= R_BADXDR); 1be5683b03a766 Marc Eshel 2011-05-22 269 goto out; 1be5683b03a766 Marc Eshel 2011-05-22 270 } 1be5683b03a766 Marc Eshel 2011-05-22 271 n =3D ntohl(*p++); 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 272 if (n =3D=3D 0) 1be5683b03a766 Marc Eshel 2011-05-22 273 goto out; 363e0df057ea8d Dan Carpenter 2012-01-12 @274 if (n > ULONG_MAX / size= of(*args->devs)) { 363e0df057ea8d Dan Carpenter 2012-01-12 275 status =3D htonl(NFS4ER= R_BADXDR); 363e0df057ea8d Dan Carpenter 2012-01-12 276 goto out; 363e0df057ea8d Dan Carpenter 2012-01-12 277 } 1be5683b03a766 Marc Eshel 2011-05-22 278 = a4f743a6bb2016 Trond Myklebust 2015-02-11 279 args->devs =3D kmalloc_a= rray(n, sizeof(*args->devs), GFP_KERNEL); 1be5683b03a766 Marc Eshel 2011-05-22 280 if (!args->devs) { 1be5683b03a766 Marc Eshel 2011-05-22 281 status =3D htonl(NFS4ER= R_DELAY); 1be5683b03a766 Marc Eshel 2011-05-22 282 goto out; 1be5683b03a766 Marc Eshel 2011-05-22 283 } 1be5683b03a766 Marc Eshel 2011-05-22 284 = 1be5683b03a766 Marc Eshel 2011-05-22 285 /* Decode each dev notif= ication */ 1be5683b03a766 Marc Eshel 2011-05-22 286 for (i =3D 0; i < n; i++= ) { 1be5683b03a766 Marc Eshel 2011-05-22 287 struct cb_devicenotifyi= tem *dev =3D &args->devs[i]; 1be5683b03a766 Marc Eshel 2011-05-22 288 = eb72f484a5eb94 Chuck Lever 2019-02-11 289 p =3D xdr_inline_decode= (xdr, (4 * sizeof(uint32_t)) + eb72f484a5eb94 Chuck Lever 2019-02-11 290 NFS4_DEVICEID4_= SIZE); 1be5683b03a766 Marc Eshel 2011-05-22 291 if (unlikely(p =3D=3D N= ULL)) { 1be5683b03a766 Marc Eshel 2011-05-22 292 status =3D htonl(NFS4E= RR_BADXDR); 1be5683b03a766 Marc Eshel 2011-05-22 293 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 294 } 1be5683b03a766 Marc Eshel 2011-05-22 295 = 1be5683b03a766 Marc Eshel 2011-05-22 296 tmp =3D ntohl(*p++); /*= bitmap size */ 1be5683b03a766 Marc Eshel 2011-05-22 297 if (tmp !=3D 1) { 1be5683b03a766 Marc Eshel 2011-05-22 298 status =3D htonl(NFS4E= RR_INVAL); 1be5683b03a766 Marc Eshel 2011-05-22 299 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 300 } 1be5683b03a766 Marc Eshel 2011-05-22 301 dev->cbd_notify_type = =3D ntohl(*p++); 1be5683b03a766 Marc Eshel 2011-05-22 302 if (dev->cbd_notify_typ= e !=3D NOTIFY_DEVICEID4_CHANGE && 1be5683b03a766 Marc Eshel 2011-05-22 303 dev->cbd_notify_typ= e !=3D NOTIFY_DEVICEID4_DELETE) { 1be5683b03a766 Marc Eshel 2011-05-22 304 status =3D htonl(NFS4E= RR_INVAL); 1be5683b03a766 Marc Eshel 2011-05-22 305 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 306 } 1be5683b03a766 Marc Eshel 2011-05-22 307 = 1be5683b03a766 Marc Eshel 2011-05-22 308 tmp =3D ntohl(*p++); /*= opaque size */ 1be5683b03a766 Marc Eshel 2011-05-22 309 if (((dev->cbd_notify_t= ype =3D=3D NOTIFY_DEVICEID4_CHANGE) && 1be5683b03a766 Marc Eshel 2011-05-22 310 (tmp !=3D NFS4_DEV= ICEID4_SIZE + 8)) || 1be5683b03a766 Marc Eshel 2011-05-22 311 ((dev->cbd_notify_t= ype =3D=3D NOTIFY_DEVICEID4_DELETE) && 1be5683b03a766 Marc Eshel 2011-05-22 312 (tmp !=3D NFS4_DEV= ICEID4_SIZE + 4))) { 1be5683b03a766 Marc Eshel 2011-05-22 313 status =3D htonl(NFS4E= RR_INVAL); 1be5683b03a766 Marc Eshel 2011-05-22 314 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 315 } 1be5683b03a766 Marc Eshel 2011-05-22 316 dev->cbd_layout_type = =3D ntohl(*p++); 1be5683b03a766 Marc Eshel 2011-05-22 317 memcpy(dev->cbd_dev_id.= data, p, NFS4_DEVICEID4_SIZE); 1be5683b03a766 Marc Eshel 2011-05-22 318 p +=3D XDR_QUADLEN(NFS4= _DEVICEID4_SIZE); 1be5683b03a766 Marc Eshel 2011-05-22 319 = 1be5683b03a766 Marc Eshel 2011-05-22 320 if (dev->cbd_layout_typ= e =3D=3D NOTIFY_DEVICEID4_CHANGE) { eb72f484a5eb94 Chuck Lever 2019-02-11 321 p =3D xdr_inline_decod= e(xdr, sizeof(uint32_t)); 1be5683b03a766 Marc Eshel 2011-05-22 322 if (unlikely(p =3D=3D = NULL)) { 1be5683b03a766 Marc Eshel 2011-05-22 323 status =3D htonl(NFS4= ERR_BADXDR); 1be5683b03a766 Marc Eshel 2011-05-22 324 goto err; 1be5683b03a766 Marc Eshel 2011-05-22 325 } 1be5683b03a766 Marc Eshel 2011-05-22 326 dev->cbd_immediate =3D= ntohl(*p++); 1be5683b03a766 Marc Eshel 2011-05-22 327 } else { 1be5683b03a766 Marc Eshel 2011-05-22 328 dev->cbd_immediate =3D= 0; 1be5683b03a766 Marc Eshel 2011-05-22 329 } 1be5683b03a766 Marc Eshel 2011-05-22 330 = 1be5683b03a766 Marc Eshel 2011-05-22 331 dprintk("%s: type %d la= yout 0x%x immediate %d\n", 1be5683b03a766 Marc Eshel 2011-05-22 332 __func__, dev->cbd_not= ify_type, dev->cbd_layout_type, 1be5683b03a766 Marc Eshel 2011-05-22 333 dev->cbd_immediate); 1be5683b03a766 Marc Eshel 2011-05-22 334 } 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 335 args->ndevs =3D n; 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 336 dprintk("%s: ndevs %d\n"= , __func__, args->ndevs); 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 337 return 0; 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 338 err: 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 339 kfree(args->devs); 1be5683b03a766 Marc Eshel 2011-05-22 340 out: 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 341 args->devs =3D NULL; 9c2f14caf2bfc8 Trond Myklebust 2022-01-03 342 args->ndevs =3D 0; 1be5683b03a766 Marc Eshel 2011-05-22 343 dprintk("%s: status %d n= devs %d\n", 1be5683b03a766 Marc Eshel 2011-05-22 344 __func__, ntohl(status)= , args->ndevs); 1be5683b03a766 Marc Eshel 2011-05-22 345 return status; 1be5683b03a766 Marc Eshel 2011-05-22 346 } 1be5683b03a766 Marc Eshel 2011-05-22 347 = :::::: The code at line 274 was first introduced by commit :::::: 363e0df057ea8da539645fe4c3c227e3d44054cc nfs: check for integer over= flow in decode_devicenotify_args() :::::: TO: Dan Carpenter :::::: CC: Trond Myklebust --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7768863277980596490==--