From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C273CC54E58 for ; Sun, 24 Mar 2024 00:03:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0108B6B0082; Sat, 23 Mar 2024 20:03:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F02736B0083; Sat, 23 Mar 2024 20:03:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DCA366B0085; Sat, 23 Mar 2024 20:03:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id CDFB16B0082 for ; Sat, 23 Mar 2024 20:03:28 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 758211C092D for ; Sun, 24 Mar 2024 00:03:28 +0000 (UTC) X-FDA: 81929983296.04.3FBD619 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by imf28.hostedemail.com (Postfix) with ESMTP id E3D04C0011 for ; Sun, 24 Mar 2024 00:03:25 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=eQIsvjpZ; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 198.175.65.18 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711238606; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=IFXmbu9Q17aCHUU5J28Cz4ZKDR9jDwWrMoJWVTvnBQc=; b=uVGBkfE4yZC+yB9fFC5rdV9DxE+iBDpC8NGtPf+9nipSxnCJuHoYoPvUpODR+ua2YPxxeR E6X4BJSlR5gdKH/vcUwelP/3qdYK8ekST7PenGEJexyejhzqspPUu9iFYjtQur0QLHH1Dd eP0WTM6XgNWzUtdO2FKAQM80koLwJtQ= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=eQIsvjpZ; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf28.hostedemail.com: domain of lkp@intel.com designates 198.175.65.18 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711238606; a=rsa-sha256; cv=none; b=XxwePheMYgDYJMuray+jc023Dams4BOqSJ6L1Ui5T+4/tNlacxON+erkbHNLOy8cViVdL5 uY2bJ2z/am+xB2p5UwxZGICpRhfch0YTjYXhfJfISJ9I0PiCBdM3fhD7JIg8nhtmFhuBW9 Qyts7EL1PgI+oMl8fMCpJf9cso1dyq4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711238606; x=1742774606; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7dUjayPnLm+OrF7kkuivprJ7BF+CDLMLKnEx3998yV0=; b=eQIsvjpZAihNGmtm7oE3VOfQL/NN6/46yAh/S3YChy8eehRu1MJYVAwF XN29vBLqzMmgADtAPR7FfXQ+ccHllS5JLuquAX391DyCHe3k0g8mz4FkH eL9OVeIXtjTTRwzDO+uECkzAi5Dce0JvzMSakadkdEESkEEWeKkl6YgY2 Ci8wLQnDu9HHvil4EDN8ruJhkK2Ki4nko5KE8Rikbn22H9rKdZRftOHbr 3AzrrdXfqzPx0hjKcTo8Pl71TS0IdKU4MHwnB/YvoiLTj1rLkEmSXRDR6 wQEbnpseeeGXE+WfD28OYLzVMSIhaGl0J42AnEzeHKYuyoS3uI1mLOeCU g==; X-IronPort-AV: E=McAfee;i="6600,9927,11022"; a="6390515" X-IronPort-AV: E=Sophos;i="6.07,150,1708416000"; d="scan'208";a="6390515" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2024 17:03:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,150,1708416000"; d="scan'208";a="19806576" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 23 Mar 2024 17:03:21 -0700 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1roBKY-000LYN-2e; Sun, 24 Mar 2024 00:03:18 +0000 Date: Sun, 24 Mar 2024 08:03:07 +0800 From: kernel test robot To: Jinjiang Tu , akpm@linux-foundation.org, david@redhat.com, shr@devkernel.io, hannes@cmpxchg.org, riel@surriel.com, wangkefeng.wang@huawei.com, sunnanyong@huawei.com, linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, tujinjiang@huawei.com Subject: Re: [PATCH v2 1/2] mm/ksm: fix ksm exec support for prctl Message-ID: <202403240716.8B7CiDbr-lkp@intel.com> References: <20240322060947.3254967-2-tujinjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322060947.3254967-2-tujinjiang@huawei.com> X-Rspamd-Queue-Id: E3D04C0011 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: imm8ec7x73i1mkpoctpiam1pmishdnbz X-HE-Tag: 1711238605-770942 X-HE-Meta: U2FsdGVkX1+sIoaNEOiN8czknHsGubqLCaHMi88nImqDTQQTuikCmb7z7ppWiNxXS1Sogg6rbsHIiX30U9WGTjaT2MvL9lsHLOG0DoV9ptv5dL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89guZt8ntXvsINDTHcBUqE9riTNtzcoCosbkZ8Ns5YCBDjFxzU8VkeHKGnZN7a6Ij6eomMTykkYsKlmODSGFWoNcgZjCliVSY3gm1jgfQivSe48Edtf0tHSkSEvxMZ5IycPpJ1fk= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Jinjiang, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Jinjiang-Tu/mm-ksm-fix-ksm-exec-support-for-prctl/20240322-141317 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20240322060947.3254967-2-tujinjiang%40huawei.com patch subject: [PATCH v2 1/2] mm/ksm: fix ksm exec support for prctl config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20240324/202403240716.8B7CiDbr-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 23de3862dce582ce91c1aa914467d982cb1a73b4) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240324/202403240716.8B7CiDbr-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202403240716.8B7CiDbr-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from fs/exec.c:30: In file included from include/linux/mm.h:2211: include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 514 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> fs/exec.c:275:6: warning: variable 'err' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 275 | if (ksm_execve(mm)) | ^~~~~~~~~~~~~~ fs/exec.c:305:9: note: uninitialized use occurs here 305 | return err; | ^~~ fs/exec.c:275:2: note: remove the 'if' if its condition is always false 275 | if (ksm_execve(mm)) | ^~~~~~~~~~~~~~~~~~~ 276 | goto err_ksm; | ~~~~~~~~~~~~ fs/exec.c:257:9: note: initialize the variable 'err' to silence this warning 257 | int err; | ^ | = 0 2 warnings generated. vim +275 fs/exec.c 254 255 static int __bprm_mm_init(struct linux_binprm *bprm) 256 { 257 int err; 258 struct vm_area_struct *vma = NULL; 259 struct mm_struct *mm = bprm->mm; 260 261 bprm->vma = vma = vm_area_alloc(mm); 262 if (!vma) 263 return -ENOMEM; 264 vma_set_anonymous(vma); 265 266 if (mmap_write_lock_killable(mm)) { 267 err = -EINTR; 268 goto err_free; 269 } 270 271 /* 272 * Need to be called with mmap write lock 273 * held, to avoid race with ksmd. 274 */ > 275 if (ksm_execve(mm)) 276 goto err_ksm; 277 278 /* 279 * Place the stack at the largest stack address the architecture 280 * supports. Later, we'll move this to an appropriate place. We don't 281 * use STACK_TOP because that can depend on attributes which aren't 282 * configured yet. 283 */ 284 BUILD_BUG_ON(VM_STACK_FLAGS & VM_STACK_INCOMPLETE_SETUP); 285 vma->vm_end = STACK_TOP_MAX; 286 vma->vm_start = vma->vm_end - PAGE_SIZE; 287 vm_flags_init(vma, VM_SOFTDIRTY | VM_STACK_FLAGS | VM_STACK_INCOMPLETE_SETUP); 288 vma->vm_page_prot = vm_get_page_prot(vma->vm_flags); 289 290 err = insert_vm_struct(mm, vma); 291 if (err) 292 goto err; 293 294 mm->stack_vm = mm->total_vm = 1; 295 mmap_write_unlock(mm); 296 bprm->p = vma->vm_end - sizeof(void *); 297 return 0; 298 err: 299 ksm_exit(mm); 300 err_ksm: 301 mmap_write_unlock(mm); 302 err_free: 303 bprm->vma = NULL; 304 vm_area_free(vma); 305 return err; 306 } 307 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki